Skip to content

Analyzer code actions show the replacement, not just the code - #1549

Open
Thorium wants to merge 1 commit into
ionide:mainfrom
Thorium:analyzer-action-titles
Open

Analyzer code actions show the replacement, not just the code#1549
Thorium wants to merge 1 commit into
ionide:mainfrom
Thorium:analyzer-action-titles

Conversation

@Thorium

@Thorium Thorium commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Fix for #1548

An analyzer can attach several actions to one span - a primary fix and alternatives - and titling each "Fix FR0136" renders them as identical menu entries, leaving the user to guess. The replacement text is the clearest possible label, so the title becomes "Fix FR0136 -> Guid.NewGuid()" (first line, capped at 50 chars); pure deletions fall back to the diagnostic message's first line, and only an empty message leaves the bare code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant