Skip to content

Commit f070093

Browse files
committed
Auto merge of rust-lang#14481 - Veykril:vscode-linking-popup, r=Veykril
fix: Fix vscode project linking popup buttons being swapped closes rust-lang/rust-analyzer#14480
2 parents 2365762 + 4243eee commit f070093

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

editors/code/src/client.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -148,15 +148,16 @@ export async function createClient(
148148
"Don't show this again"
149149
);
150150
switch (choice) {
151-
case "Yes":
152-
break;
153151
case "No":
152+
break;
153+
case "Yes":
154154
await config.update(
155155
"linkedProjects",
156156
config
157157
.get<any[]>("linkedProjects")
158158
?.concat(
159-
path.fsPath.substring(folder.length)
159+
"." +
160+
path.fsPath.substring(folder.length)
160161
),
161162
false
162163
);

0 commit comments

Comments
 (0)