gleam-lang/gleam

"Rename type parameter" LS action

Open

#5,762 opened on May 28, 2026

View on GitHub
 (1 comment) (1 reaction) (0 assignees)Rust (21,417 stars) (960 forks)batch import
help wanted

Description

Given a function like:

fn resolve_player_id(player_view: PlayerView(player_id), player: PlayerMatcher) -> player_id {
                                                                                       ^ cursor here

Invoking such action would prompt for a new name and rename all ocurrences of the parameter.

This could be implemented for type definitions too.

Contributor guide