diff options
Diffstat (limited to 'editors/code/package.json')
-rw-r--r-- | editors/code/package.json | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/editors/code/package.json b/editors/code/package.json index 99223c4e8..17d9281ff 100644 --- a/editors/code/package.json +++ b/editors/code/package.json | |||
@@ -110,6 +110,11 @@ | |||
110 | "category": "Rust Analyzer" | 110 | "category": "Rust Analyzer" |
111 | }, | 111 | }, |
112 | { | 112 | { |
113 | "command": "rust-analyzer.viewItemTree", | ||
114 | "title": "Debug ItemTree", | ||
115 | "category": "Rust Analyzer" | ||
116 | }, | ||
117 | { | ||
113 | "command": "rust-analyzer.viewCrateGraph", | 118 | "command": "rust-analyzer.viewCrateGraph", |
114 | "title": "View Crate Graph", | 119 | "title": "View Crate Graph", |
115 | "category": "Rust Analyzer" | 120 | "category": "Rust Analyzer" |
@@ -385,21 +390,28 @@ | |||
385 | "markdownDescription": "Optional settings passed to the debug engine. Example: `{ \"lldb\": { \"terminal\":\"external\"} }`" | 390 | "markdownDescription": "Optional settings passed to the debug engine. Example: `{ \"lldb\": { \"terminal\":\"external\"} }`" |
386 | }, | 391 | }, |
387 | "$generated-start": false, | 392 | "$generated-start": false, |
388 | "rust-analyzer.assist.importMergeBehavior": { | 393 | "rust-analyzer.assist.importGranularity": { |
389 | "markdownDescription": "The strategy to use when inserting new imports or merging imports.", | 394 | "markdownDescription": "How imports should be grouped into use statements.", |
390 | "default": "crate", | 395 | "default": "crate", |
391 | "type": "string", | 396 | "type": "string", |
392 | "enum": [ | 397 | "enum": [ |
393 | "none", | 398 | "preserve", |
394 | "crate", | 399 | "crate", |
395 | "module" | 400 | "module", |
401 | "item" | ||
396 | ], | 402 | ], |
397 | "enumDescriptions": [ | 403 | "enumDescriptions": [ |
398 | "Do not merge imports at all.", | 404 | "Do not change the granularity of any imports and preserve the original structure written by the developer.", |
399 | "Merge imports from the same crate into a single `use` statement.", | 405 | "Merge imports from the same crate into a single use statement. Conversely, imports from different crates are split into separate statements.", |
400 | "Merge imports from the same module into a single `use` statement." | 406 | "Merge imports from the same module into a single use statement. Conversely, imports from different modules are split into separate statements.", |
407 | "Flatten imports so that each has its own use statement." | ||
401 | ] | 408 | ] |
402 | }, | 409 | }, |
410 | "rust-analyzer.assist.importEnforceGranularity": { | ||
411 | "markdownDescription": "Whether to enforce the import granularity setting for all files. If set to false rust-analyzer will try to keep import styles consistent per file.", | ||
412 | "default": false, | ||
413 | "type": "boolean" | ||
414 | }, | ||
403 | "rust-analyzer.assist.importPrefix": { | 415 | "rust-analyzer.assist.importPrefix": { |
404 | "markdownDescription": "The path structure for newly inserted paths to use.", | 416 | "markdownDescription": "The path structure for newly inserted paths to use.", |
405 | "default": "plain", | 417 | "default": "plain", |