Use const instead of let for loop

This commit is contained in:
Matt Bierner
2017-11-30 16:40:07 -08:00
parent 37a9b31ea6
commit 527cfa42e7

View File

@@ -43,7 +43,7 @@ export function activate(
return false;
}
const openListener = vscode.workspace.onDidOpenTextDocument(didOpenTextDocument, undefined, context.subscriptions);
for (let textDocument of vscode.workspace.textDocuments) {
for (const textDocument of vscode.workspace.textDocuments) {
if (didOpenTextDocument(textDocument)) {
break;
}