forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
area-environmentsFeatures relating to handling interpreter environmentsFeatures relating to handling interpreter environmentsbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugregressionBug didn't exist in a previous releaseBug didn't exist in a previous release
Description
From #16723 (review):
When in the new sorting/auto-selection experiment (#16520):
- The first time
updateDisplay
is called the interpreter ispython
, so it will trigger auto-selection, so far so good; - The new auto-selection logic will query
interpreterService.getInterpreters
, however this call will return cached interpreters, so the interpreter that will be displayed in the status bar is going to be one of my cached global interpreters; - Then the auto-selection will be triggered again, this time by
ExtensionActivationManager.activate
, and this time the local virtual environment selected will be returned, but there is noupdateDisplay
call to reflect that change.
Proposed solution from @karrtikr: Add a way for getInterpreters
to return fresh workspace envs and cached global envs (instead of just cached global envs)
Metadata
Metadata
Assignees
Labels
area-environmentsFeatures relating to handling interpreter environmentsFeatures relating to handling interpreter environmentsbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugregressionBug didn't exist in a previous releaseBug didn't exist in a previous release