1- import { ProgressLocation , Uri , LogOutputChannel , EventEmitter , MarkdownString , ThemeIcon , l10n } from 'vscode' ;
1+ import * as path from 'path' ;
2+ import { EventEmitter , l10n , LogOutputChannel , MarkdownString , ProgressLocation , ThemeIcon , Uri } from 'vscode' ;
23import {
34 CreateEnvironmentOptions ,
45 CreateEnvironmentScope ,
@@ -17,6 +18,12 @@ import {
1718 ResolveEnvironmentContext ,
1819 SetEnvironmentScope ,
1920} from '../../api' ;
21+ import { PYTHON_EXTENSION_ID } from '../../common/constants' ;
22+ import { VenvManagerStrings } from '../../common/localize' ;
23+ import { createDeferred , Deferred } from '../../common/utils/deferred' ;
24+ import { showErrorMessage , withProgress } from '../../common/window.apis' ;
25+ import { NativePythonFinder } from '../common/nativePythonFinder' ;
26+ import { getLatest , shortVersion , sortEnvironments } from '../common/utils' ;
2027import {
2128 clearVenvCache ,
2229 createPythonVenv ,
@@ -32,13 +39,6 @@ import {
3239 setVenvForWorkspace ,
3340 setVenvForWorkspaces ,
3441} from './venvUtils' ;
35- import * as path from 'path' ;
36- import { NativePythonFinder } from '../common/nativePythonFinder' ;
37- import { PYTHON_EXTENSION_ID } from '../../common/constants' ;
38- import { createDeferred , Deferred } from '../../common/utils/deferred' ;
39- import { getLatest , shortVersion , sortEnvironments } from '../common/utils' ;
40- import { showErrorMessage , withProgress } from '../../common/window.apis' ;
41- import { VenvManagerStrings } from '../../common/localize' ;
4242
4343export class VenvManager implements EnvironmentManager {
4444 private collection : PythonEnvironment [ ] = [ ] ;
@@ -215,7 +215,7 @@ export class VenvManager implements EnvironmentManager {
215215 if ( this . skipWatcherRefresh ) {
216216 return ;
217217 }
218- return this . internalRefresh ( undefined , false , VenvManagerStrings . venvRefreshing ) ;
218+ return this . internalRefresh ( undefined , true , VenvManagerStrings . venvRefreshing ) ;
219219 }
220220
221221 private async internalRefresh (
0 commit comments