We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 342eacc commit 5ae1861Copy full SHA for 5ae1861
news/2 Fixes/10884.md
@@ -0,0 +1 @@
1
+Enable cell related commands when a Python file is already open.
src/client/datascience/context/activeEditorContext.ts
@@ -62,6 +62,11 @@ export class ActiveEditorContextService implements IExtensionSingleActivationSer
62
this,
63
this.disposables
64
);
65
+
66
+ // Do we already have python file opened.
67
+ if (this.docManager.activeTextEditor?.document.languageId === PYTHON_LANGUAGE) {
68
+ this.onDidChangeActiveTextEditor(this.docManager.activeTextEditor);
69
+ }
70
}
71
72
private onDidChangeActiveInteractiveWindow(e?: IInteractiveWindow) {
0 commit comments