language-tools icon indicating copy to clipboard operation
language-tools copied to clipboard

<script lang='tsx'> does not highlight properly unlike jsx, ts and js

Open Tenrys opened this issue 2 years ago • 1 comments

Code_zPJXU5MNsM

Tenrys avatar Apr 23 '24 08:04 Tenrys

it also seems like updating that tag too quickly can make volar lose track of which "language" is used, I had changed it back to tsx but it still thought I was in a js file

Tenrys avatar Apr 23 '24 08:04 Tenrys

I have the same problem

lokewei avatar May 13 '24 09:05 lokewei

This should fixed by https://github.com/microsoft/TypeScript/pull/57641 in TS 5.5.

johnsoncodehk avatar May 13 '24 10:05 johnsoncodehk

Duplicate of #3912

johnsoncodehk avatar May 13 '24 10:05 johnsoncodehk

Not sure if I need to wait for VSCode / other extensions to update to 5.5, but trying to use the 5.5 beta in a workspace as the language server does not seem to fix the issue yet?

Tenrys avatar May 13 '24 10:05 Tenrys