-
Notifications
You must be signed in to change notification settings - Fork 338
Lazy load list of all Python Environments #11674
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
Conversation
@@ -1913,22 +1913,6 @@ Expand each section to see more information about that event. | |||
Common measurement used across a number of events. | |||
|
|||
|
|||
* DS_INTERNAL.INTERPRETER_LISTING_PERF (Telemetry.InterpreterListingPerf) |
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 telemetry is no longer valid, as we no longer have an API to fetch all python enviornments.
Codecov Report
@@ Coverage Diff @@
## main #11674 +/- ##
======================================
- Coverage 62% 62% -1%
======================================
Files 483 483
Lines 34335 34415 +80
Branches 5564 5596 +32
======================================
+ Hits 21577 21617 +40
- Misses 10708 10730 +22
- Partials 2050 2068 +18
|
038c341
to
f6d6ff0
Compare
f6d6ff0
to
93246b8
Compare
|
||
this.updateCache().catch(noop); | ||
|
||
if (Array.isArray(kernelsFromCache) && kernelsFromCache.length > 0) { |
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.
We need to cache anything anymore, seems pointless and complicated.
Can add this later if we need this.
@traceDecoratorVerbose('Get Interpreters', TraceOptions.Arguments | TraceOptions.BeforeCall) | ||
public getInterpreters(): Promise<PythonEnvironment[]> { | ||
const stopWatch = new StopWatch(); | ||
private getInterpreters(): Promise<PythonEnvironment[]> { |
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.
The method getInterrpeters
is no longer used, we will not rely on a push model completely.
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.
Fortunately this was used only in a couple of places in the extension code.
@@ -72,11 +71,6 @@ export abstract class LocalKernelSpecFinderBase< | |||
disposables.push(this); | |||
} | |||
|
|||
@testOnlyMethod() | |||
public clearCache() { |
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.
Unused
Fixes #7583