gleam-lang/gleam

LSP module auto-import: handle module name collisions

Open

#3,269 opened on Jun 12, 2024

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Rust (21,417 stars) (960 forks)batch import
help wanted

Description

Follows on from https://github.com/gleam-lang/gleam/pull/3219

It is possible for the LS autocompletion to add an import using a name that is already taken, causing a compile error.

How should we avoid this? Could we prompt the programmer for a name to use instead? Or do we generate a name?

Contributor guide

LSP module auto-import: handle module name collisions · gleam-lang/gleam#3269 | Good First Issue