diff options
author | Aleksey Kladov <[email protected]> | 2020-01-28 16:00:00 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-01-28 16:00:00 +0000 |
commit | 94784cc546916f26ff9e312923a16463852e8e00 (patch) | |
tree | 66153060be9278bc3228ca6d3a79eea0f7d5360a | |
parent | 3f70236965d3c6f03c12f890532f0683248fac2f (diff) |
Provide better diagnostics if the server is not in path
-rw-r--r-- | editors/code/src/client.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/editors/code/src/client.ts b/editors/code/src/client.ts index 1ff64a930..15e1a0873 100644 --- a/editors/code/src/client.ts +++ b/editors/code/src/client.ts | |||
@@ -15,7 +15,13 @@ export function createClient(config: Config): lc.LanguageClient { | |||
15 | 15 | ||
16 | const command = expandPathResolving(config.raLspServerPath); | 16 | const command = expandPathResolving(config.raLspServerPath); |
17 | if (spawnSync(command, ["--version"]).status !== 0) { | 17 | if (spawnSync(command, ["--version"]).status !== 0) { |
18 | window.showErrorMessage(`Unable to execute '${command} --version'`); | 18 | window.showErrorMessage( |
19 | `Unable to execute '${command} --version' | ||
20 | |||
21 | Perhaps it is not in $PATH? | ||
22 | |||
23 | PATH=${process.env.PATH} | ||
24 | `); | ||
19 | } | 25 | } |
20 | const run: lc.Executable = { | 26 | const run: lc.Executable = { |
21 | command, | 27 | command, |