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:
bors[bot] 2020-01-28 16:00:34 +00:00 committed by GitHub
commit 50b6a989d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,