about summary refs log tree commit diff
path: root/editors/code/src/run.ts
diff options
context:
space:
mode:
authorSahandevs <sahandevs@gmail.com>2021-02-07 21:52:32 +0330
committerSahandevs <sahandevs@gmail.com>2021-02-07 21:52:32 +0330
commit1bb4e973ffaffd78a01ba5abb90096d11a2ddb42 (patch)
treec11a44377dcca59d241c45ceb7ae89a06358d8fd /editors/code/src/run.ts
parent1d0e93b58ee3a43881526c9405ca0120fe6ddb20 (diff)
downloadrust-1bb4e973ffaffd78a01ba5abb90096d11a2ddb42.tar.gz
rust-1bb4e973ffaffd78a01ba5abb90096d11a2ddb42.zip
handle Thenable type rejects
Diffstat (limited to 'editors/code/src/run.ts')
-rw-r--r--editors/code/src/run.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/editors/code/src/run.ts b/editors/code/src/run.ts
index 50c17bc7f12..e30fdb38e67 100644
--- a/editors/code/src/run.ts
+++ b/editors/code/src/run.ts
@@ -45,7 +45,8 @@ export async function selectRunnable(ctx: Ctx, prevRunnable?: RunnableQuickPick,
     if (items.length === 0) {
         // it is the debug case, run always has at least 'cargo check ...'
         // see crates\rust-analyzer\src\main_loop\handlers.rs, handle_runnables
-        vscode.window.showErrorMessage("There's no debug target!");
+        vscode.window.showErrorMessage("There's no debug target!")
+            .then(() => {}, console.error);
         return;
     }