Hi,
just want to leave this here for others running into Performance issues when using Redwood in VSCode. (did not find comparable posts yet). Our codebase was pretty slow, with intellisense taking sometimes few seconds.
Using zod and having some bigger schema validation, we were checking, if zod was the issue. But the solution to faster typescript autocomplete and intellisense seems to be Strict Mode. Redwood supports it already, but does not turn it on by default. It is well documented though TypeScript Strict Mode | RedwoodJS Docs
import SurveyCell from 'src/components/SurveyCell'
help at all?
If not, try running yarn rw g types - this is because Redwoodâs special import syntax needs âmirrorâ definitions defined behind the scenes for you. Generated Types | RedwoodJS Docs
Usually most people develop with the dev server running, so its constantly generating these types for you.
I hear you. Definitely one of the weirder parts of Redwood, and something I wish I could solve.
VSCode doesnât seem to understand how to use the mirror cells in itâs autosuggestions - but unfortunately we donât really have enough time/people in the team to help with creating a language server plugin to help with these cases.
Iâm curious where I got the idea from to import like that.
Unrelated:
Looking at the docs Redwood Utility Types | RedwoodJS Docs seems to suggest to name files ***.cell.tsx, which isnât what the generator does? So thatâs confusing to me.
I think I ended up with this cause vscode can still suggest to import the story for the cell, so I probably just did that and removed the story ending.