aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/run.ts
diff options
context:
space:
mode:
authorSahandevs <[email protected]>2021-02-07 18:22:32 +0000
committerSahandevs <[email protected]>2021-02-07 18:22:32 +0000
commit1bb4e973ffaffd78a01ba5abb90096d11a2ddb42 (patch)
treec11a44377dcca59d241c45ceb7ae89a06358d8fd /editors/code/src/run.ts
parent1d0e93b58ee3a43881526c9405ca0120fe6ddb20 (diff)
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 50c17bc7f..e30fdb38e 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,
45 if (items.length === 0) { 45 if (items.length === 0) {
46 // it is the debug case, run always has at least 'cargo check ...' 46 // it is the debug case, run always has at least 'cargo check ...'
47 // see crates\rust-analyzer\src\main_loop\handlers.rs, handle_runnables 47 // see crates\rust-analyzer\src\main_loop\handlers.rs, handle_runnables
48 vscode.window.showErrorMessage("There's no debug target!"); 48 vscode.window.showErrorMessage("There's no debug target!")
49 .then(() => {}, console.error);
49 return; 50 return;
50 } 51 }
51 52