VS code seems to not pick up on imports like src/utils/cn after adding a component.
Restarting the TS server seems to help.
It'd be cool if we could do that automatically after running the rwgc script.
Plan for this right now:
Write a VSCode extension that triggers await vscode.commands.executeCommand("typescript.restartTsServer");
Install the extension by running something like code --install-extension my-extension.name during setup
Figure out a way to communicating with the extensions. Maybe by spinning up an http server. OR we could have it watch for newly added files in web/src/components/ui and automatically restart
Have it trigger typescript.restartTsServer when new components are added (also see above)
VS code seems to not pick up on imports like
src/utils/cn
after adding a component. Restarting the TS server seems to help. It'd be cool if we could do that automatically after running therwgc
script.Plan for this right now:
await vscode.commands.executeCommand("typescript.restartTsServer");
code --install-extension my-extension.name
during setupweb/src/components/ui
and automatically restarttypescript.restartTsServer
when new components are added (also see above)References: