From 1bb4e973ffaffd78a01ba5abb90096d11a2ddb42 Mon Sep 17 00:00:00 2001 From: Sahandevs Date: Sun, 7 Feb 2021 21:52:32 +0330 Subject: handle Thenable type rejects --- editors/code/src/run.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'editors/code/src/run.ts') 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, 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; } -- cgit v1.2.3