diff options
author | Sahandevs <[email protected]> | 2021-02-07 18:22:32 +0000 |
---|---|---|
committer | Sahandevs <[email protected]> | 2021-02-07 18:22:32 +0000 |
commit | 1bb4e973ffaffd78a01ba5abb90096d11a2ddb42 (patch) | |
tree | c11a44377dcca59d241c45ceb7ae89a06358d8fd /editors/code/src/run.ts | |
parent | 1d0e93b58ee3a43881526c9405ca0120fe6ddb20 (diff) |
handle Thenable type rejects
Diffstat (limited to 'editors/code/src/run.ts')
-rw-r--r-- | editors/code/src/run.ts | 3 |
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 | ||