aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorLukas Tobias Wirth <[email protected]>2021-05-18 19:21:47 +0100
committerLukas Tobias Wirth <[email protected]>2021-05-19 14:57:10 +0100
commitb4fe479236f592fcbfa1422dda54253b77d8b0e1 (patch)
tree0ce721228484783514b8948a0a64e3e4ca38ea95 /editors
parent5fd9f6c7b9944638e4781e3d9384638942f84456 (diff)
Replace ImportGranularity::Guess with guessing boolean flag
Diffstat (limited to 'editors')
-rw-r--r--editors/code/package.json9
1 files changed, 6 insertions, 3 deletions
diff --git a/editors/code/package.json b/editors/code/package.json
index 06ce86987..48d12b35a 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -387,23 +387,26 @@
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": "guess", 390 "default": "crate",
391 "type": "string", 391 "type": "string",
392 "enum": [ 392 "enum": [
393 "guess",
394 "preserve", 393 "preserve",
395 "crate", 394 "crate",
396 "module", 395 "module",
397 "item" 396 "item"
398 ], 397 ],
399 "enumDescriptions": [ 398 "enumDescriptions": [
400 "Try to guess the granularity of imports on a per module basis by observing the existing imports.",
401 "Do not change the granularity of any imports and preserve the original structure written by the developer.", 399 "Do not change the granularity of any imports and preserve the original structure written by the developer.",
402 "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 crate into a single use statement. Conversely, imports from different crates 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.", 401 "Merge imports from the same module into a single use statement. Conversely, imports from different modules are split into separate statements.",
404 "Flatten imports so that each has its own use statement." 402 "Flatten imports so that each has its own use statement."
405 ] 403 ]
406 }, 404 },
405 "rust-analyzer.assist.importEnforceGranularity": {
406 "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.",
407 "default": false,
408 "type": "boolean"
409 },
407 "rust-analyzer.assist.importPrefix": { 410 "rust-analyzer.assist.importPrefix": {
408 "markdownDescription": "The path structure for newly inserted paths to use.", 411 "markdownDescription": "The path structure for newly inserted paths to use.",
409 "default": "plain", 412 "default": "plain",