gleam-lang/gleam

LSP code action to discard unused variable

Open

#4950 opened on Sep 9, 2025

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

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