Skip to content

Commit

Permalink
fix: errors of switching profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
yini-chen committed Jun 26, 2024
1 parent 780b45c commit 6f2b882
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import * as fs from "fs-extra";
import { Product } from "./types";
import { codeSampleProvider } from "./plugins/generate";
import { generateImport } from "./common/generateImport";
import { getProfileInfoInstance } from "./profileManager";

const path = require("path");

Expand Down Expand Up @@ -274,6 +275,8 @@ export class AlicloudApiCommands {
});

vscode.commands.registerCommand("alicloud.api.restart", async () => {
const profileInfo = await getProfileInfoInstance();
await profileInfo.refreshProfiles();
await vscode.window.withProgress(
{
location: vscode.ProgressLocation.Window,
Expand Down

0 comments on commit 6f2b882

Please sign in to comment.