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

@@ -200,3 +200,17 @@ export function getProxyEnabledHttpClient(): HttpClient {
return new HttpClient(proxy, agentOptions);
}
/* Display notification with button to reload
* return true if button clicked
* return false if button not clicked
*/
export async function displayReloadAds(message: string): Promise<boolean> {
const result = await vscode.window.showInformationMessage(message, loc.reloadChoice);
if (result === loc.reloadChoice) {
await vscode.commands.executeCommand('workbench.action.reloadWindow');
return true;
} else {
return false;
}
}