Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

don't automatically dismiss zero width diagnostics #9280

Merged
merged 1 commit into from
Jan 9, 2024

Conversation

pascalkuthe
Copy link
Member

Closes #9175

Normal diagnostics can be removed when all the text they cover has been removed.
This is not the case for zero width diagnostics as these are not attached to any
particular text. These diagnostics can not be automatically dismissed and must
be mapped as a point instead of as a range to avoid that.

@pascalkuthe pascalkuthe added E-easy Call for participation: Experience needed to fix: Easy / not much S-waiting-on-review Status: Awaiting review from a maintainer. labels Jan 8, 2024
Normal diagnostics can be removed when all the text they cover has been removed.
This is not the case for zero width diagnostics as these are not attached to any
particular text. These diagnostics can not be automatically dismissed and must
be mapped as a point instead of as a range to avoid that.
@pascalkuthe pascalkuthe added A-language-server Area: Language server client C-bug Category: This is a bug labels Jan 8, 2024
@archseer archseer merged commit 4da6191 into master Jan 9, 2024
6 checks passed
@archseer archseer deleted the fix_zw_diagnostic branch January 9, 2024 00:54
dgkf pushed a commit to dgkf/helix that referenced this pull request Jan 30, 2024
mtoohey31 pushed a commit to mtoohey31/helix that referenced this pull request Jun 2, 2024
Vulpesx pushed a commit to Vulpesx/helix that referenced this pull request Jun 7, 2024
smortime pushed a commit to smortime/helix that referenced this pull request Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-language-server Area: Language server client C-bug Category: This is a bug E-easy Call for participation: Experience needed to fix: Easy / not much S-waiting-on-review Status: Awaiting review from a maintainer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Diagnostic flickering with rust-analyzer
2 participants