mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 05:23:24 +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
22
editors/code/package-lock.json
generated
22
editors/code/package-lock.json
generated
|
@ -2535,27 +2535,27 @@
|
||||||
"integrity": "sha512-perEnXQdQOJMTDFNv+UF3h1Y0z4iSiaN9jIlb0OqIYgosPCZGYh/MCUlkFtV2668PL69lRDO32hmvL2yiidUYg=="
|
"integrity": "sha512-perEnXQdQOJMTDFNv+UF3h1Y0z4iSiaN9jIlb0OqIYgosPCZGYh/MCUlkFtV2668PL69lRDO32hmvL2yiidUYg=="
|
||||||
},
|
},
|
||||||
"vscode-languageclient": {
|
"vscode-languageclient": {
|
||||||
"version": "5.1.1",
|
"version": "5.2.1",
|
||||||
"resolved": "https://registry.npmjs.org/vscode-languageclient/-/vscode-languageclient-5.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/vscode-languageclient/-/vscode-languageclient-5.2.1.tgz",
|
||||||
"integrity": "sha512-jMxshi+BPRQFNG8GB00dJv7ldqMda0be26laYYll/udtJuHbog6RqK10GSxHWDN0PgY0b0m5fePyTk3bq8a0TA==",
|
"integrity": "sha512-7jrS/9WnV0ruqPamN1nE7qCxn0phkH5LjSgSp9h6qoJGoeAKzwKz/PF6M+iGA/aklx4GLZg1prddhEPQtuXI1Q==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"semver": "5.5.1",
|
"semver": "5.5.1",
|
||||||
"vscode-languageserver-protocol": "3.13.0"
|
"vscode-languageserver-protocol": "3.14.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"vscode-languageserver-protocol": {
|
"vscode-languageserver-protocol": {
|
||||||
"version": "3.13.0",
|
"version": "3.14.1",
|
||||||
"resolved": "https://registry.npmjs.org/vscode-languageserver-protocol/-/vscode-languageserver-protocol-3.13.0.tgz",
|
"resolved": "https://registry.npmjs.org/vscode-languageserver-protocol/-/vscode-languageserver-protocol-3.14.1.tgz",
|
||||||
"integrity": "sha512-2ZGKwI+P2ovQll2PGAp+2UfJH+FK9eait86VBUdkPd9HRlm8e58aYT9pV/NYanHOcp3pL6x2yTLVCFMcTer0mg==",
|
"integrity": "sha512-IL66BLb2g20uIKog5Y2dQ0IiigW0XKrvmWiOvc0yXw80z3tMEzEnHjaGAb3ENuU7MnQqgnYJ1Cl2l9RvNgDi4g==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"vscode-jsonrpc": "4.0.0",
|
"vscode-jsonrpc": "4.0.0",
|
||||||
"vscode-languageserver-types": "3.13.0"
|
"vscode-languageserver-types": "3.14.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"vscode-languageserver-types": {
|
"vscode-languageserver-types": {
|
||||||
"version": "3.13.0",
|
"version": "3.14.0",
|
||||||
"resolved": "https://registry.npmjs.org/vscode-languageserver-types/-/vscode-languageserver-types-3.13.0.tgz",
|
"resolved": "https://registry.npmjs.org/vscode-languageserver-types/-/vscode-languageserver-types-3.14.0.tgz",
|
||||||
"integrity": "sha512-BnJIxS+5+8UWiNKCP7W3g9FlE7fErFw0ofP5BXJe7c2tl0VeWh+nNHFbwAS2vmVC4a5kYxHBjRy0UeOtziemVA=="
|
"integrity": "sha512-lTmS6AlAlMHOvPQemVwo3CezxBp0sNB95KNPkqp3Nxd5VFEnuG1ByM0zlRWos0zjO3ZWtkvhal0COgiV1xIA4A=="
|
||||||
},
|
},
|
||||||
"vso-node-api": {
|
"vso-node-api": {
|
||||||
"version": "6.1.2-preview",
|
"version": "6.1.2-preview",
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
"Other"
|
"Other"
|
||||||
],
|
],
|
||||||
"engines": {
|
"engines": {
|
||||||
"vscode": "^1.26.0"
|
"vscode": "^1.30.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"vscode:prepublish": "npm run compile",
|
"vscode:prepublish": "npm run compile",
|
||||||
|
@ -31,7 +31,7 @@
|
||||||
"singleQuote": true
|
"singleQuote": true
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"vscode-languageclient": "^5.1.1"
|
"vscode-languageclient": "^5.2.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/mocha": "^2.2.42",
|
"@types/mocha": "^2.2.42",
|
||||||
|
|
|
@ -44,12 +44,11 @@ function createTask(spec: Runnable): vscode.Task {
|
||||||
env: spec.env
|
env: spec.env
|
||||||
};
|
};
|
||||||
|
|
||||||
const execCmd = `${definition.command} ${definition.args.join(' ')}`;
|
|
||||||
const execOption: vscode.ShellExecutionOptions = {
|
const execOption: vscode.ShellExecutionOptions = {
|
||||||
cwd: '.',
|
cwd: '.',
|
||||||
env: definition.env
|
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 f = vscode.workspace.workspaceFolders![0];
|
||||||
const t = new vscode.Task(
|
const t = new vscode.Task(
|
||||||
|
@ -60,6 +59,7 @@ function createTask(spec: Runnable): vscode.Task {
|
||||||
exec,
|
exec,
|
||||||
['$rustc']
|
['$rustc']
|
||||||
);
|
);
|
||||||
|
t.presentationOptions.clear = true
|
||||||
return t;
|
return t;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue