ICodeEditor.getContribution can return null

This commit is contained in:
Alex Dima
2021-12-06 17:56:55 +01:00
parent 2f898c4c98
commit 2fc1dac229
67 changed files with 229 additions and 177 deletions

View File

@@ -527,7 +527,7 @@ export class MainThreadTextEditor {
this._codeEditor.focus();
// make modifications
snippetController.insert(template, {
snippetController?.insert(template, {
overwriteBefore: 0, overwriteAfter: 0,
undoStopBefore: opts.undoStopBefore, undoStopAfter: opts.undoStopAfter,
clipboardText