language-tools icon indicating copy to clipboard operation
language-tools copied to clipboard

Renaming could also rename usages in code

Open janpio opened this issue 3 years ago • 2 comments

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.

janpio avatar Jan 19 '23 19:01 janpio

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?

Druue avatar Mar 15 '23 11:03 Druue

Yes.

(Very far out there feature again, not in the core area of the extension)

janpio avatar Mar 15 '23 15:03 janpio