gleam-lang/gleam

"Rename type parameter" LS action

Open

Aperta il 28 mag 2026

Vedi su GitHub
 (1 commento) (1 reazione) (0 assegnatari)Rust (21.417 star) (960 fork)batch import
help wanted

Descrizione

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.

Guida contributor