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

More robust handling of namespaces in pipe completion #850

Merged
merged 2 commits into from
Nov 14, 2023

Conversation

zth
Copy link
Collaborator

@zth zth commented Nov 14, 2023

This is a more robust implementation of #843 that should cover all cases instead of just a few. Here, instead of checking for namespaces when filtering the completion items, we flatten any namespace items to their accessible paths before filtering. This allows the regular filter mechanism to just do its work like it's used to, and the filtering will work for namespaced items.

@zth zth requested a review from cristianoc November 14, 2023 11:29
@zth
Copy link
Collaborator Author

zth commented Nov 14, 2023

@cristianoc it would be nice to do the same in the printer, we can still get namespaced type names there:
type RescriptBun Globals Request t

@zth zth merged commit b0b4598 into master Nov 14, 2023
4 checks passed
@zth zth deleted the namespace-handling-in-pipe-completion branch November 14, 2023 14:17
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.

2 participants