Skip to content

Commit 5834bb3

Browse files
committed
fix problem with getConfigurationValue, microsoft#10583
1 parent 1acd2b5 commit 5834bb3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/vs/platform/configuration/common/configuration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export function getConfigurationValue<T>(config: any, settingPath: string, defau
6565
let current = config;
6666
for (let i = 0; i < path.length; i++) {
6767
current = current[path[i]];
68-
if (!current) {
68+
if (typeof current === 'undefined') {
6969
return undefined;
7070
}
7171
}
@@ -76,4 +76,4 @@ export function getConfigurationValue<T>(config: any, settingPath: string, defau
7676
const result = accessSetting(config, path);
7777

7878
return typeof result === 'undefined' ? defaultValue : result;
79-
}
79+
}

0 commit comments

Comments
 (0)