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

Remove completion with no labels and filterText #4721

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wyuenho
Copy link
Contributor

@wyuenho wyuenho commented Mar 1, 2025

Some language servers such as typescript-language-server will occasionally return candidates with an empty string as their labels or filterTexts, this PR filters out these candidates from misbehaving servers, in addition to some slight refactoring to clean up some convoluted logic.

@wyuenho wyuenho force-pushed the remove-empty-items branch from fae3b97 to 47b512c Compare March 1, 2025 12:29
@jcs090218 jcs090218 requested a review from kiennq March 1, 2025 21:08
@wyuenho wyuenho force-pushed the remove-empty-items branch from a0b7b11 to ef9bfc8 Compare March 2, 2025 08:26
@wyuenho wyuenho marked this pull request as draft March 2, 2025 08:31
@wyuenho wyuenho force-pushed the remove-empty-items branch from ef9bfc8 to 5a6c660 Compare March 2, 2025 09:25
@wyuenho wyuenho marked this pull request as ready for review March 2, 2025 09:25
@wyuenho wyuenho requested a review from kiennq March 2, 2025 09:25
@wyuenho wyuenho marked this pull request as draft March 2, 2025 09:30
@wyuenho wyuenho marked this pull request as ready for review March 2, 2025 09:33
@wyuenho wyuenho force-pushed the remove-empty-items branch from 19f4386 to b29b2d1 Compare March 2, 2025 09:47
@wyuenho
Copy link
Contributor Author

wyuenho commented Mar 27, 2025

@kiennq how does this look?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants