about summary refs log tree commit diff
path: root/editors/code/src
diff options
context:
space:
mode:
authorAleksey Kladov <aleksey.kladov@gmail.com>2019-12-30 09:51:44 +0100
committerAleksey Kladov <aleksey.kladov@gmail.com>2019-12-30 11:20:45 +0100
commite0fa096bbb73ce4fb44848e334f1001c43cc9b74 (patch)
tree2883fd3704434e9e4455791e70be7bfbfb85733c /editors/code/src
parent5846221a39e3d33bdd848106ff8d9520eaa7455d (diff)
downloadrust-e0fa096bbb73ce4fb44848e334f1001c43cc9b74.tar.gz
rust-e0fa096bbb73ce4fb44848e334f1001c43cc9b74.zip
Add rollup
Diffstat (limited to 'editors/code/src')
-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 ae81af84835..e1ad0520b90 100644
--- a/editors/code/src/server.ts
+++ b/editors/code/src/server.ts
@@ -1,5 +1,4 @@
-import { lookpath } from 'lookpath';
-import { homedir, platform } from 'os';
+import { homedir } from 'os';
 import * as lc from 'vscode-languageclient';
 
 import { window, workspace } from 'vscode';
@@ -29,15 +28,6 @@ export class Server {
         }
 
         const command = expandPathResolving(this.config.raLspServerPath);
-        // FIXME: remove check when the following issue is fixed:
-        // https://github.com/otiai10/lookpath/issues/4
-        if (platform() !== 'win32') {
-            if (!(await lookpath(command))) {
-                throw new Error(
-                    `Cannot find rust-analyzer server \`${command}\` in PATH.`,
-                );
-            }
-        }
         const run: lc.Executable = {
             command,
             options: { cwd: folder },