-
Notifications
You must be signed in to change notification settings - Fork 354
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
Autocomplete at end of line with whitespace #3625
Comments
Thanks for reporting! Suprisingly, if you start writing |
Hmm, actually, now I'm confused. Look at what I believe are dotty's completion unit tests, there are no unit tests for filling in arguments to an |
Ah, I found this, so it seems that the Scala compiler only provides some of the completions functionality. |
We do a number of custom completions that are built upon the information from the Dotty presentation compiler. We try to port some of the improvements to the compiler itself, but since that can be used by a number of different tools we need to be careful what we include upstream. |
The issue has been fixed in the compiler. Fixes scalameta#3625
The issue has been fixed in the compiler. Fixes scalameta#3625
Describe the bug
With this prefix:
autocomplete will (correctly) suggest both
otxxx
andother
if either (a) the cursor is immediately after the comma, or (b) there is another line (likeval x = 5
) after the Widget line.I think this might be a bug in the underlying Scala parser, but I am not sure.
Expected behavior
Autocomplete should behave the same regardless of whitespace in this case.
Operating system
macOS
Editor/Extension
VS Code
Version of Metals
v1.12.0
Extra context or search terms
No response
The text was updated successfully, but these errors were encountered: