handle Thenable type rejects

This commit is contained in:
Sahandevs 2021-02-07 21:52:32 +03:30
parent 1d0e93b58e
commit 1bb4e973ff
4 changed files with 23 additions and 12 deletions

View file

@ -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;
}