Skip to content

Comments

Dismiss and suppress gray text proposals for the duration of the event hookup session#81526

Merged
CyrusNajmabadi merged 6 commits intodotnet:mainfrom
AmadeusW:dev/amwieczo/eventHandlerOverrideSuggestion
Dec 9, 2025
Merged

Dismiss and suppress gray text proposals for the duration of the event hookup session#81526
CyrusNajmabadi merged 6 commits intodotnet:mainfrom
AmadeusW:dev/amwieczo/eventHandlerOverrideSuggestion

Conversation

@AmadeusW
Copy link
Contributor

@AmadeusW AmadeusW commented Dec 3, 2025

When gray text is active, it visually conflicts with the event hookup session, leading to user confusion about what would pressing Tab do.
{10B95AB5-9E62-4461-B411-1F475BE3DCC2}

To address this, dismiss and suppress gray text proposals for the duration of the event hookup session:

  • Before typing +=, gray text is available. Pressing Tab will typically insert an inline event handler
    • {2FD82EF6-FA8E-41FE-B444-3F64C5097720}
  • After typing +=, with this change, gray text disappears. Pressing Tab will create event handler, as it always had in Roslyn
    • {C8DB611C-4A40-4821-AE0D-FC287931B372}

Gif:
event handler conflict fix validated2

@AmadeusW AmadeusW requested review from a team as code owners December 3, 2025 00:46
@dotnet-policy-service dotnet-policy-service bot added the Community The pull request was submitted by a contributor who is not a Microsoft employee. label Dec 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-IDE Community The pull request was submitted by a contributor who is not a Microsoft employee.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants