From 9cfd5ea2b44ece1d2ef521c44f7655bf05c4a61a Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 15 Dec 2018 22:33:09 +0300 Subject: use new clear-terminal feature --- editors/code/src/commands/runnables.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'editors/code/src/commands') diff --git a/editors/code/src/commands/runnables.ts b/editors/code/src/commands/runnables.ts index c234bfaec..be17c8944 100644 --- a/editors/code/src/commands/runnables.ts +++ b/editors/code/src/commands/runnables.ts @@ -44,12 +44,11 @@ function createTask(spec: Runnable): vscode.Task { env: spec.env }; - const execCmd = `${definition.command} ${definition.args.join(' ')}`; const execOption: vscode.ShellExecutionOptions = { cwd: '.', env: definition.env }; - const exec = new vscode.ShellExecution(`clear; ${execCmd}`, execOption); + const exec = new vscode.ShellExecution(definition.command, definition.args, execOption); const f = vscode.workspace.workspaceFolders![0]; const t = new vscode.Task( @@ -60,6 +59,7 @@ function createTask(spec: Runnable): vscode.Task { exec, ['$rustc'] ); + t.presentationOptions.clear = true return t; } -- cgit v1.2.3