From 0279e40e10c2a057386b17f89c82de994ef14bbe Mon Sep 17 00:00:00 2001 From: Don Jayamanne Date: Wed, 13 Dec 2023 14:00:04 +1100 Subject: [PATCH] Revert "Ensure we update context vars when nb metadata changes (#14911)" (#14913) This reverts commit e6ac131588336704d9567ef1a43686a7d6f38286. --- src/standalone/context/activeEditorContext.ts | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/standalone/context/activeEditorContext.ts b/src/standalone/context/activeEditorContext.ts index 201b342f8ec..9059eee5ef5 100644 --- a/src/standalone/context/activeEditorContext.ts +++ b/src/standalone/context/activeEditorContext.ts @@ -98,16 +98,6 @@ export class ActiveEditorContextService implements IExtensionSyncActivationServi if (window.activeTextEditor?.document.languageId === PYTHON_LANGUAGE) { this.onDidChangeActiveTextEditor(window.activeTextEditor); } - workspace.onDidChangeNotebookDocument( - (e) => { - if (e.notebook === window.activeNotebookEditor?.notebook) { - this.onDidChangeActiveNotebookEditor(window.activeNotebookEditor); - } - }, - this, - this.disposables - ); - window.onDidChangeNotebookEditorSelection( this.updateNativeNotebookInteractiveWindowOpenContext, this, @@ -208,9 +198,6 @@ export class ActiveEditorContextService implements IExtensionSyncActivationServi } else { this.isJupyterKernelSelected.set(false).catch(noop); } - if (window.activeNotebookEditor?.notebook) { - this.updateContextOfActiveNotebookKernel(window.activeNotebookEditor); - } } private updateContextOfActiveInteractiveWindowKernel() { const notebook = this.interactiveProvider?.getActiveOrAssociatedInteractiveWindow()?.notebookDocument;