gleam-lang/gleam
Voir sur GitHubLSP fails to suggest completion for locally defined `use`d argument
Open
#5 258 ouverte le 3 janv. 2026
help wanted
Métriques du dépôt
- Stars
- (21 417 stars)
- Métriques de merge PR
- (Merge moyen 10j 19h) (69 PRs mergées en 30 j)
Description
LSP fails to suggest completion for locally defined used argument. For example, if I use Lustre and want to create a custom effect I may write something like this:
fn load_data(msg: fn(String) -> msg) -> Effect(msg) {
use dispatch <- effect.from
let data = "Example data"
dispatch(msg(data))
}
If I partially type disp in the last line expecting a suggestion — I wouldn't get it:
Note: suggestion works fine if I convert use to the callback-style call.
Versions:
- Gleam: 1.14.0
- VSCodium: 1.107.18627
- Lustre: 5.4.0
- macOS: 15.7.3