From 2395a2650d6bf8cdec9774795394d95d8844f0f2 Mon Sep 17 00:00:00 2001 From: Alex Butler Date: Tue, 12 May 2020 21:27:30 +0100 Subject: [PATCH] Improve the missing rust-analyzer bin error notification --- lib/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index 84332c7..e3524a9 100644 --- a/lib/index.js +++ b/lib/index.js @@ -80,7 +80,11 @@ function rustupRun(toolchain, command, opts={}) { function notifyLanguageServerCommandFailed(languageServerCmd) { clearIdeRustNotifications("ide-rust.langServerCommand") - atom.notifications.addError(`Language server command \`${languageServerCmd}\` failed`, { + let description = "Make sure the **rust-analyzer** binary is installed and in `$PATH`." + + "\n\nSee https://rust-analyzer.github.io/manual.html#rust-analyzer-language-server-binary." + + atom.notifications.addError(`Could not run \`${languageServerCmd}\``, { + description, dismissable: true, _src: "ide-rust.langServerCommand" })