diff --git a/extensions/azurecore/src/constants.ts b/extensions/azurecore/src/constants.ts index ebfb7bda82..55407edc94 100644 --- a/extensions/azurecore/src/constants.ts +++ b/extensions/azurecore/src/constants.ts @@ -41,6 +41,8 @@ export const NoSystemKeyChainSection = 'noSystemKeychain'; export const oldMsalCacheFileName = 'azureTokenCacheMsal-azure_publicCloud'; +export const piiLogging = 'piiLogging'; + /** MSAL Account version */ export const AccountVersion = '2.0'; diff --git a/extensions/azurecore/src/extension.ts b/extensions/azurecore/src/extension.ts index 4decebccd1..72b8baba42 100644 --- a/extensions/azurecore/src/extension.ts +++ b/extensions/azurecore/src/extension.ts @@ -97,6 +97,15 @@ export async function activate(context: vscode.ExtensionContext): Promise { + if (value === loc.disable) { + await vscode.workspace.getConfiguration(Constants.AzureSection).update(Constants.piiLogging, false, vscode.ConfigurationTarget.Global); + } + }); + + } updatePiiLoggingLevel(); let eventEmitter: vscode.EventEmitter; diff --git a/extensions/azurecore/src/localizedConstants.ts b/extensions/azurecore/src/localizedConstants.ts index b6b9d40718..b10f74431f 100644 --- a/extensions/azurecore/src/localizedConstants.ts +++ b/extensions/azurecore/src/localizedConstants.ts @@ -66,7 +66,10 @@ export const typeIcon = localize('azurecore.typeIcon', "Type Icon"); export const reloadPrompt = localize('azurecore.reloadPrompt', "Authentication Library has changed, please reload Azure Data Studio."); export const reloadChoice = localize('azurecore.reloadChoice', "Reload Azure Data Studio"); -export const deprecatedOption = localize('azurecore.deprecated', "Warning: ADAL has been deprecated, and is scheduled to be removed in a future release. Please use MSAL instead.") +export const deprecatedOption = localize('azurecore.deprecated', "Warning: ADAL has been deprecated, and is scheduled to be removed in a future release. Please use MSAL instead."); +export const piiWarning = localize('azurecore.piiLogging.warning', "Warning: Azure PII Logging is enabled. Enabling this option allows personally identifiable information to be logged and should only be used for debugging purposes."); +export const disable = localize('azurecore.disable', 'Disable'); +export const dismiss = localize('azurecore.dismiss', 'Dismiss'); // Azure Resource Types export const sqlServer = localize('azurecore.sqlServer', "SQL server");