mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Add warning message when pii logging enabled (#22533)
* add warning message when pii logging enabled * fix typo * Update extensions/azurecore/src/localizedConstants.ts Co-authored-by: Charles Gagnon <chgagnon@microsoft.com> * update warning message --------- Co-authored-by: Charles Gagnon <chgagnon@microsoft.com>
This commit is contained in:
@@ -97,6 +97,15 @@ export async function activate(context: vscode.ExtensionContext): Promise<azurec
|
||||
const authLibrary: string = vscode.workspace.getConfiguration(Constants.AzureSection).get(Constants.AuthenticationLibrarySection)
|
||||
?? Constants.DefaultAuthLibrary;
|
||||
|
||||
const piiLogging = vscode.workspace.getConfiguration(Constants.AzureSection).get(Constants.piiLogging, false)
|
||||
if (piiLogging) {
|
||||
void vscode.window.showWarningMessage(loc.piiWarning, loc.disable, loc.dismiss).then(async (value) => {
|
||||
if (value === loc.disable) {
|
||||
await vscode.workspace.getConfiguration(Constants.AzureSection).update(Constants.piiLogging, false, vscode.ConfigurationTarget.Global);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
updatePiiLoggingLevel();
|
||||
|
||||
let eventEmitter: vscode.EventEmitter<azurecore.CacheEncryptionKeys>;
|
||||
|
||||
Reference in New Issue
Block a user