We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 010d902 + 695b8ba commit 1953ac1Copy full SHA for 1953ac1
editors/code/src/client.ts
@@ -1,5 +1,6 @@
1
import { homedir } from 'os';
2
import * as lc from 'vscode-languageclient';
3
+import { spawnSync } from 'child_process';
4
5
import { window, workspace } from 'vscode';
6
import { Config } from './config';
@@ -13,6 +14,9 @@ export function createClient(config: Config): lc.LanguageClient {
13
14
}
15
16
const command = expandPathResolving(config.raLspServerPath);
17
+ if (spawnSync(command, ["--version"]).status !== 0) {
18
+ window.showErrorMessage(`Unable to execute '${command} --version'`);
19
+ }
20
const run: lc.Executable = {
21
command,
22
options: { cwd: folder },
0 commit comments