diff options
| author | Jonas Schievink <jonasschievink@gmail.com> | 2021-03-27 19:02:08 +0100 |
|---|---|---|
| committer | Jonas Schievink <jonasschievink@gmail.com> | 2021-03-27 19:02:08 +0100 |
| commit | e6580aa380ed68cbd3a8e05aa6944d759d3ea247 (patch) | |
| tree | fe9b5673ec0fc066ef109c2b6459f06825aac6d9 /editors/code/src | |
| parent | b494e479202ae3da2745ef4ff05db9da0c8427a0 (diff) | |
| download | rust-e6580aa380ed68cbd3a8e05aa6944d759d3ea247.tar.gz rust-e6580aa380ed68cbd3a8e05aa6944d759d3ea247.zip | |
Use `const` instead of `let`
Diffstat (limited to 'editors/code/src')
| -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 c8e71341a7d..9561aa345b6 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 } export async function applySnippetTextEdits(editor: vscode.TextEditor, edits: vscode.TextEdit[]) { - let selections: vscode.Selection[] = []; + const selections: vscode.Selection[] = []; let lineDelta = 0; await editor.edit((builder) => { for (const indel of edits) { |
