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

Template interpolation syntax highlighting #1759

Closed
rhernandog opened this issue Aug 24, 2022 · 6 comments
Closed

Template interpolation syntax highlighting #1759

rhernandog opened this issue Aug 24, 2022 · 6 comments
Labels
bug Something isn't working

Comments

@rhernandog
Copy link

Hello,

First thanks for the great work in this package!!!

It seems that since the last update syntax highlighting for template interpolation (double curly braces) is not working on VSCode, as show in the image:

Screenshot from 2022-08-24 11-48-26

Is not a breaking situation, but it would be nice to have it back if this was ever implemented of course, honestly I can't remember if the extension had this before. If it didn't it'd be great to include it.

Best,
Rodrigo.

@johnsoncodehk
Copy link
Member

Do you have enable editor.bracketPairColorization.enabled in VSCode?

@rhernandog
Copy link
Author

@johnsoncodehk Yep is set to true in the global configs in VSCode.

In fact here is the same file using Vetur:
image

@johnsoncodehk
Copy link
Member

I guess this is a random problem with new VSCode version. Volar only provides colorizedBracketPairs that are not repeated for embedded html language. VSCode may have changed the resolution.

https://github.com/johnsoncodehk/volar/blob/master/extensions/vscode-vue-language-features/languages/sfc-template-language-configuration.json

@rhernandog
Copy link
Author

What's really baking my noodle is why(how) is working on Vetur?? 😕

@johnsoncodehk
Copy link
Member

Vetur define template langauge as vue-html, Volar use html, it may the different.

@johnsoncodehk
Copy link
Member

It can always reproduce in latest VSCode version, I have to see what are VSCode doing. 👀

@johnsoncodehk johnsoncodehk added the bug Something isn't working label Oct 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants