fix:解决登录过期点击重新登录失败的bug

This commit is contained in:
Roe-xin
2026-03-03 14:19:00 +08:00
parent 8f305033f7
commit 3458f6fe23
5 changed files with 41 additions and 19 deletions

View File

@ -91,7 +91,9 @@ export async function showICHelperPanel(
"立即登录",
);
if (action === "立即登录") {
vscode.commands.executeCommand("ic-coder.login");
vscode.commands.executeCommand("ic-coder.login", {
forceReauth: true,
});
}
return;
}
@ -106,7 +108,9 @@ export async function showICHelperPanel(
.showWarningMessage("请先登录后再使用 IC Coder", "立即登录")
.then((selection) => {
if (selection === "立即登录") {
vscode.commands.executeCommand("ic-coder.login");
vscode.commands.executeCommand("ic-coder.login", {
forceReauth: true,
});
}
});
return;
@ -116,7 +120,9 @@ export async function showICHelperPanel(
.showWarningMessage("请先登录后再使用 IC Coder", "立即登录")
.then((selection) => {
if (selection === "立即登录") {
vscode.commands.executeCommand("ic-coder.login");
vscode.commands.executeCommand("ic-coder.login", {
forceReauth: true,
});
}
});
return;