gleam-lang/gleam

LSP: Support triggering find references from imports

Open

#5544 aperta il 31 mar 2026

Vedi su GitHub
 (1 commento) (0 reazioni) (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

In the following example, triggering find references on any of the underlined locations should show all of the uses of the type Foo. It currently works everywhere but in the import line.

// -- foo.gleam
pub type Foo
//       ^^^

// -- app.gleam
import foo.{type Foo}
//               ^^^ ← this line shows up in all results, but triggering here fails
fn main() {
  let _: Foo = todo
  //     ^^^
}

Guida contributor