gleam-lang/gleam

LSP: Support finding references of modules

Open

#5543 aperta il 31 mar 2026

Vedi su GitHub
 (0 commenti) (1 reazione) (0 assegnatari)Rust (960 fork)batch import
help wanted

Metriche repository

Star
 (21.417 star)
Metriche merge PR
 (Merge medio 8g 6h) (59 PR mergiate in 30 g)

Descrizione

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
//^^^
}

Guida contributor