gleam-lang/gleam

LSP module auto-import: handle module name collisions

Open

#3,269 建立於 2024年6月12日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)Rust (960 fork)batch import
help wanted

倉庫指標

Star
 (21,417 star)
PR 合併指標
 (平均合併 10天 19小時) (30 天內合併 69 個 PR)

描述

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?

貢獻者指南