gleam-lang/gleam

LSP code action to discard unused variable

Closed

#4,950 opened on Sep 9, 2025

 (10 comments) (0 reactions) (0 assignees)Rust (960 forks)batch import
help wanted

Repository metrics

Stars
 (21,417 stars)
PR merge metrics
 (Avg merge 10d 19h) (69 merged PRs in 30d)

Description

Hi 👋 I'm not sure if I'm using the right term but I think it could be useful to add a code action that appends _ to a label in a pattern match to ignore it. There's already a hint for this case but it would be neat to quickly fix the issue via a code action. I added a screenshot to illustrate what I mean.

Contributor guide