diff --git a/src/vs/workbench/parts/welcome/walkThrough/electron-browser/walkThroughPart.ts b/src/vs/workbench/parts/welcome/walkThrough/electron-browser/walkThroughPart.ts index d0c04742e177ed4b34048343e8e0543440a0989d..289d84c6a6e6817dd51a7e0f928b80cd9ae04416 100644 --- a/src/vs/workbench/parts/welcome/walkThrough/electron-browser/walkThroughPart.ts +++ b/src/vs/workbench/parts/welcome/walkThrough/electron-browser/walkThroughPart.ts @@ -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', {