Skip to content

Commit

Permalink
Revert "Ensure we update context vars when nb metadata changes (#14911)…
Browse files Browse the repository at this point in the history
…" (#14913)

This reverts commit e6ac131.
  • Loading branch information
DonJayamanne authored Dec 13, 2023
1 parent 1924e91 commit 0279e40
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/standalone/context/activeEditorContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 0279e40

Please sign in to comment.