aboutsummaryrefslogtreecommitdiff
path: root/editors/code
diff options
context:
space:
mode:
authorLukas Tobias Wirth <[email protected]>2021-05-18 19:21:47 +0100
committerLukas Tobias Wirth <[email protected]>2021-05-18 19:21:47 +0100
commit5fd9f6c7b9944638e4781e3d9384638942f84456 (patch)
treeef5a6e2d081e69581fb72b31a1523072c30e7770 /editors/code
parentb8a99692d12189406cad7215530fb5103e6c4b5d (diff)
Add ImportGranularity::Guess
Diffstat (limited to 'editors/code')
-rw-r--r--editors/code/package.json4
1 files changed, 3 insertions, 1 deletions
diff --git a/editors/code/package.json b/editors/code/package.json
index 81179ff9b..06ce86987 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -387,15 +387,17 @@
387 "$generated-start": false, 387 "$generated-start": false,
388 "rust-analyzer.assist.importGranularity": { 388 "rust-analyzer.assist.importGranularity": {
389 "markdownDescription": "How imports should be grouped into use statements.", 389 "markdownDescription": "How imports should be grouped into use statements.",
390 "default": "preserve", 390 "default": "guess",
391 "type": "string", 391 "type": "string",
392 "enum": [ 392 "enum": [
393 "guess",
393 "preserve", 394 "preserve",
394 "crate", 395 "crate",
395 "module", 396 "module",
396 "item" 397 "item"
397 ], 398 ],
398 "enumDescriptions": [ 399 "enumDescriptions": [
400 "Try to guess the granularity of imports on a per module basis by observing the existing imports.",
399 "Do not change the granularity of any imports and preserve the original structure written by the developer.", 401 "Do not change the granularity of any imports and preserve the original structure written by the developer.",
400 "Merge imports from the same crate into a single use statement. Conversely, imports from different crates are split into separate statements.", 402 "Merge imports from the same crate into a single use statement. Conversely, imports from different crates are split into separate statements.",
401 "Merge imports from the same module into a single use statement. Conversely, imports from different modules are split into separate statements.", 403 "Merge imports from the same module into a single use statement. Conversely, imports from different modules are split into separate statements.",