From c106cfbdf43a7c7f099385cfb1e1f86193fafb43 Mon Sep 17 00:00:00 2001 From: Josiah Ross Date: Wed, 26 Apr 2023 16:49:39 -0700 Subject: [PATCH] Fixed Live Snippet Cursor Steps out of Parentheses --- src/components/completionWatcher.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/components/completionWatcher.ts b/src/components/completionWatcher.ts index 8f869d0..0bd171e 100644 --- a/src/components/completionWatcher.ts +++ b/src/components/completionWatcher.ts @@ -211,12 +211,6 @@ export class CompletionWatcher { ) .then(() => { const offset = replacement.length - match[0].length; - if (vscode.window.activeTextEditor && offset > 0) { - vscode.window.activeTextEditor.selection = new vscode.Selection( - vscode.window.activeTextEditor.selection.anchor.translate(0, offset), - vscode.window.activeTextEditor.selection.anchor.translate(0, offset) - ); - } this.currentlyExecutingChange = false; debuglog(' ▹', changeStart, 'to perform text replacement'); resolve(offset);