is there a way to streamline picking up prisma cli...
# random
s
is there a way to streamline picking up prisma client model updates in vscode? I Find myself having to reload windows just to get intellisense to pick up changes
n
Hey @Sebastian Gug 👋 Do you mean you want to update PrismaClient automatically as you make updates to the schema file? If yes, then you can use
--watch
flag to automatically update Prisma Client - Reference
s
@Nurul not exactly, I don't make changes that often so, but when I do, after the client is generated, all is good on the prisma side, happy with that process. But then the IDE (vscode) will not know of these changes that have happened until I reload the window. This is the case for all node modules, if I install a new version with a breaking change of something, it will not get picked up by vscode until the window gets reloaded
s
In some cases, you may need to restart the IDE’s TypeScript server.
ctrl + shift + p
and then search
'TypeScript'
There should be an option to
TypeScript: Restart TS Server
s
Yeah that's exactly what I'm doing 😄 every single time. was thinking if maybe there's a way to bypass it/streamline the whole thing, would be nice for so many other bits not just prisma, but it's more of a vscode question