diff options
author | Aleksey Kladov <[email protected]> | 2019-12-30 08:51:44 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-12-30 10:20:45 +0000 |
commit | e0fa096bbb73ce4fb44848e334f1001c43cc9b74 (patch) | |
tree | 2883fd3704434e9e4455791e70be7bfbfb85733c /editors/code/src | |
parent | 5846221a39e3d33bdd848106ff8d9520eaa7455d (diff) |
Add rollup
Diffstat (limited to 'editors/code/src')
-rw-r--r-- | editors/code/src/server.ts | 12 |
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 @@ | |||
1 | import { lookpath } from 'lookpath'; | 1 | import { homedir } from 'os'; |
2 | import { homedir, platform } from 'os'; | ||
3 | import * as lc from 'vscode-languageclient'; | 2 | import * as lc from 'vscode-languageclient'; |
4 | 3 | ||
5 | import { window, workspace } from 'vscode'; | 4 | import { 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 }, |