From 3507bcb97aaaafba10d55c101bd295f3ab4fed4f Mon Sep 17 00:00:00 2001 From: Roberto Vidal Date: Thu, 11 Apr 2019 08:08:19 +0200 Subject: Adds support for multiple editor workspaces on initialization This is a quick, partial fix for #1104 --- editors/code/src/server.ts | 7 ------- 1 file changed, 7 deletions(-) (limited to 'editors/code/src') diff --git a/editors/code/src/server.ts b/editors/code/src/server.ts index f319f148a..5e9a19340 100644 --- a/editors/code/src/server.ts +++ b/editors/code/src/server.ts @@ -17,13 +17,6 @@ export class Server { let folder: string = '.'; if (workspace.workspaceFolders !== undefined) { folder = workspace.workspaceFolders[0].uri.fsPath.toString(); - - if (workspace.workspaceFolders.length > 1) { - // Tell the user that we do not support multi-root workspaces yet - window.showWarningMessage( - 'Multi-root workspaces are not currently supported' - ); - } } const run: lc.Executable = { -- cgit v1.2.3 From 7c7cfc5f04c51ed1e31b6a3091efc3941b3383c2 Mon Sep 17 00:00:00 2001 From: Roberto Vidal Date: Sat, 13 Apr 2019 19:45:21 +0200 Subject: Sends cwd info for runnables and code lenses --- editors/code/src/commands/runnables.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'editors/code/src') diff --git a/editors/code/src/commands/runnables.ts b/editors/code/src/commands/runnables.ts index 3589edcee..c4df24c79 100644 --- a/editors/code/src/commands/runnables.ts +++ b/editors/code/src/commands/runnables.ts @@ -17,6 +17,7 @@ interface Runnable { bin: string; args: string[]; env: { [index: string]: string }; + cwd?: string; } class RunnableQuickPick implements vscode.QuickPickItem { @@ -49,7 +50,7 @@ function createTask(spec: Runnable): vscode.Task { }; const execOption: vscode.ShellExecutionOptions = { - cwd: '.', + cwd: spec.cwd || '.', env: definition.env }; const exec = new vscode.ShellExecution( -- cgit v1.2.3