aboutsummaryrefslogtreecommitdiff
path: root/editors/code
diff options
context:
space:
mode:
authorLukas Tobias Wirth <[email protected]>2021-05-18 18:49:15 +0100
committerLukas Tobias Wirth <[email protected]>2021-05-18 18:53:20 +0100
commit64f7072c255bd97a58b8344d0beeae281b8f7e13 (patch)
treea0e0b102c4880ff5c6b9c58a266479b513186acb /editors/code
parente3d0d89d7e3e253234271008df9324ec1faf1746 (diff)
MergeBehavior -> ImportGranularity
Diffstat (limited to 'editors/code')
-rw-r--r--editors/code/package.json18
1 files changed, 10 insertions, 8 deletions
diff --git a/editors/code/package.json b/editors/code/package.json
index 2e67b6775..81179ff9b 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -385,19 +385,21 @@
385 "markdownDescription": "Optional settings passed to the debug engine. Example: `{ \"lldb\": { \"terminal\":\"external\"} }`" 385 "markdownDescription": "Optional settings passed to the debug engine. Example: `{ \"lldb\": { \"terminal\":\"external\"} }`"
386 }, 386 },
387 "$generated-start": false, 387 "$generated-start": false,
388 "rust-analyzer.assist.importMergeBehavior": { 388 "rust-analyzer.assist.importGranularity": {
389 "markdownDescription": "The strategy to use when inserting new imports or merging imports.", 389 "markdownDescription": "How imports should be grouped into use statements.",
390 "default": "crate", 390 "default": "preserve",
391 "type": "string", 391 "type": "string",
392 "enum": [ 392 "enum": [
393 "none", 393 "preserve",
394 "crate", 394 "crate",
395 "module" 395 "module",
396 "item"
396 ], 397 ],
397 "enumDescriptions": [ 398 "enumDescriptions": [
398 "Do not merge imports at all.", 399 "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.", 400 "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." 401 "Merge imports from the same module into a single use statement. Conversely, imports from different modules are split into separate statements.",
402 "Flatten imports so that each has its own use statement."
401 ] 403 ]
402 }, 404 },
403 "rust-analyzer.assist.importPrefix": { 405 "rust-analyzer.assist.importPrefix": {