fix: clear expired auth state before relogin

This commit is contained in:
Roe-xin
2026-03-02 14:51:11 +08:00
parent 5fc0fd2a95
commit f700473967
3 changed files with 44 additions and 11 deletions

View File

@ -256,7 +256,7 @@ export class ICViewProvider implements vscode.WebviewViewProvider {
vscode.commands.executeCommand("ic-coder.login");
} else if (message.command === "logout") {
// 退出登录(前端已有确认对话框)
vscode.commands.executeCommand('iccoder.logout');
vscode.commands.executeCommand("ic-coder.logout");
} else if (message.command === "openICCoder") {
// 打开 IC Coder 官网
vscode.env.openExternal(vscode.Uri.parse('https://www.iccoder.com'));