Skip to content

Reduce intensity of refreshing pull diagnostics#47510

Merged
ConradIrwin merged 2 commits intomainfrom
cheaper-diagnostics
Jan 23, 2026
Merged

Reduce intensity of refreshing pull diagnostics#47510
ConradIrwin merged 2 commits intomainfrom
cheaper-diagnostics

Conversation

@ConradIrwin
Copy link
Member

Before this change we'd spawn N tasks in parallel on every keystroke, afterwards
we only allow 1 background diagnostic refresh in flight at a time.

This also fixed a bug where we'd send O(n*2) pull diagnostic requests when
re-opening a workspace with n editors.

Co-authored-by: John Tur john-tur@outlook.com

Closes #ISSUE

Release Notes:

  • Improved performance when a large number of files were open by making background diagnostics more efficient

Before this change we'd spawn N tasks in parallel on every keystroke, afterwards
we only allow 1 background diagnostic refresh in flight at a time.

This also fixed a bug where we'd send O(n*2) pull diagnostic requests when
re-opening a workspace with n editors.

Co-authored-by: John Tur <john-tur@outlook.com>
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Jan 23, 2026
@maxdeviant maxdeviant changed the title Reduce intensity of refreshing pull diagnostics. Reduce intensity of refreshing pull diagnostics Jan 23, 2026
@ConradIrwin ConradIrwin enabled auto-merge (squash) January 23, 2026 20:59
@ConradIrwin ConradIrwin merged commit 38821a6 into main Jan 23, 2026
27 checks passed
@ConradIrwin ConradIrwin deleted the cheaper-diagnostics branch January 23, 2026 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant