Skip to content

Conversation

tmat
Copy link
Member

@tmat tmat commented Jul 11, 2024

Change the editorconfig name of the option from dotnet_hide_advanced_members_in_completion to dotnet_hide_advanced_members.

Add new section ".NET Code Actions" to editorconfig, so that the option is serialized into editorconfig like so:

#### .NET Code Actions ####

# Type members
dotnet_hide_advanced_members = true|false

A follow-up PR (#74376) we will add a couple of more options to this group:

dotnet_member_insertion_location = with_other_members_of_the_same_kind | at_the_end
dotnet_property_generation_behavior =  prefer_throwing_properties | prefer_auto_properties

Move HideAdvancedMembers option to a new MemberDisplayOptions struct and add extension methods to retrieve it from document.
Replace SignatureHelpOptions with MemberDisplayOptions as it only contains HideAdvancedMembers.
Add GetAddImportOptionsAsync extension method to follow the established pattern.
Remove AddMissingImportsOptions.

@ghost ghost added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Jul 11, 2024
@tmat tmat changed the title Member display options Convert HideAdvancedMembers option to editorconfig option Jul 11, 2024
@tmat tmat force-pushed the MemberDisplayOptions branch from 4ec9b2b to ecd3348 Compare July 12, 2024 15:36
@tmat tmat force-pushed the MemberDisplayOptions branch from ecd3348 to 086616c Compare July 12, 2024 18:34
@tmat tmat marked this pull request as ready for review July 12, 2024 18:37
@tmat tmat requested a review from a team as a code owner July 12, 2024 18:37
@tmat
Copy link
Member Author

tmat commented Jul 15, 2024

@dotnet/roslyn-ide @sharwell @Cosifne @CyrusNajmabadi ptal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants