gleam-lang/gleam

Code action to generate new type

Open

#5389 opened on Feb 23, 2026

View on GitHub
 (6 comments) (0 reactions) (0 assignees)Rust (21,417 stars) (960 forks)batch import
help wanted

Description

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

Contributor guide