aboutsummaryrefslogtreecommitdiff
path: root/editors/code/package.json
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2019-04-20 15:02:36 +0100
committerbors[bot] <bors[bot]@users.noreply.github.com>2019-04-20 15:02:36 +0100
commit526a6aba104a32eb9f0f5a65232783d5570c35d5 (patch)
treef8f6687924cb15a2d759dae02205b7f28a5f83fd /editors/code/package.json
parent0d39b1c3fa03a8032ea96be922fd62710f811aba (diff)
parent4cd0a96c96870d4e9a73b92f401a8fad26f3c02a (diff)
Merge #1174
1174: improve cargo watch r=matklad a=vemoo - Add start and stop commands - Cleanup trypescript code to avoid definite assignment assertions (`!` after possibly undefined value) - Recover `rustc-watch` problem matcher because it's still useful, can be used with any command, for example `cargo test` Co-authored-by: Bernardo <[email protected]>
Diffstat (limited to 'editors/code/package.json')
-rw-r--r--editors/code/package.json22
1 files changed, 22 insertions, 0 deletions
diff --git a/editors/code/package.json b/editors/code/package.json
index a0454191a..83ceb19f7 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -119,6 +119,16 @@
119 "command": "rust-analyzer.reload", 119 "command": "rust-analyzer.reload",
120 "title": "Restart server", 120 "title": "Restart server",
121 "category": "Rust Analyzer" 121 "category": "Rust Analyzer"
122 },
123 {
124 "command": "rust-analyzer.startCargoWatch",
125 "title": "Start Cargo Watch",
126 "category": "Rust Analyzer"
127 },
128 {
129 "command": "rust-analyzer.stopCargoWatch",
130 "title": "Stop Cargo Watch",
131 "category": "Rust Analyzer"
122 } 132 }
123 ], 133 ],
124 "keybindings": [ 134 "keybindings": [
@@ -250,6 +260,18 @@
250 "${workspaceRoot}" 260 "${workspaceRoot}"
251 ], 261 ],
252 "pattern": "$rustc" 262 "pattern": "$rustc"
263 },
264 {
265 "name": "rustc-watch",
266 "fileLocation": [
267 "relative",
268 "${workspaceRoot}"
269 ],
270 "background": {
271 "beginsPattern": "^\\[Running\\b",
272 "endsPattern": "^\\[Finished running\\b"
273 },
274 "pattern": "$rustc"
253 } 275 }
254 ] 276 ]
255 } 277 }