aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorJonas Schievink <[email protected]>2021-03-27 18:02:08 +0000
committerJonas Schievink <[email protected]>2021-03-27 18:02:08 +0000
commite6580aa380ed68cbd3a8e05aa6944d759d3ea247 (patch)
treefe9b5673ec0fc066ef109c2b6459f06825aac6d9 /editors
parentb494e479202ae3da2745ef4ff05db9da0c8427a0 (diff)
Use `const` instead of `let`
Diffstat (limited to 'editors')
-rw-r--r--editors/code/src/snippets.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/code/src/snippets.ts b/editors/code/src/snippets.ts
index c8e71341a..9561aa345 100644
--- a/editors/code/src/snippets.ts
+++ b/editors/code/src/snippets.ts
@@ -29,7 +29,7 @@ async function editorFromUri(uri: vscode.Uri): Promise<vscode.TextEditor | undef
29} 29}
30 30
31export async function applySnippetTextEdits(editor: vscode.TextEditor, edits: vscode.TextEdit[]) { 31export async function applySnippetTextEdits(editor: vscode.TextEditor, edits: vscode.TextEdit[]) {
32 let selections: vscode.Selection[] = []; 32 const selections: vscode.Selection[] = [];
33 let lineDelta = 0; 33 let lineDelta = 0;
34 await editor.edit((builder) => { 34 await editor.edit((builder) => {
35 for (const indel of edits) { 35 for (const indel of edits) {