Auto-selected local environment not reflected in the status bar #16727
Labels
area-environments
Features relating to handling interpreter environments
bug
Issue identified by VS Code Team member as probable bug
regression
Bug didn't exist in a previous release
From #16723 (review):
When in the new sorting/auto-selection experiment (#16520):
updateDisplay
is called the interpreter ispython
, so it will trigger auto-selection, so far so good;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;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)The text was updated successfully, but these errors were encountered: