update import granularity config and docs

This commit is contained in:
davidsemakula 2024-01-14 21:10:59 +03:00
parent 57d4b5bb0f
commit 4f176b3f7f
3 changed files with 11 additions and 4 deletions

View file

@ -1120,13 +1120,15 @@
"preserve",
"crate",
"module",
"item"
"item",
"one"
],
"enumDescriptions": [
"Do not change the granularity of any imports and preserve the original structure written by the developer.",
"Merge imports from the same crate into a single use statement. Conversely, imports from different crates are split into separate statements.",
"Merge imports from the same module into a single use statement. Conversely, imports from different modules are split into separate statements.",
"Flatten imports so that each has its own use statement."
"Flatten imports so that each has its own use statement.",
"Merge all imports into a single use statement as long as they have the same visibility and attributes."
]
},
"rust-analyzer.imports.group.enable": {