Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit 3d41d7d

Browse files
authored
Improve the missing rust-analyzer bin error notification (#172)
1 parent e46be55 commit 3d41d7d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,11 @@ function rustupRun(toolchain, command, opts={}) {
8080

8181
function notifyLanguageServerCommandFailed(languageServerCmd) {
8282
clearIdeRustNotifications("ide-rust.langServerCommand")
83-
atom.notifications.addError(`Language server command \`${languageServerCmd}\` failed`, {
83+
let description = "Make sure the **rust-analyzer** binary is installed and in `$PATH`."
84+
+ "\n\nSee https://rust-analyzer.github.io/manual.html#rust-analyzer-language-server-binary."
85+
86+
atom.notifications.addError(`Could not run \`${languageServerCmd}\``, {
87+
description,
8488
dismissable: true,
8589
_src: "ide-rust.langServerCommand"
8690
})

0 commit comments

Comments
 (0)