Clean encryption keys with cache clear command (#23875)

This commit is contained in:
Cheena Malhotra
2023-07-14 09:29:11 -07:00
committed by GitHub
parent 7bc05e507d
commit 6e29e50001
7 changed files with 34 additions and 21 deletions

View File

@@ -20,6 +20,8 @@ import { Configuration, PublicClientApplication } from '@azure/msal-node';
import * as Constants from '../constants';
import { Logger } from '../utils/Logger';
import { ILoggerCallback, LogLevel as MsalLogLevel } from "@azure/msal-common";
import { displayReloadAds } from '../utils';
import { reloadPromptCacheClear } from '../localizedConstants';
let localize = nls.loadMessageBundle();
@@ -108,8 +110,7 @@ export class AzureAccountProviderService implements vscode.Disposable {
return Promise.all(promises)
.then(
() => {
let message = localize('clearTokenCacheSuccess', "Token cache successfully cleared");
void vscode.window.showInformationMessage(`${loc.extensionName}: ${message}`);
void displayReloadAds(reloadPromptCacheClear);
},
err => {
let message = localize('clearTokenCacheFailure', "Failed to clear token cache");