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

editor: Cancel ongoing completion requests more eagerly #12630

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

osiewicz
Copy link
Contributor

@osiewicz osiewicz commented Jun 4, 2024

Previously, we were:

  • cancelling previous requests only after the latest one has completed
  • always running the debounced documentation resolution to completion, even when we had no need for it.

In this commit, we drop the ongoing completion requests as soon as the new one is fired.
Fixes #5166

Release Notes:

  • Improved performance and reliability of completions in large Typescript projects

Previously, we were:
- cancelling previous requests only after the latest one has completed
- always running the debounced documentation resolution to completion, even when we had no need for it.

In this commit, we drop the ongoing completion requests as soon as the new one is fired.

Co-authored-by: Bennet Bo <bennet@zed.dev>
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Jun 4, 2024
@osiewicz osiewicz merged commit 8e79609 into main Jun 4, 2024
8 checks passed
@osiewicz osiewicz deleted the typescript-autocomplete-menu-performance branch June 4, 2024 10:22
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.

Improve slow filtering of TypeScript autocompletions
1 participant