Don't use localized folder for azure tokens (#20559)

This commit is contained in:
Charles Gagnon
2022-09-08 09:54:52 -07:00
committed by GitHub
parent 649c98c016
commit 415c769d60
2 changed files with 3 additions and 1 deletions

View File

@@ -8,6 +8,8 @@ export const ViewType = 'view';
export const dataGridProviderId = 'azure-resources';
export const AzureTokenFolderName = 'Azure Accounts';
export enum BuiltInCommands {
SetContext = 'setContext'
}

View File

@@ -233,7 +233,7 @@ export async function activate(context: vscode.ExtensionContext): Promise<azurec
// Create the folder for storing the token caches
async function findOrMakeStoragePath() {
let defaultLogLocation = getDefaultLogLocation();
let storagePath = path.join(defaultLogLocation, loc.extensionName);
let storagePath = path.join(defaultLogLocation, constants.AzureTokenFolderName);
try {
await fs.mkdir(defaultLogLocation, { recursive: true });