diff --git a/extensions/big-data-cluster/src/bigDataCluster/utils.ts b/extensions/big-data-cluster/src/bigDataCluster/utils.ts index c7df2e5ad9ae..22789161b692 100644 --- a/extensions/big-data-cluster/src/bigDataCluster/utils.ts +++ b/extensions/big-data-cluster/src/bigDataCluster/utils.ts @@ -281,7 +281,8 @@ export const ignoreSslConfigName = 'ignoreSslVerification'; export function getIgnoreSslVerificationConfigSetting(): boolean { try { const config = vscode.workspace.getConfiguration(bdcConfigSectionName); - return config.get(ignoreSslConfigName) || true; + const value = config.get(ignoreSslConfigName); + return value !== undefined ? value : true; } catch (error) { console.error(`Unexpected error retrieving ${bdcConfigSectionName}.${ignoreSslConfigName} setting : ${error}`); } diff --git a/extensions/mssql/src/util/auth.ts b/extensions/mssql/src/util/auth.ts index e1d495331c19..1cb1f3273716 100644 --- a/extensions/mssql/src/util/auth.ts +++ b/extensions/mssql/src/util/auth.ts @@ -28,7 +28,8 @@ const ignoreSslConfigName = 'ignoreSslVerification'; export function getIgnoreSslVerificationConfigSetting(): boolean { try { const config = vscode.workspace.getConfiguration(bdcConfigSectionName); - return config.get(ignoreSslConfigName) || true; + const value = config.get(ignoreSslConfigName); + return value !== undefined ? value : true; } catch (error) { console.error(`Unexpected error retrieving ${bdcConfigSectionName}.${ignoreSslConfigName} setting : ${error}`); } diff --git a/extensions/notebook/src/common/utils.ts b/extensions/notebook/src/common/utils.ts index 31912f615311..263e3f107ffc 100644 --- a/extensions/notebook/src/common/utils.ts +++ b/extensions/notebook/src/common/utils.ts @@ -256,7 +256,8 @@ const ignoreSslConfigName = 'ignoreSslVerification'; export function getIgnoreSslVerificationConfigSetting(): boolean { try { const config = vscode.workspace.getConfiguration(bdcConfigSectionName); - return config.get(ignoreSslConfigName) || true; + const value = config.get(ignoreSslConfigName); + return value !== undefined ? value : true; } catch (error) { console.error(`Unexpected error retrieving ${bdcConfigSectionName}.${ignoreSslConfigName} setting : ${error}`); }