Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax highlighting for lang="tsx" is wonky #2877

Open
4 tasks done
hisuwh opened this issue Apr 19, 2021 · 0 comments
Open
4 tasks done

Syntax highlighting for lang="tsx" is wonky #2877

hisuwh opened this issue Apr 19, 2021 · 0 comments

Comments

@hisuwh
Copy link

hisuwh commented Apr 19, 2021

  • I have searched through existing issues
  • I have read through docs
  • I have read FAQ
  • I have tried restarting VS Code or running Vetur: Restart VLS

Info

  • Platform: Win
  • Vetur version: v0.33.1
  • VS Code version: 1.55.2

Problem

I have a dependency that allows me to show a popup and inject some elements. I can obviously use this.$createElement but I would like to use JSX (or more specifically TSX because I'm using typescript).

With lang="ts" I get errors as I would expect:

image

With lang="tsx" these errors go away, and everything builds and still have code completion but the syntax highlighting is completed messed up.

image

Reproducible Case

Not clear how I can reproduce this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants