redwoodjs / setup-rw-shad

Command for setting up rwgc in a RedwoodJS project
MIT License
6 stars 0 forks source link

Install extension to restart TS server #1

Open Tobbe opened 4 months ago

Tobbe commented 4 months ago

VS code seems to not pick up on some imports, like for src/utils/cn when adding new components. Restarting the TS server seems to help. It'd be cool if we could do that automatically after running the rw-shad script.

Plan for this right now:

  1. Write a VSCode extension that triggers await vscode.commands.executeCommand("typescript.restartTsServer");
  2. Install the extension by running something like code --install-extension my-extension.name