#5916·gleam

Generate field code action

Author: lpilCreated Jun 30, 2026Updated Sep 14, 2026
Labelshelp wanted

A code action that is presented when constructing or updating a record using a field that does not exist.

gleam
pub type Configuration {
  Configuration(keep_alive: Bool)
}

pub fn timeout(config: Configuration, seconds: Int) -> Configuration {
  Configuration(..config, keep_alive_timeout: seconds) // <-
}

Here the code action would add keep_alive_timeout: Int to the Configuration record.