Skip to content

Complete any number of words after :kind and :type in REPL#3237

Merged
kritzcreek merged 3 commits intopurescript:masterfrom
rndnoise:complete-kind-and-type-directive
Mar 22, 2018
Merged

Complete any number of words after :kind and :type in REPL#3237
kritzcreek merged 3 commits intopurescript:masterfrom
rndnoise:complete-kind-and-type-directive

Conversation

@rndnoise
Copy link
Copy Markdown
Contributor

@rndnoise rndnoise commented Feb 2, 2018

This fixes completion after :kind and :type directives, which previously would only complete the first word after the directive. With this change, any words after :kind are completed from names of types in the current scope, and words after :type are completed from names of values in the current scope.

This depends on #3231 being merged (not due to implementation dependency, but because the unit tests in this PR rely on those changes).

- 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
Copy Markdown
Member

This one also looks like a straightforward improvement, thanks!

@kritzcreek kritzcreek merged commit e970a4f into purescript:master Mar 22, 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.

2 participants