diff options
| author | bors <bors@rust-lang.org> | 2023-04-04 05:55:57 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-04-04 05:55:57 +0000 |
| commit | f070093462bee3d0560b9c532870e51352ce0ceb (patch) | |
| tree | 21bde7634990cbeae4521eaf2bde52e81f9ee3cd | |
| parent | 236576227a299fd19ba836b1834ab50c948af994 (diff) | |
| parent | 4243eeeb2b0a4f1c8a84e850f567e6445a8ed939 (diff) | |
| download | rust-f070093462bee3d0560b9c532870e51352ce0ceb.tar.gz rust-f070093462bee3d0560b9c532870e51352ce0ceb.zip | |
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
| -rw-r--r-- | editors/code/src/client.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/editors/code/src/client.ts b/editors/code/src/client.ts index 4ca6601a6aa..1db02e21058 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 ); |
