Unnamed repository; edit this file 'description' to name the repository.
Auto merge of #14481 - Veykril:vscode-linking-popup, r=Veykril
fix: Fix vscode project linking popup buttons being swapped closes https://github.com/rust-lang/rust-analyzer/issues/14480
bors 2023-04-04
parent 2365762 · parent 4243eee · commit f070093
-rw-r--r--editors/code/src/client.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/editors/code/src/client.ts b/editors/code/src/client.ts
index 4ca6601a6a..1db02e2105 100644
--- a/editors/code/src/client.ts
+++ b/editors/code/src/client.ts
@@ -148,15 +148,16 @@ export async function createClient(
"Don't show this again"
);
switch (choice) {
- case "Yes":
- break;
case "No":
+ break;
+ case "Yes":
await config.update(
"linkedProjects",
config
.get<any[]>("linkedProjects")
?.concat(
- path.fsPath.substring(folder.length)
+ "." +
+ path.fsPath.substring(folder.length)
),
false
);