Skip to content

Language Server: Add Unnecessary diagnostic for <% case %> children#802

Merged
marcoroth merged 2 commits into
mainfrom
unreachable-code
Dec 3, 2025
Merged

Language Server: Add Unnecessary diagnostic for <% case %> children#802
marcoroth merged 2 commits into
mainfrom
unreachable-code

Conversation

@marcoroth

@marcoroth marcoroth commented Nov 7, 2025

Copy link
Copy Markdown
Owner

This pull request adds an Unnecessary diagnostic for any children in the ERBCaseNode and ERBCaseMatchNode, since the engine will never render that content, so it shows up dimmed out in the editor.

CleanShot 2025-11-07 at 17 05 11@2x CleanShot 2025-11-07 at 17 05 04@2x

@marcoroth marcoroth marked this pull request as ready for review November 7, 2025 22:15
@marcoroth marcoroth changed the title Language Server: Add Unnecessary diagnostic for ERBCaseNode children Language Server: Add Unnecessary diagnostic for <% case %> children Nov 7, 2025
@marcoroth marcoroth merged commit b001fed into main Dec 3, 2025
12 checks passed
@marcoroth marcoroth deleted the unreachable-code branch December 3, 2025 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant