aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/server.ts
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-12-30 10:49:04 +0000
committerGitHub <[email protected]>2019-12-30 10:49:04 +0000
commit0c371d2128a7efc8a82d905a97a7f7501098c441 (patch)
treebaf1b4d8c81150ed494e89d0c49cdc7c7b41efd4 /editors/code/src/server.ts
parentbe37c3369b4a2203ace1d65d65bf6ddb5c7faa45 (diff)
parent1f8719ee876ab6fb8b29cdf018815b03e000f197 (diff)
Merge pull request #2684 from matklad/refactor-frontend
Refactor frontend
Diffstat (limited to 'editors/code/src/server.ts')
-rw-r--r--editors/code/src/server.ts12
1 files changed, 1 insertions, 11 deletions
diff --git a/editors/code/src/server.ts b/editors/code/src/server.ts
index ae81af848..e1ad0520b 100644
--- a/editors/code/src/server.ts
+++ b/editors/code/src/server.ts
@@ -1,5 +1,4 @@
1import { lookpath } from 'lookpath'; 1import { homedir } from 'os';
2import { homedir, platform } from 'os';
3import * as lc from 'vscode-languageclient'; 2import * as lc from 'vscode-languageclient';
4 3
5import { window, workspace } from 'vscode'; 4import { window, workspace } from 'vscode';
@@ -29,15 +28,6 @@ export class Server {
29 } 28 }
30 29
31 const command = expandPathResolving(this.config.raLspServerPath); 30 const command = expandPathResolving(this.config.raLspServerPath);
32 // FIXME: remove check when the following issue is fixed:
33 // https://github.com/otiai10/lookpath/issues/4
34 if (platform() !== 'win32') {
35 if (!(await lookpath(command))) {
36 throw new Error(
37 `Cannot find rust-analyzer server \`${command}\` in PATH.`,
38 );
39 }
40 }
41 const run: lc.Executable = { 31 const run: lc.Executable = {
42 command, 32 command,
43 options: { cwd: folder }, 33 options: { cwd: folder },