File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import {
1414} from './types' ;
1515import { executeCommand } from '../common/vscodeApis/commandApis' ;
1616import { IInterpreterPathService } from '../common/types' ;
17+ import { getConfiguration } from '../common/vscodeApis/workspaceApis' ;
1718
1819export const ENVS_EXTENSION_ID = 'ms-python.vscode-python-envs' ;
1920
@@ -22,7 +23,9 @@ export function useEnvExtension(): boolean {
2223 if ( _useExt !== undefined ) {
2324 return _useExt ;
2425 }
25- _useExt = ! ! getExtension ( ENVS_EXTENSION_ID ) ;
26+ const inExpSetting = getConfiguration ( 'python' ) . get < boolean > ( 'useEnvironmentsExtension' , false ) ;
27+ // If extension is installed and in experiment, then use it.
28+ _useExt = ! ! getExtension ( ENVS_EXTENSION_ID ) && inExpSetting ;
2629 return _useExt ;
2730}
2831
You can’t perform that action at this time.
0 commit comments