diff options
| author | Aleksey Kladov <aleksey.kladov@gmail.com> | 2018-12-15 22:33:09 +0300 |
|---|---|---|
| committer | Aleksey Kladov <aleksey.kladov@gmail.com> | 2018-12-15 22:33:35 +0300 |
| commit | 9cfd5ea2b44ece1d2ef521c44f7655bf05c4a61a (patch) | |
| tree | 76254f3ce7803157a0a2832188da2f167f3d9076 /editors/code/src | |
| parent | 0156a538089828340a823ed02da8970bf4f1175b (diff) | |
| download | rust-9cfd5ea2b44ece1d2ef521c44f7655bf05c4a61a.tar.gz rust-9cfd5ea2b44ece1d2ef521c44f7655bf05c4a61a.zip | |
use new clear-terminal feature
Diffstat (limited to 'editors/code/src')
| -rw-r--r-- | editors/code/src/commands/runnables.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editors/code/src/commands/runnables.ts b/editors/code/src/commands/runnables.ts index c234bfaec56..be17c8944ff 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; } |
