Add rollup

This commit is contained in:
Aleksey Kladov
2019-12-30 09:51:44 +01:00
parent 5846221a39
commit e0fa096bbb
6 changed files with 753 additions and 40 deletions

View File

@@ -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 },