TextEditor.edit snippet overload now returns void. No longer preventing when already in snippet mode.

This commit is contained in:
Joel Day
2017-01-17 23:25:40 -08:00
parent 713aaff9d8
commit 95fc03271c
8 changed files with 18 additions and 25 deletions

View File

@@ -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;
}
}