You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
5985: Make MergeBehaviour configurable r=jonas-schievink a=Veykril
This should make the newly implemented `MergeBehaviour` for import insertion configurable as roughly outlined in #5935 (comment). For the config name and the like I just picked what came to mind so that might be up for bikeshedding.
Co-authored-by: Lukas Wirth <[email protected]>
Copy file name to clipboardExpand all lines: editors/code/package.json
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -626,6 +626,21 @@
626
626
},
627
627
"description": "List of warnings that should be displayed with hint severity.\nThe warnings will be indicated by faded text or three dots in code and will not show up in the problems panel.",
628
628
"default": []
629
+
},
630
+
"rust-analyzer.assist.importMergeBehaviour": {
631
+
"type": "string",
632
+
"enum": [
633
+
"none",
634
+
"full",
635
+
"last"
636
+
],
637
+
"enumDescriptions": [
638
+
"No merging",
639
+
"Merge all layers of the import trees",
640
+
"Only merge the last layer of the import trees"
641
+
],
642
+
"default": "full",
643
+
"description": "The strategy to use when inserting new imports or merging imports."
0 commit comments