Skip to content

InlineHints SuppressForParametersThatMatchMethodIntent does not match local functions #60145

@333fred

Description

@333fred

Version Used: Version 17.2.0 Preview 1.0

Steps to Reproduce:

  1. Create a local function like this:
void EnableSomething(bool enabled) {}
  1. Call it and turn on the SuppressForParametersThatMatchMethodIntent flag.

Expected Behavior:

No parameter hint for the bool parameter.

Actual Behavior:

Parameter hint for the bool parameter.

This is because the code is filtering out anything but ordinary method kinds here: https://github.com/dotnet/roslyn/blob/main/src/Features/Core/Portable/InlineHints/AbstractInlineParameterNameHintsService.cs#L221-L223. I don't believe location functions should be excluded by this check.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions