Does anyone know how to force VSCode to reload a s...
# orm-help
j
Does anyone know how to force VSCode to reload a specific .d.ts file ?
j
“Restart TS Server” should do https://stackoverflow.com/a/64456017/1345244
This is what the Prisma extension is doing to make sure types are always up-to-date https://github.com/prisma/language-tools/blob/master/packages/vscode/src/plugins/prisma-language-server/index.ts#L197-L202
j
Interesting! Do it have to be a registered vscode extension to restart TS server with a command line?
Because I don’t plan to use/publish an extension xD
not sure if genius or stupid but I made it works by writing a dummy folder to node_modules/@types
well in fact it doesn’t work
j
So it’s accessible from the UI for sure
But programmatic access seems reserved to extensions, you don’t have to publish it though, if you create one you can load it manually