mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-21 17:50:18 +00:00
Create tasks for all workspaces
This commit is contained in:
parent
5587d0a3e3
commit
a05163db14
4 changed files with 20 additions and 22 deletions
|
@ -32,14 +32,9 @@ export function createClient(serverPath: string, workspace: Workspace, extraEnv:
|
|||
const newEnv = Object.assign({}, process.env);
|
||||
Object.assign(newEnv, extraEnv);
|
||||
|
||||
let cwd = undefined;
|
||||
if (workspace.kind === "Workspace Folder") {
|
||||
cwd = workspace.folder.fsPath;
|
||||
};
|
||||
|
||||
const run: lc.Executable = {
|
||||
command: serverPath,
|
||||
options: { cwd, env: newEnv },
|
||||
options: { env: newEnv },
|
||||
};
|
||||
const serverOptions: lc.ServerOptions = {
|
||||
run,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue