Is anyone else experiencing odd syntax highlighting in vscode with astro 2.0.4? I just started a new project today (added tailwind + prettier plugins), and now it seems that most of my code is being color coded "oddly". If I have a const of "message", half of it is purple and the last few chars are white. I am also getting a bunch of ts errors regarding "files already imported" for components in my index (I only have 2). I tried restarting the Astro language server several times to no avail.
#Odd syntax highlighting
8 messages · Page 1 of 1 (latest)
Which version of the extension are you using? The current version or the pre release?
Oh, I didnt even think of that. I seem to be using the pre release. Switching to the release version seems to have corrected the syntax highlighting. Now I just need to fix the duplicate component ts error. I might just clear out my components and see how that goes.
Are you on Windows by any chance?
I am on osx
Ah, weird. We're tracking a similar issue regarding syntax highlighting, but it should only affect Windows really, or code that was written on Windows at least
The "files is already imported" one usually happens when you use the wrong casing for a file (ex, load a file called File.astro as file.astro instead)
The error message TypeScript gives for that one is super confusing