Skip to content

Commit 96ce46b

Browse files
committed
1 parent f8577ad commit 96ce46b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)