From 0d351bd55f23386f8f169ed7a10a876cfdc57c51 Mon Sep 17 00:00:00 2001 From: Rob Lourens Date: Tue, 31 Mar 2020 11:50:16 -0500 Subject: [PATCH] NOTEBOOK_EDITOR_FOCUSED context key not initialized with correct value Fix #93952 --- src/vs/workbench/contrib/notebook/browser/notebookEditor.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vs/workbench/contrib/notebook/browser/notebookEditor.ts b/src/vs/workbench/contrib/notebook/browser/notebookEditor.ts index 6ed71c69a3b..c0378bad9f4 100644 --- a/src/vs/workbench/contrib/notebook/browser/notebookEditor.ts +++ b/src/vs/workbench/contrib/notebook/browser/notebookEditor.ts @@ -148,6 +148,7 @@ export class NotebookEditor extends BaseEditor implements INotebookEditor { this.createBody(this.rootElement); this.generateFontInfo(); this.editorFocus = NOTEBOOK_EDITOR_FOCUSED.bindTo(this.contextKeyService); + this.editorFocus.set(true); this._register(this.onDidFocus(() => { this.editorFocus?.set(true); })); -- GitLab