提交 e68316c5 编写于 作者: C Christof Marti

Protect against disposed snippet (fixes #26587)

上级 3adc1979
......@@ -377,7 +377,11 @@ export class WalkThroughPart extends BaseEditor {
}
}));
this.contentDisposables.push(this.configurationService.onDidUpdateConfiguration(() => editor.updateOptions(this.getEditorOptions(snippet.textEditorModel.getModeId()))));
this.contentDisposables.push(this.configurationService.onDidUpdateConfiguration(() => {
if (snippet.textEditorModel) {
editor.updateOptions(this.getEditorOptions(snippet.textEditorModel.getModeId()));
}
}));
this.contentDisposables.push(once(editor.onMouseDown)(() => {
this.telemetryService.publicLog('walkThroughSnippetInteraction', {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册