gleam-lang/gleam

LSP: Support go-to-definition on record fields

Open

#5534 opened on Mar 29, 2026

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Rust (21,417 stars) (960 forks)batch import
help wanted

Description

I'd like to be able to use go-to-definition with record fields

pub type Thing {
  Thing(a: String)
}

pub fn work() {
  let x = get_thing()
  x.a // go-to-def here!
}

I started working on this in #5533, with some Discussion in the Gleam Discord here

Contributor guide