Skip to content

Restore "unused glint-expect-error" diagnostic#795

Merged
machty merged 10 commits intomainfrom
expect-error-tweaks-2
Feb 3, 2025
Merged

Restore "unused glint-expect-error" diagnostic#795
machty merged 10 commits intomainfrom
expect-error-tweaks-2

Conversation

@machty
Copy link
Copy Markdown
Contributor

@machty machty commented Jan 31, 2025

When a {{! @glint-expect-error}} does not actually suppress an error, we generate a diagnostic to warn/error that the directive is unused, but this broke since Volar-izing. This PR reinstates it.

There are still a few corner cases where the range of the "unused directive" diagnostic is wider than it should be; tracking that here.

@machty machty force-pushed the expect-error-tweaks-2 branch from e38e119 to 57b72e7 Compare January 31, 2025 21:04
@machty machty changed the title expect-error followup Restore "unused glint-expect-error" diagnostic Feb 3, 2025
@machty machty merged commit 0e0d936 into main Feb 3, 2025
@machty machty deleted the expect-error-tweaks-2 branch February 3, 2025 21:01
@github-actions github-actions Bot mentioned this pull request Mar 23, 2025
@NullVoxPopuli NullVoxPopuli added the bug Something isn't working label Mar 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants