Create tasks for all workspaces

This commit is contained in:
Kirill Bulatov 2021-05-26 01:11:52 +03:00
parent 5587d0a3e3
commit a05163db14
4 changed files with 20 additions and 22 deletions

View file

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