var => let/const

This commit is contained in:
Benjamin Pasero
2016-07-15 09:54:35 +02:00
parent f7d23a3aa1
commit b2b2cb0f49
34 changed files with 48 additions and 46 deletions

View File

@@ -292,7 +292,7 @@ export class ExtHostDocumentData extends MirrorModel2 {
resultLines: string[] = [];
resultLines.push(this._lines[startLineIndex].substring(range.start.character));
for (var i = startLineIndex + 1; i < endLineIndex; i++) {
for (let i = startLineIndex + 1; i < endLineIndex; i++) {
resultLines.push(this._lines[i]);
}
resultLines.push(this._lines[endLineIndex].substring(0, range.end.character));