From adc4c6b9d7fd91827c4cf383a1e95dc7e27138e0 Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Sat, 12 Sep 2020 11:55:01 +0200 Subject: Make MergeBehaviour configurable --- editors/code/package.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'editors/code') diff --git a/editors/code/package.json b/editors/code/package.json index 6fc4464df..858e4c4f5 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -626,6 +626,21 @@ }, "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.", "default": [] + }, + "rust-analyzer.assist.importMergeBehaviour": { + "type": "string", + "enum": [ + "none", + "full", + "last" + ], + "enumDescriptions": [ + "No merging", + "Merge all layers of the import trees", + "Only merge the last layer of the import trees" + ], + "default": "full", + "description": "The strategy to use when inserting new imports or merging imports." } } }, -- cgit v1.2.3