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

fix: Limit label completion items to 100 #628

Merged
merged 1 commit into from
Aug 24, 2021
Merged

Conversation

radeksimko
Copy link
Member

Previously we didn't correctly limit the number of candidates returned for a label completion, which in some extreme cases would mean that for a resource we would send ~700 items just for AWS provider + any more hundreds for any other providers declared in the module.

This limits the items to 100 and expects the user to keep typing to filter the results.

This PR brings in hashicorp/hcl-lang#85

Previously we didn't correctly limit the number of candidates returned for a label completion, which in some extreme cases would mean that for a resource we would send ~700 items just for AWS provider + any more hundreds for any other providers declared in the module.

This limits the items to 100 and expects the user to keep typing to filter the results.
@radeksimko radeksimko added the bug Something isn't working label Aug 24, 2021
@radeksimko radeksimko requested a review from a team August 24, 2021 13:15
@radeksimko radeksimko merged commit 1625ec1 into main Aug 24, 2021
@radeksimko radeksimko deleted the b-limit-label-items branch August 24, 2021 13:40
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants