gleam-lang/gleam

LSP: Show an error message on an invalid named module

Open

#3,972 建立於 2024年12月9日

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

倉庫指標

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

描述

Hi!

Currently, when the LSP opens a Gleam file whose name is incorrect (something like my-module.gleam for instance), nothing happens. It could be nice to let the LSP indicates it as a bug (because gleam build will fail) with a message like "my-module is not a valid name for a Gleam module. You should switch to my_module instead."

貢獻者指南