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

Complete type identifiers following '::' in REPL #3239

Merged
merged 5 commits into from Apr 14, 2018
Merged

Complete type identifiers following '::' in REPL #3239

merged 5 commits into from Apr 14, 2018

Conversation

rndnoise
Copy link
Contributor

@rndnoise rndnoise commented Feb 2, 2018

Prior to this PR, the only time types are auto-completed is following :kind. With this change, the first word following :: is completed from the names of types in scope.

One limitation is only the very next word is completed as a type, so even after typing [1] :: Array, where Array is a type constructor, the next word will be completed from CtxIdentifier, or the names of values in scope.

This PR depends on #3237 to be merged, because this PR's unit tests depending on it.

- Complete all names that have been imported (transitively or directly)
- Do not complete names that haven't been imported
- Only recompute list of names after import or adding a let binding
  rather than after each request for name completion

This commit fixes #3227
@kritzcreek
Copy link
Member

I might've merged things in the wrong order? If you fix the conflicts I'll give this a try and get it merged :)

@rndnoise
Copy link
Contributor Author

rndnoise commented Mar 23, 2018

No problem. I think these conflicted in any merge order. This should be OK to merge again.

@kritzcreek
Copy link
Member

Tested this, and it seems to work fine, thanks!

@kritzcreek kritzcreek merged commit f509ffe into purescript:master Apr 14, 2018
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.

None yet

2 participants