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

Improve the missing rust-analyzer bin error notification #172

Merged
merged 1 commit into from
May 12, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
})
Expand Down