about summary refs log tree commit diff
path: root/editors/code/src/debug.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/debug.ts
parent1d0e93b58ee3a43881526c9405ca0120fe6ddb20 (diff)
downloadrust-1bb4e973ffaffd78a01ba5abb90096d11a2ddb42.tar.gz
rust-1bb4e973ffaffd78a01ba5abb90096d11a2ddb42.zip
handle Thenable type rejects
Diffstat (limited to 'editors/code/src/debug.ts')
-rw-r--r--editors/code/src/debug.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/editors/code/src/debug.ts b/editors/code/src/debug.ts
index 874b858d9e5..0bbaae2b0ab 100644
--- a/editors/code/src/debug.ts
+++ b/editors/code/src/debug.ts
@@ -78,7 +78,8 @@ async function getDebugConfiguration(ctx: Ctx, runnable: ra.Runnable): Promise<v
 
     if (!debugEngine) {
         vscode.window.showErrorMessage(`Install [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb)`
-            + ` or [MS C++ tools](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools) extension for debugging.`);
+            + ` or [MS C++ tools](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools) extension for debugging.`)
+            .then(() => {}, console.error);
         return;
     }