File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
src/vs/workbench/contrib/notebook/browser Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -150,6 +150,13 @@ export class NotebookEditor extends EditorPane implements INotebookEditorPane {
150
150
return this . _widget . value ;
151
151
}
152
152
153
+ override setVisible ( visible : boolean , group ?: IEditorGroup | undefined ) : void {
154
+ super . setVisible ( visible , group ) ;
155
+ if ( ! visible ) {
156
+ this . _widget . value ?. onWillHide ( ) ;
157
+ }
158
+ }
159
+
153
160
protected override setEditorVisible ( visible : boolean , group : IEditorGroup | undefined ) : void {
154
161
super . setEditorVisible ( visible , group ) ;
155
162
if ( group ) {
@@ -552,7 +559,9 @@ export class NotebookEditor extends EditorPane implements INotebookEditorPane {
552
559
return ;
553
560
}
554
561
555
- this . _widget . value . layout ( dimension , this . _rootElement , position ) ;
562
+ if ( this . isVisible ( ) ) {
563
+ this . _widget . value . layout ( dimension , this . _rootElement , position ) ;
564
+ }
556
565
}
557
566
558
567
//#endregion
You can’t perform that action at this time.
0 commit comments