diff options
Diffstat (limited to 'editors/code/package.json')
-rw-r--r-- | editors/code/package.json | 22 |
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 | } |