LSP: autocompletion types in import statement should account for already-typed type
keyword
#3244
Labels
bug
Something isn't working
type
keyword
#3244
On Gleam 1.2:
When autocompleting an unqualified type import, the LSP always inserts the
type
prefix before.e.g. when triggering autocomplete for
Dict
from here:We end up with
Another related bug:
If
type
is already typed in the import statement, it should ideally only allow autocompletion of available types, instead of all exported symbols.e.g.
The
get
function is one of the suggestions, when the LSP should know (? unless that's not desired behaviour) that I'm only looking to import types.The text was updated successfully, but these errors were encountered: