mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 03:29:00 +01:00
ICodeEditor.getContribution can return null
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user