Skip to content

The syntax highlighting of lang="ts" is inconsistent with the syntax highlighting of the .ts file #2687

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

Closed
3 tasks done
luwanquan opened this issue Feb 6, 2021 · 2 comments · Fixed by #2802
Closed
3 tasks done

Comments

@luwanquan
Copy link

  • I have searched through existing issues
  • I have read through docs
  • I have read FAQ

Info

  • Platform: macOS
  • Vetur version: 0.32.0
  • VS Code version: 1.53.0
  • VS Code theme: One Dark Pro
  • VS Code formatter: Prettier

Problem

image

This is an irrelevant question, but I have always been curious about what caused the inconsistency of the highlighting on both sides🤔 .
Prior to this, I have searched a lot of information and did not find the specific reason.

Reproducible Case

@jasonlyu123
Copy link
Contributor

I think it's because the typescript extension has the semantic-highlighting feature. It provides highlights with type analysis.

@luwanquan
Copy link
Author

@jasonlyu123 You are correct, when I set "editor.semanticHighlighting.enabled": false, the display of the .ts file is the same as the display of lang="ts".

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

Successfully merging a pull request may close this issue.

3 participants