use new clear-terminal feature

This commit is contained in:
Aleksey Kladov 2018-12-15 22:33:09 +03:00
parent 0156a53808
commit 9cfd5ea2b4
3 changed files with 15 additions and 15 deletions

View file

@ -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;
}