Skip to content

Commit

Permalink
Remove loading kernels from cache more than once (#11980)
Browse files Browse the repository at this point in the history
  • Loading branch information
DonJayamanne authored Nov 10, 2022
1 parent 89d6c4a commit a7a31af
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,6 @@ export class LocalPythonAndRelatedNonPythonKernelSpecFinder
this,
this.disposables
);
this.listKernelsFirstTimeFromMemento(LocalPythonKernelsCacheKey)
.then((kernels) => {
if (this._cachedKernels.length === 0 && kernels.length) {
this._cachedKernels = kernels;
this._onDidChangeKernels.fire();
}
})
.ignoreErrors();
}
});
}
Expand Down

0 comments on commit a7a31af

Please sign in to comment.