aboutsummaryrefslogtreecommitdiff
path: root/editors/code
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-01-28 16:00:00 +0000
committerAleksey Kladov <[email protected]>2020-01-28 16:00:00 +0000
commit94784cc546916f26ff9e312923a16463852e8e00 (patch)
tree66153060be9278bc3228ca6d3a79eea0f7d5360a /editors/code
parent3f70236965d3c6f03c12f890532f0683248fac2f (diff)
Provide better diagnostics if the server is not in path
Diffstat (limited to 'editors/code')
-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,