metals
metals copied to clipboard
`*` is not the first suggestion in import autocompletion
To Reproduce
Steps to reproduce the behavior:
- type
import scala.collection.*
- press
Enter
to start a new line
The line would be completed with *#:
which is not what's desired in most cases.
Expected behavior
*
should be the first suggestion
Screenshots
Thanks for reporting! This should probably be a part of keywords completions fro Scala 3. But I think due to the usability issues this is currently a bug.
I've been seeing the same phenomenon. To reproduce:
1. Open a Scala 3 source file. 2. Type import scala.* 3. Depress the return key --- and a random type is inserted after the *
And that's it.
I've even seen this occur a few times after typing for and return key when writing a for comprehension.