File tree Expand file tree Collapse file tree
src/vs/workbench/contrib/notebook/browser Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -139,14 +139,14 @@ export class NotebookEditor extends BaseEditor {
139139 // input attached
140140 Event . once ( input . onDispose ) ( ( ) => {
141141 // make sure the editor widget is removed from the view
142- const existingEditorWidgetForInput = NotebookRegistry . getNotebookEditorWidget ( this . input as NotebookEditorInput ) ;
142+ const existingEditorWidgetForInput = NotebookRegistry . getNotebookEditorWidget ( input as NotebookEditorInput ) ;
143143 if ( existingEditorWidgetForInput ) {
144144 // the editor widget is only referenced by the editor input
145145 // clear its state
146146 existingEditorWidgetForInput ?. onWillHide ( ) ;
147147 existingEditorWidgetForInput ?. getDomNode ( ) . remove ( ) ;
148148 existingEditorWidgetForInput ?. dispose ( ) ;
149- NotebookRegistry . releaseNotebookEditorWidget ( this . input as NotebookEditorInput ) ;
149+ NotebookRegistry . releaseNotebookEditorWidget ( input as NotebookEditorInput ) ;
150150 }
151151 } ) ;
152152
You can’t perform that action at this time.
0 commit comments