metals icon indicating copy to clipboard operation
metals copied to clipboard

`*` is not the first suggestion in import autocompletion

Open Kordyjan opened this issue 3 years ago • 1 comments

To Reproduce

Steps to reproduce the behavior:

  1. type import scala.collection.*
  2. 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 obraz

Kordyjan avatar Aug 21 '21 10:08 Kordyjan

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.

tgodzik avatar Aug 21 '21 10:08 tgodzik

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.

objektwerks avatar Dec 30 '22 19:12 objektwerks