aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-01-28 16:00:34 +0000
committerGitHub <[email protected]>2020-01-28 16:00:34 +0000
commit50b6a989d28b4b79e978d2c682859c12f4b75385 (patch)
tree66153060be9278bc3228ca6d3a79eea0f7d5360a
parent3f70236965d3c6f03c12f890532f0683248fac2f (diff)
parent94784cc546916f26ff9e312923a16463852e8e00 (diff)
Merge #2928
2928: Provide better diagnostics if the server is not in path r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
-rw-r--r--editors/code/src/client.ts8
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
21Perhaps it is not in $PATH?
22
23PATH=${process.env.PATH}
24`);
19 } 25 }
20 const run: lc.Executable = { 26 const run: lc.Executable = {
21 command, 27 command,