gleam-lang/gleam

"Rename type parameter" LS action

已關閉

#5,762 建立於 2026年5月28日

 (1 則留言) (1 個反應) (0 位負責人)Rust (960 個分叉)batch import
help wanted

倉庫指標

星標
 (21,417 顆星)
PR 合併指標
 (平均合併 10天 19小時) (30 天內合併 69 個 PR)

描述

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.

貢獻者指南