diff --git a/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.ts b/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.ts index f802ab61bdc..9bd30b4ad13 100644 --- a/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.ts +++ b/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.ts @@ -1855,6 +1855,8 @@ export class NotebookEditorWidget extends Disposable implements INotebookEditorD // The notebook editor doesn't have focus yet if (!this.hasEditorFocus()) { this.focusContainer(); + // trigger editor to update as FocusTracker might not emit focus change event + this.updateEditorFocus(); } if (element && element.focusMode === CellFocusMode.Editor) {