We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d12c6b commit 28d0759Copy full SHA for 28d0759
src/client/envExt/api.internal.ts
@@ -24,7 +24,8 @@ export function useEnvExtension(): boolean {
24
if (_useExt !== undefined) {
25
return _useExt;
26
}
27
- const inExpSetting = getConfiguration('python').get<boolean>('useEnvironmentsExtension', false);
+ const config = getConfiguration('python');
28
+ const inExpSetting = config?.get<boolean>('useEnvironmentsExtension', false) ?? false;
29
// If extension is installed and in experiment, then use it.
30
_useExt = !!getExtension(ENVS_EXTENSION_ID) && inExpSetting;
31
0 commit comments