#6345·gleam

ls: find references for `echo`

Author: lpilCreated Sep 24, 2026Updated Sep 25, 2026
Labelshelp wanted

Discussed in https://github.com/gleam-lang/gleam/discussions/6338

Originally posted by ankddev September 22, 2026 Hello! There's code action to remove all echos from the module, but what if I want to review, what to delete? At the moment the only solution would be to use grep or search in editor to get all occurrences of echo and go through them. As such, I propose adding support of finding references of echos, which would allow going through them with ease. This would also allow highlighting all echos in module if reference highlight is enabled in editor, which I see useful too. For context, I use echos very often, and often (sorry) I need to delete some of them, when I'm done with debugging of some part.

gleam
pub fn go(a) {
  echo a
//^^^^
  let wibble = echo wobble(echo a)
//             ^^^^        ^^^^
  echo wubble(wibble)
//^^^^
}

pub fn woo() {
  echo 0
//^^^^
}
```</div>