mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 02:58:56 +01:00
TextEditor.edit snippet overload now returns void. No longer preventing when already in snippet mode.
This commit is contained in:
@@ -394,9 +394,6 @@ export class MainThreadTextEditor {
|
||||
|
||||
insertSnippet(template: string, opts: IInsertSnippetOptions) {
|
||||
const snippetController = SnippetController.get(this._codeEditor);
|
||||
if (snippetController.inSnippetMode) {
|
||||
return false;
|
||||
}
|
||||
|
||||
this._codeEditor.focus();
|
||||
|
||||
@@ -409,8 +406,6 @@ export class MainThreadTextEditor {
|
||||
if (opts.undoStopAfter) {
|
||||
this._codeEditor.pushUndoStop();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user