request: suggested fix action to make a new type

Author: LokathorCreated Sep 17, 2026Updated Sep 17, 2026
LabelsC-feature

If you have

rust
mod some_name;

then when the file for the some_name module doesn't exist, a suggested action will be to create the file.

Currently, this doesn't happen with types.

If you have code like

rust
struct Ast {
  pub items: Vec<Item>
}

and assuming there's no Item type in scope, there won't be a suggested fix to make the Item type. There's suggestions for new methods, getter/setter, deref impl, but no suggested fix to "make a new struct with this name because it doesn't exist".