Provide better diagnostics if the server is not in path

This commit is contained in:
Aleksey Kladov 2020-01-28 17:00:00 +01:00
parent 3f70236965
commit 94784cc546

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,