LS actions to add generics to type occurrences
Author: PapipoCreated Sep 27, 2026Updated Sep 27, 2026
When you add a generic to a type you need to fix all instances of it. Also, when you have more than one generic field, you need to remember their order and names.
My proposal would be to add two new LS actions:
- Add generic signatures to all instances of this type (while the cursor is on the type definition)
- Autocomplete generic fields (when you are adding new instance of the type somewhere)
Source: gleam-lang/gleam