-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restarting IW retains value for __file__ #7897
Conversation
return undefined; | ||
} | ||
|
||
protected get kernelConnection(): Readonly<KernelConnectionMetadata> | undefined { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dead code
} | ||
|
||
protected async setFileInKernel(file: string, kernel: IKernel): Promise<void> { | ||
private async setFileInKernel(file: string, kernel: IKernel): Promise<void> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Protected led me to believe this was used elsewhere, but it wasn't
@@ -182,6 +174,14 @@ export class InteractiveWindow implements IInteractiveWindowLoadable { | |||
controller: controller!.controller, | |||
resourceUri: this.owner | |||
}); | |||
kernel.onRestarted( | |||
async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was missing, this is the fix
@@ -467,17 +459,21 @@ export class InteractiveWindow implements IInteractiveWindowLoadable { | |||
} | |||
return result; | |||
} | |||
private async runIntialization(kernel: IKernel) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be run when restarting
Codecov Report
@@ Coverage Diff @@
## main #7897 +/- ##
=====================================
Coverage 70% 70%
=====================================
Files 361 361
Lines 22153 22134 -19
Branches 3357 3356 -1
=====================================
+ Hits 15583 15617 +34
+ Misses 5211 5163 -48
+ Partials 1359 1354 -5
|
For #7883