mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Fix ssl config issue
This commit is contained in:
@@ -281,7 +281,8 @@ export const ignoreSslConfigName = 'ignoreSslVerification';
|
||||
export function getIgnoreSslVerificationConfigSetting(): boolean {
|
||||
try {
|
||||
const config = vscode.workspace.getConfiguration(bdcConfigSectionName);
|
||||
return config.get<boolean>(ignoreSslConfigName) || true;
|
||||
const value = config.get<boolean>(ignoreSslConfigName);
|
||||
return value !== undefined ? value : true;
|
||||
} catch (error) {
|
||||
console.error(`Unexpected error retrieving ${bdcConfigSectionName}.${ignoreSslConfigName} setting : ${error}`);
|
||||
}
|
||||
|
||||
@@ -28,7 +28,8 @@ const ignoreSslConfigName = 'ignoreSslVerification';
|
||||
export function getIgnoreSslVerificationConfigSetting(): boolean {
|
||||
try {
|
||||
const config = vscode.workspace.getConfiguration(bdcConfigSectionName);
|
||||
return config.get<boolean>(ignoreSslConfigName) || true;
|
||||
const value = config.get<boolean>(ignoreSslConfigName);
|
||||
return value !== undefined ? value : true;
|
||||
} catch (error) {
|
||||
console.error(`Unexpected error retrieving ${bdcConfigSectionName}.${ignoreSslConfigName} setting : ${error}`);
|
||||
}
|
||||
|
||||
@@ -256,7 +256,8 @@ const ignoreSslConfigName = 'ignoreSslVerification';
|
||||
export function getIgnoreSslVerificationConfigSetting(): boolean {
|
||||
try {
|
||||
const config = vscode.workspace.getConfiguration(bdcConfigSectionName);
|
||||
return config.get<boolean>(ignoreSslConfigName) || true;
|
||||
const value = config.get<boolean>(ignoreSslConfigName);
|
||||
return value !== undefined ? value : true;
|
||||
} catch (error) {
|
||||
console.error(`Unexpected error retrieving ${bdcConfigSectionName}.${ignoreSslConfigName} setting : ${error}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user