|
261 | 261 | "default": [], |
262 | 262 | "description": "Paths to exclude from analysis" |
263 | 263 | }, |
264 | | - "rust-analyzer.rustfmtArgs": { |
| 264 | + "rust-analyzer.useClientWatching": { |
| 265 | + "type": "boolean", |
| 266 | + "default": true, |
| 267 | + "description": "client provided file watching instead of notify watching." |
| 268 | + }, |
| 269 | + "rust-analyzer.rustfmt.extraArgs": { |
265 | 270 | "type": "array", |
266 | 271 | "items": { |
267 | 272 | "type": "string" |
268 | 273 | }, |
269 | 274 | "default": [], |
270 | | - "description": "Additional arguments to rustfmt" |
| 275 | + "markdownDescription": "Additional `cargo fmt` arguments" |
271 | 276 | }, |
272 | | - "rust-analyzer.useClientWatching": { |
| 277 | + "rust-analyzer.rustfmt.overrideCommand": { |
| 278 | + "type": "array", |
| 279 | + "items": { |
| 280 | + "type": "string" |
| 281 | + }, |
| 282 | + "default": [], |
| 283 | + "markdownDescription": "Advanced option, fully override `cargo fmt` command line" |
| 284 | + }, |
| 285 | + "rust-analyzer.checkOnSave.enable": { |
273 | 286 | "type": "boolean", |
274 | 287 | "default": true, |
275 | | - "description": "client provided file watching instead of notify watching." |
| 288 | + "markdownDescription": "Run `cargo check` command for diagnostics on save" |
| 289 | + }, |
| 290 | + "rust-analyzer.checkOnSave.cargoCommand": { |
| 291 | + "type": "string", |
| 292 | + "default": "check", |
| 293 | + "markdownDescription": "Cargo command to run on save" |
276 | 294 | }, |
277 | | - "rust-analyzer.cargo-watch.enable": { |
| 295 | + "rust-analyzer.checkOnSave.allTargets": { |
278 | 296 | "type": "boolean", |
279 | 297 | "default": true, |
280 | | - "markdownDescription": "Run specified `cargo-watch` command for diagnostics on save" |
| 298 | + "markdownDescription": "Check all targets and tests (will be passed as `--all-targets`)" |
281 | 299 | }, |
282 | | - "rust-analyzer.cargo-watch.arguments": { |
| 300 | + "rust-analyzer.checkOnSave.extraArgs": { |
283 | 301 | "type": "array", |
284 | 302 | "items": { |
285 | 303 | "type": "string" |
286 | 304 | }, |
287 | | - "markdownDescription": "`cargo-watch` arguments. (e.g: `--features=\"shumway,pdf\"` will run as `cargo watch -x \"check --features=\"shumway,pdf\"\"` )", |
| 305 | + "markdownDescription": "Additional `cargo check` arguments", |
288 | 306 | "default": [] |
289 | 307 | }, |
290 | | - "rust-analyzer.cargo-watch.command": { |
291 | | - "type": "string", |
292 | | - "markdownDescription": "`cargo-watch` command. (e.g: `clippy` will run as `cargo watch -x clippy` )", |
293 | | - "default": "check" |
294 | | - }, |
295 | | - "rust-analyzer.cargo-watch.allTargets": { |
296 | | - "type": "boolean", |
297 | | - "markdownDescription": "Check all targets and tests (will be passed as `--all-targets`)", |
298 | | - "default": true |
| 308 | + "rust-analyzer.checkOnSave.overrideCommand": { |
| 309 | + "type": "array", |
| 310 | + "items": { |
| 311 | + "type": "string" |
| 312 | + }, |
| 313 | + "default": [], |
| 314 | + "markdownDescription": "Advanced option, fully override `cargo check` command line (this must include at least `--message-format=json`)" |
299 | 315 | }, |
300 | 316 | "rust-analyzer.trace.server": { |
301 | 317 | "type": "string", |
|
0 commit comments