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

Alias only returns modules #168

Merged
merged 2 commits into from
May 18, 2023
Merged

Alias only returns modules #168

merged 2 commits into from
May 18, 2023

Conversation

scohen
Copy link
Collaborator

@scohen scohen commented May 17, 2023

This is a two-commit PR. The first does what the title says, and the second fixes a bug in document.

@scohen scohen requested review from Tuxified and scottming May 17, 2023 21:55
scohen added 2 commits May 17, 2023 16:00
This change only suggests Modules, Behaviours and Protocols when
completing items in an alias context. Prior, when you'd type
`RootModule.|`, you'd get functions defined in `RootModule`. Now
you'll only get submodules / behaviours / protocols, etc.

I also noticed that the Environment behaviour was getting full of
boolean functions, like: `pipe?`, and replaced that with
`in_context?(env, <context_name>)`. In order to support aliases, I had
to do some work in the environment and the tokenizer, which is much
more reliable now.
@scohen scohen force-pushed the alias-only-returns-modules branch from b56919b to 4c881b8 Compare May 17, 2023 23:01
@scohen scohen merged commit d6e2508 into main May 18, 2023
@scohen scohen deleted the alias-only-returns-modules branch May 18, 2023 15:31
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