gleam-lang/gleam
Support `textDocument/documentHighlight` message for usages of values
クローズ
#5,441 opened on 2026/03/10
help wanted
Repository metrics
- Stars
- (21,417 個のスター)
- PR merge metrics
- (平均マージ 10d 19h) (30d で 69 merged PRs)
説明
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.