mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 13:03:31 +00:00
Provide better diagnostics if the server is not in path
This commit is contained in:
parent
3f70236965
commit
94784cc546
1 changed files with 7 additions and 1 deletions
|
@ -15,7 +15,13 @@ export function createClient(config: Config): lc.LanguageClient {
|
|||
|
||||
const command = expandPathResolving(config.raLspServerPath);
|
||||
if (spawnSync(command, ["--version"]).status !== 0) {
|
||||
window.showErrorMessage(`Unable to execute '${command} --version'`);
|
||||
window.showErrorMessage(
|
||||
`Unable to execute '${command} --version'
|
||||
|
||||
Perhaps it is not in $PATH?
|
||||
|
||||
PATH=${process.env.PATH}
|
||||
`);
|
||||
}
|
||||
const run: lc.Executable = {
|
||||
command,
|
||||
|
|
Loading…
Reference in a new issue