diff options
author | Jonas Schievink <[email protected]> | 2021-03-27 18:02:08 +0000 |
---|---|---|
committer | Jonas Schievink <[email protected]> | 2021-03-27 18:02:08 +0000 |
commit | e6580aa380ed68cbd3a8e05aa6944d759d3ea247 (patch) | |
tree | fe9b5673ec0fc066ef109c2b6459f06825aac6d9 | |
parent | b494e479202ae3da2745ef4ff05db9da0c8427a0 (diff) |
Use `const` instead of `let`
-rw-r--r-- | editors/code/src/snippets.ts | 2 |
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 | ||
31 | export async function applySnippetTextEdits(editor: vscode.TextEditor, edits: vscode.TextEdit[]) { | 31 | export 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) { |