You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
Sometimes when adding a component, I get this error:
Already included file name 'c:/Users/bburnworth/Documents/Code/swpppGood/web/src/components/ui/Toast.tsx' differs from file name 'c:/Users/bburnworth/Documents/Code/swpppGood/web/src/components/ui/toast.tsx' only in casing.
The file is in the program because:
Imported via "src/components/ui/Toast" from file 'c:/Users/bburnworth/Documents/Code/swpppGood/web/src/layouts/AuthenticatedLayout/AuthenticatedLayout.tsx'
Matched by include pattern 'src' in 'c:/Users/bburnworth/Documents/Code/swpppGood/web/tsconfig.json'
which is weird because the file is actually uppercase. I restarted the TS server and it picked everything up correctly.
I'm not sure where to put this so I stuck it here.
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:
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:
The text was updated successfully, but these errors were encountered: