Join Slack
Powered by
Does anyone know how to force VSCode to reload a s...
# orm-help
j
Julien Goux
03/04/2021, 3:41 PM
Does anyone know how to force VSCode to reload a specific .d.ts file ?
j
Joël
03/04/2021, 5:11 PM
“Restart TS Server” should do
https://stackoverflow.com/a/64456017/1345244
Joël
03/04/2021, 5:12 PM
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
Julien Goux
03/04/2021, 6:23 PM
Interesting! Do it have to be a registered vscode extension to restart TS server with a command line?
Julien Goux
03/04/2021, 6:23 PM
Because I don’t plan to use/publish an extension xD
Julien Goux
03/04/2021, 8:16 PM
not sure if genius or stupid but I made it works by writing a dummy folder to node_modules/@types
Julien Goux
03/04/2021, 9:25 PM
well in fact it doesn’t work
j
Joël
03/05/2021, 9:12 AM
So it’s accessible from the UI for sure
Joël
03/05/2021, 9:23 AM
But programmatic access seems reserved to extensions, you don’t have to publish it though, if you create one you can load it manually
5
Views
Open in Slack
Previous
Next