Skip to content

fix(lint): out of order diagnostics for plugins #28029

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

Merged
merged 2 commits into from
Feb 10, 2025

Conversation

bartlomieju
Copy link
Member

This commit fixes racy condition in lint plugins
that could have caused diagnostics for another
file to be printed for completely unrelated file.

With this change, a oneshot channel is used
to receive diagnostics for a file, which ensures
that the caller will receive diagnostics for itself.

@bartlomieju bartlomieju enabled auto-merge (squash) February 10, 2025 12:46
@bartlomieju bartlomieju merged commit 94a28f7 into denoland:main Feb 10, 2025
18 checks passed
@bartlomieju bartlomieju deleted the fix_concurrency branch February 10, 2025 13:46
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.

2 participants