Merge #2928
2928: Provide better diagnostics if the server is not in path r=matklad a=matklad Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
commit
50b6a989d2
@ -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…
x
Reference in New Issue
Block a user