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

Do not allow concurrent FindAllReferences requests for the same multibuffer anchors #9242

Merged
merged 1 commit into from Mar 12, 2024

Conversation

SomeoneToIgnore
Copy link
Contributor

FindAllReferences LSP requests might take a long time to complete, and currently Zed allows multiple requests spawned concurrently for the same Anchor in the multi buffer. That results in multiple search results' multi buffers appearing, sometimes at once, which is not what we want.

Part of #5351 that helps to reduce the amount of search results after clicks that did not resolve instantly.

Release Notes:

  • Improved FindAllReferences action by not allowing concurrent requests for the same multi buffer source

…buffer anchors

FindAllReferences LSP requests might take a long time to complete, and currently Zed allows multiple requests spawned concurrently for the same Anchor in the multibuffer.
That results in multiple search results' multibuffers appearing, sometimes at once, which is not what we want.
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Mar 12, 2024
@SomeoneToIgnore
Copy link
Contributor Author

Ideally, we would want to have a place to show all long-lasting LSP queries, but this needs better design first.

@SomeoneToIgnore SomeoneToIgnore merged commit c09fe1c into main Mar 12, 2024
9 checks passed
@SomeoneToIgnore SomeoneToIgnore deleted the kb/deduplicate-find-all-references branch March 12, 2024 21:02
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.

None yet

1 participant