Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 793acf1 commit 0441636Copy full SHA for 0441636
src/client/datascience/interactive-common/interactiveBase.ts
@@ -825,6 +825,12 @@ export abstract class InteractiveBase extends WebViewHost<IInteractiveWindowMapp
825
}
826
827
protected async ensureConnectionAndNotebook(): Promise<void> {
828
+ // Start over if we somehow end up with a disposed notebook.
829
+ if (this._notebook && this._notebook.disposed) {
830
+ this._notebook = undefined;
831
+ this.notebookPromise = undefined;
832
+ this.connectionAndNotebookPromise = undefined;
833
+ }
834
if (!this.connectionAndNotebookPromise) {
835
this.connectionAndNotebookPromise = this.ensureConnectionAndNotebookImpl();
836
0 commit comments