Skip to content

Commit 97f808d

Browse files
committed
Revert "Fix for 1.73 broken snippet overtyping"
This reverts commit db16949.
1 parent db16949 commit 97f808d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/vs/editor/contrib/suggest/browser/suggestController.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,9 @@ export class SuggestController implements IEditorContribution {
380380
insertText = SnippetParser.escape(insertText);
381381
}
382382

383+
// cancel -> stops all listening and closes widget
384+
this.model.cancel();
385+
383386
snippetController.insert(insertText, {
384387
overwriteBefore: info.overwriteBefore,
385388
overwriteAfter: info.overwriteAfter,
@@ -390,9 +393,6 @@ export class SuggestController implements IEditorContribution {
390393
overtypingCapturer: this._overtypingCapturer.value
391394
});
392395

393-
// cancel -> stops all listening and closes widget
394-
this.model.cancel();
395-
396396
if (!(flags & InsertFlags.NoAfterUndoStop)) {
397397
this.editor.pushUndoStop();
398398
}

0 commit comments

Comments
 (0)