gleam-lang/gleam

LSP: Support finding references of modules

Open

#5,543 建立於 2026年3月31日

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

描述

It would be nice to click on a module name and be able to find references of where it is used.

e.g. If in the following example, anytime the cursor was moved over mod and "go to reference" was activated, all the underlined areas would be found.

// -- mod.gleam
pub type Foo { Bar }

// -- app.gleam
import mod
//     ^^^
pub fn main() {
  let _: mod.Foo = mod.Bar
  //     ^^^       ^^^
}

// -- mod2.gleam
import mod
//     ^^^
pub fn fob() {
  mod.Bar
//^^^
}

貢獻者指南

LSP: Support finding references of modules · gleam-lang/gleam#5543 | Good First Issue