-
Notifications
You must be signed in to change notification settings - Fork 293
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
Hook up JupyterUri handle change #10017
Conversation
Codecov Report
@@ Coverage Diff @@
## main #10017 +/- ##
======================================
Coverage 63% 64%
======================================
Files 215 215
Lines 10122 10122
Branches 1612 1612
======================================
+ Hits 6473 6481 +8
+ Misses 3131 3121 -10
- Partials 518 520 +2
|
Looks like something in this PR made tests unhappy. |
f257729
to
d0dbabc
Compare
if (this.lastSavedList) { | ||
return this.lastSavedList; | ||
} | ||
const promise = 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.
(tip for reviewers)
This PR reads much better with whitespaces hidden: https://github.com/microsoft/vscode-jupyter/pull/10017/files?w=1
} | ||
public async clearUriList(): Promise<void> { | ||
this.lastSavedList = Promise.resolve([]); |
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.
Oh, I see the cache gets cleared here! Nice
src/test/datascience/notebook/controllers/remoteKernelControllerWatcher.unit.test.ts
Show resolved
Hide resolved
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.
Pretty neat!
Part of #9683
onDidChangeHandles
event is fired, then look for controllers that belong to jupyter handles that are no longer valid. List of valid handles returned by the provider using thegetHandles
methodgetHandles
method of the corresponding provider.