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

Shell autocompletion/suggestion fixes #436

Merged
merged 3 commits into from
Jan 12, 2022
Merged

Conversation

grob
Copy link
Member

@grob grob commented Sep 25, 2021

Shell autocompletion stopped working in certain cases, eg. for method call arguments:

const obj = {one: {two: {three: 3}}};
JSON.stringify(obj.o<tab

didn't expand to JSON.stringify(obj.one because the candidate produced contained only obj.one, not JSON.stringify(obj.one.

This pull request also fixes highlighting up to the next possible completion point (before only the typed characters were highlighted), and it updates jline to version 3.20.0

autocompletion/suggestion didn't work for method call arguments:
```
const obj = {one: {two: {three: 3}}}
JSON.stringify(obj.o<tab>
```
didn't expand to `JSON.stringify(obj.one` because the candidates produced didn't start with `JSON.stringify(`, so they were dropped by jline.

this change also fixes highlighting of candidate prefixes: before only the typed characters were highlighted, now ringo shell highlights up to the next completion point (if any).
@grob grob requested a review from botic September 25, 2021 10:05
@grob grob added this to the 3.0.0 milestone Oct 21, 2021
Copy link
Member

@botic botic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything looks fine!

@botic botic merged commit 4459f59 into master Jan 12, 2022
@botic botic deleted the fix-shell-autocompletion branch January 12, 2022 13:09
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