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

Completion item filtering #8642

Merged
merged 9 commits into from Aug 15, 2019
Merged

Completion item filtering #8642

merged 9 commits into from Aug 15, 2019

Conversation

Simn
Copy link
Member

@Simn Simn commented Aug 15, 2019

This PR keeps track of completion "subjects" and filters the results accordingly if they exceed a certain number. The filter works by treating types with lower priority under the assumption that they are the only completion item kind which could realistically hit the limit. This may or may not require some more thought and design, but should work fine in practice.

I can't really show fancy comparison screenshots because there are no reliable timers, given that the bulk of the slowdown occurred somewhere in vshaxe. I promise it's much, much faster though.

Filters are implemented as case-insensitive string list comparisons, so that h.d.M matches haxe.ds.Map and such.

Closes #8639.

@Simn
Copy link
Member Author

Simn commented Aug 15, 2019

What is going on... the tests fail in Running haxe projects/Issue8088/compile.hxml, but that was added in 44ff8dd which isn't even part of this PR's branch...

@Simn Simn merged commit 86fc427 into development Aug 15, 2019
@Simn Simn deleted the completion_item_filtering branch August 15, 2019 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[display] too much stuff
1 participant