-
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
Revision to displaying cached remote kernel specs and live kernels #9985
Conversation
e688b28
to
a408ff7
Compare
Codecov Report
@@ Coverage Diff @@
## main #9985 +/- ##
====================================
- Coverage 63% 63% -1%
====================================
Files 209 210 +1
Lines 9948 9970 +22
Branches 1591 1594 +3
====================================
+ Hits 6326 6331 +5
- Misses 3111 3121 +10
- Partials 511 518 +7
|
0c939e8
to
c28708f
Compare
@@ -236,11 +234,6 @@ export class VSCodeNotebookController implements Disposable { | |||
if (cells.length < 1) { | |||
return; | |||
} | |||
if (this.isConnectionOutdated && !this.outdatedMessageDisplayed) { | |||
void this.appShell.showErrorMessage(DataScience.jupyterRemoteConnectFailedModalMessage(), { modal: true }); |
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 is no longer required, we have better ways to handle this now.
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.
I.e. we let the connection crash and handle the errors in the usual central location errorHandler.ts
@@ -137,8 +140,6 @@ export class NotebookControllerManager implements INotebookControllerManager, IE | |||
@inject(ICommandManager) private readonly commandManager: ICommandManager, | |||
@inject(IExtensionContext) private readonly context: IExtensionContext, | |||
@inject(IKernelProvider) private readonly kernelProvider: IKernelProvider, | |||
@inject(PreferredRemoteKernelIdProvider) | |||
private readonly preferredRemoteKernelIdProvider: PreferredRemoteKernelIdProvider, |
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.
Removed this as well, as this too could be handled the same way as the new code.
@@ -632,9 +600,6 @@ export class VSCodeNotebookController implements Disposable { | |||
// Before we start the notebook, make sure the metadata is set to this new kernel. | |||
await updateNotebookDocumentMetadata(document, this.documentManager, selectedKernelConnectionMetadata); | |||
|
|||
if (isLocalConnection(this.connection)) { |
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.
Nice, love the removal of the knowledge of remote.
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.
Agreed, one less dependency less complex
Part of #9167
The previous implementation was incorrect and as follows:
However the requirement is:
To make this possible we decided to only display the kernels they had used.
The implementation of this logic was incorrect:
Problems
Revised solution