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

Don't autocomplete closing items (e.g. parenthesis) when the next character is non-whitespace. #186

Open
rhdunn opened this issue Feb 16, 2016 · 0 comments

Comments

@rhdunn
Copy link

rhdunn commented Feb 16, 2016

I often build up code incrementally, so have situations like:

<caret>$test

Where <caret> is the text cursor, at which point I enter foo( (e.g. wrapping a variable in a data or string call). Currently, this autocompletes as:

foo()<caret>$test

The behaviour of the scala plugin is to only auto-insert a ) if the next character is a whitespace character. This should apply to parenthesis, curly brace and closing XML element autocomplete handlers (e.g. when converting a $ret return to <ret>{string($ret)}</ret>).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants