From 797fd9c6e74ef72680aee777bb71e7ad3078dac1 Mon Sep 17 00:00:00 2001 From: aamunger Date: Fri, 16 Jun 2023 11:44:36 -0700 Subject: [PATCH] change function name --- .../workbench/contrib/interactive/browser/interactiveEditor.ts | 2 +- .../workbench/contrib/notebook/browser/notebookEditorWidget.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vs/workbench/contrib/interactive/browser/interactiveEditor.ts b/src/vs/workbench/contrib/interactive/browser/interactiveEditor.ts index 64715c9f5cd..c151e660fe4 100644 --- a/src/vs/workbench/contrib/interactive/browser/interactiveEditor.ts +++ b/src/vs/workbench/contrib/interactive/browser/interactiveEditor.ts @@ -670,7 +670,7 @@ export class InteractiveEditor extends EditorPane { } override focus() { - this.#notebookWidget.value?.show(); + this.#notebookWidget.value?.onShow(); this.#codeEditorWidget.focus(); } diff --git a/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.ts b/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.ts index 56ac2e2977d..e45dc8e343c 100644 --- a/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.ts +++ b/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.ts @@ -1913,7 +1913,7 @@ export class NotebookEditorWidget extends Disposable implements INotebookEditorD } } - show() { + onShow() { this._isVisible = true; }