We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01d872b commit 865d6c2Copy full SHA for 865d6c2
1 file changed
src/client/envExt/api.internal.ts
@@ -14,6 +14,7 @@ import {
14
} from './types';
15
import { executeCommand } from '../common/vscodeApis/commandApis';
16
import { IInterpreterPathService } from '../common/types';
17
+import { getConfiguration } from '../common/vscodeApis/workspaceApis';
18
19
export const ENVS_EXTENSION_ID = 'ms-python.vscode-python-envs';
20
@@ -22,7 +23,9 @@ export function useEnvExtension(): boolean {
22
23
if (_useExt !== undefined) {
24
return _useExt;
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;
29
30
31
0 commit comments