Skip to content

Commit fe3462e

Browse files
authored
Merge pull request microsoft#185372 from microsoft/aamunger/interactiveFocus
set notebook widget to visible when focusing the IW Editor
2 parents a0a662c + 797fd9c commit fe3462e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/vs/workbench/contrib/interactive/browser/interactiveEditor.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -670,6 +670,7 @@ export class InteractiveEditor extends EditorPane {
670670
}
671671

672672
override focus() {
673+
this.#notebookWidget.value?.onShow();
673674
this.#codeEditorWidget.focus();
674675
}
675676

src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1913,6 +1913,10 @@ export class NotebookEditorWidget extends Disposable implements INotebookEditorD
19131913
}
19141914
}
19151915

1916+
onShow() {
1917+
this._isVisible = true;
1918+
}
1919+
19161920
private focusEditor(activeElement: CellViewModel): void {
19171921
for (const [element, editor] of this._renderedEditors.entries()) {
19181922
if (element === activeElement) {

0 commit comments

Comments
 (0)