gleam-lang/gleam

Support `textDocument/documentHighlight` message for usages of values

Fechada

#5.441 aberto em 10 de mar. de 2026

 (3 comentários) (0 reação) (0 responsável)Rust (960 forks)batch import
help wanted

Métricas do repositório

Stars
 (21.417 estrelas)
Métricas de merge de PR
 (Mesclagem média 10d 19h) (69 fundiu PRs em 30d)

Description

When triggering the message over the usage of a variable in a scope, highlight all instances of that variable.

For example:

fn foo() {
  let bar = 5
  //  ^^^
  let baz = bar * 2
  //        ^^^
  // Cursor here ↓ (for example)
  let qux = case bar {
  //             ^^^
    a if bar == 2 -> a
    //   ^^^
    b if baz == 3 -> b
    _ -> 5
  }
  baz + quux(bar) + qux
  //         ^^^
}

fn quux(a) { todo }

See #5427.

Guia do colaborador