Skip to content

Commit 95ceafa

Browse files
author
lhy
committed
先验证,然后更新apikey,再更新email
1 parent da81b1b commit 95ceafa

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/webviewProvider.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,18 +126,18 @@ export class WebviewProvider {
126126
backendUrl: string;
127127
}) {
128128
try {
129+
await this.treeProvider.updateApikey(config);
130+
await this.passwordManager.storePassword(config.password);
131+
129132
// 分别更新每个配置项
130133
await vscode.workspace
131134
.getConfiguration("pawsql")
132135
.update("email", config.email, true);
133136

134-
await this.passwordManager.storePassword(config.password);
135-
136137
await vscode.workspace
137138
.getConfiguration("pawsql")
138139
.update("backendUrl", config.backendUrl, true);
139140

140-
await this.treeProvider.updateApikey(config);
141141
await this.treeProvider.refresh();
142142
// 配置保存成功反馈
143143
vscode.window.showInformationMessage(

0 commit comments

Comments
 (0)