Skip to content

Commit

Permalink
Fix #11686. Trigger a cache update immediately after reading from cac…
Browse files Browse the repository at this point in the history
…he. (#11687)
  • Loading branch information
rebornix authored Oct 18, 2022
1 parent 948cfcc commit 841a4f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/kernels/jupyter/finder/remoteKernelFinder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ export class RemoteKernelFinder implements IRemoteKernelFinder, IExtensionSingle
// If we finish the cache first, and we don't have any items, in the cache, then load without cache.
if (Array.isArray(kernelsFromCache) && kernelsFromCache.length > 0) {
kernels = kernelsFromCache;
// kick off a cache update request
this.updateCache().then(noop, noop);
} else {
try {
const kernelsWithoutCachePromise = (async () => {
Expand Down

0 comments on commit 841a4f4

Please sign in to comment.