gleam-lang/gleam

Code action to generate new type

Chiusa

#5389 aperta il 23 feb 2026

 (6 commenti) (0 reazioni) (0 assegnatari)Rust (960 fork)batch import
help wanted

Metriche repository

Star
 (21.417 stelle)
Metriche merge PR
 (Merge medio 10g 19h) (69 PR mergiate in 30 g)

Descrizione

The language server already allows to create new functions when needed. It would be nice if it allowed to do the same thing with types too. For example:

type Wibble {
  Wibble(Wobble)
//       ^^^^^^ Doesn't exist, trigger code action
}
type Wibble {
  Wibble(Wobble)
}

+ type Wobble

Guida contributor