cancel snippet mode when errors happen. this prevent repeated errors, #39594

This commit is contained in:
Johannes Rieken
2017-12-07 14:23:50 +01:00
parent 4fce928ba4
commit 42763064de

View File

@@ -73,6 +73,7 @@ export class SnippetController2 implements IEditorContribution {
this._doInsert(template, overwriteBefore, overwriteAfter, undoStopBefore, undoStopAfter);
} catch (e) {
this.cancel();
this._logService.error(e);
this._logService.error('snippet_error');
this._logService.error('insert_template=', template);