Skip to content

Commit 28d0759

Browse files
committed
fix
1 parent 4d12c6b commit 28d0759

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/client/envExt/api.internal.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ export function useEnvExtension(): boolean {
2424
if (_useExt !== undefined) {
2525
return _useExt;
2626
}
27-
const inExpSetting = getConfiguration('python').get<boolean>('useEnvironmentsExtension', false);
27+
const config = getConfiguration('python');
28+
const inExpSetting = config?.get<boolean>('useEnvironmentsExtension', false) ?? false;
2829
// If extension is installed and in experiment, then use it.
2930
_useExt = !!getExtension(ENVS_EXTENSION_ID) && inExpSetting;
3031
return _useExt;

0 commit comments

Comments
 (0)