language-tools
language-tools copied to clipboard
Renaming could also rename usages in code
Currently renaming a model in the schema only renames it there. All my usages of the old model name in my code afterwards are invalid. The extension could maybe (optionally) also take care of that rename so my code keeps working automatically.
Just to clarify, you're referring to e.g.:
rename model in schema.prisma foo -> bar
all references to foo in typescript are then updated to bar?
Yes.
(Very far out there feature again, not in the core area of the extension)