mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-06 05:56:09 -05:00
cancel snippet mode when errors happen. this prevent repeated errors, #39594
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user