about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-10-20 09:34:06 +0000
committerbors <bors@rust-lang.org>2022-10-20 09:34:06 +0000
commit32614e27fba85532f0d5808a4b32277beba2f252 (patch)
tree976cf6536713c499eb4d1081dc5966a71d5a89b0
parenta77ac93b2a6bfada6641a9067045ef6b3ec46951 (diff)
parent69b845674c44cc14793a9d3727ff687c0141cf72 (diff)
downloadrust-32614e27fba85532f0d5808a4b32277beba2f252.tar.gz
rust-32614e27fba85532f0d5808a4b32277beba2f252.zip
Auto merge of #13444 - Veykril:rethrow-err, r=Veykril
fix: Don't catch the server activation error

We are are rethrowing and showing errors higher up in the call stack already. This just ate the error hiding the stacktrace unnecessarily.
-rw-r--r--editors/code/src/main.ts5
1 files changed, 1 insertions, 4 deletions
diff --git a/editors/code/src/main.ts b/editors/code/src/main.ts
index f65620aebc6..c47680fbac5 100644
--- a/editors/code/src/main.ts
+++ b/editors/code/src/main.ts
@@ -91,10 +91,7 @@ async function activateServer(ctx: Ctx): Promise<RustAnalyzerExtensionApi> {
         ctx.subscriptions
     );
 
-    await ctx.activate().catch((err) => {
-        void vscode.window.showErrorMessage(`Cannot activate rust-analyzer server: ${err.message}`);
-    });
-
+    await ctx.activate();
     return ctx.clientFetcher();
 }