mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-31 07:37:30 +00:00
use new clear-terminal feature
This commit is contained in:
parent
0156a53808
commit
9cfd5ea2b4
3 changed files with 15 additions and 15 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue