Skip to content

Complete after parens and brackets in REPL#3236

Merged
kritzcreek merged 3 commits intopurescript:masterfrom
rndnoise:fix-complete-after-parens-and-brackets-in-repl
Mar 22, 2018
Merged

Complete after parens and brackets in REPL#3236
kritzcreek merged 3 commits intopurescript:masterfrom
rndnoise:fix-complete-after-parens-and-brackets-in-repl

Conversation

@rndnoise
Copy link
Copy Markdown
Contributor

@rndnoise rndnoise commented Feb 2, 2018

This fixes a bug in the REPL where names aren't completed directly after [ or (, like when you've typed x = [ and hit Tab. This depends on #3231 being merged, not because of the implementation, but because of the changes in unit tests.

- 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 might need a rebase after I merged the unit test PR

@kritzcreek
Copy link
Copy Markdown
Member

I'd like to make an effort to get all of these PSCI improvements merged. We have pretty good tests coverage and as long as we keep all the tests happy I think we can't go too far astray. @rndnoise Sorry for the long wait....

We only do "Squash and merge" on this repo so you might need to rebase the subsequent PRs whenever I merge one of these "chain" PRs.

@kritzcreek kritzcreek merged commit cddf62d into purescript:master Mar 22, 2018
@rndnoise
Copy link
Copy Markdown
Contributor Author

No problem, I realize it's a lot of work to review changes (often more work than it is to contribute a PR). I don't mind rebasing -- let me know if I've used git in a way that causes extra work for you so I can avoid doing that.

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