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

The highlighting of PascalCase and kebab-case cannot be distinguished #4089

Open
liudid opened this issue Mar 13, 2024 · 10 comments
Open

The highlighting of PascalCase and kebab-case cannot be distinguished #4089

liudid opened this issue Mar 13, 2024 · 10 comments

Comments

@liudid
Copy link

liudid commented Mar 13, 2024

No description provided.

@liudid liudid changed the title The highlighting of PascalCase and kebab-case cannot be distinguished in vscode Using Vue-Official in vscode, it is not possible to distinguish between the highlighting of PascalCase and kebab-case Mar 13, 2024
@liudid
Copy link
Author

liudid commented Mar 13, 2024

Using Vue-Official in VsCode, it is not possible to distinguish between the highlighting of PascalCase and kebab-case.

@liudid liudid changed the title Using Vue-Official in vscode, it is not possible to distinguish between the highlighting of PascalCase and kebab-case The highlighting of PascalCase and kebab-case cannot be distinguished Mar 13, 2024
@liudid
Copy link
Author

liudid commented Mar 13, 2024

image Vue-Official effect

@liudid liudid closed this as completed Mar 13, 2024
@liudid liudid reopened this Mar 13, 2024
@liudid
Copy link
Author

liudid commented Mar 13, 2024

image Vetur effect

@liudid
Copy link
Author

liudid commented Mar 13, 2024

Why can't volar distinguish highlights?

@so1ve
Copy link
Member

so1ve commented Mar 13, 2024

Why do you want to distinguish highlights?

@liudid
Copy link
Author

liudid commented Mar 13, 2024

Why do you want to distinguish highlights?

In the previous use of Vetur, it could distinguish between the highlighted colors of PascalCase and kebab-case. So I choose to use kebab-case when using third-party component libraries and PascalCase when using custom components to quickly distinguish the different sources of components by highlighting them. But when I switched from Vetur to Volar, I found that this feature that had helped me so much was gone.

@liudid
Copy link
Author

liudid commented Mar 13, 2024

Why do you want to distinguish highlights?

image

Distinguishing native HTML elements by using PascalCase is mentioned in vuejs.org. I wish Volar could distinguish div and MyDiv with different highlighted colors like Vetur does.

@so1ve
Copy link
Member

so1ve commented Mar 13, 2024

I wish Volar could distinguish div and MyDiv with different highlighted colors like Vetur does.

It does. Components have different highlight colors.

@Vasily257
Copy link

Vasily257 commented Mar 15, 2024

It doesn't work for me eathier:

  1. In the first screenshot I'm using the official extension, and the highlight isn't working.
  2. In the second screenshot I'm using a third-party extension, and the highlight is working.

image
image

@XioDone
Copy link

XioDone commented Mar 15, 2024

image

This is not a problem of PascalCase and kebab-case styles, it may be caused by your theme, you can try switching themes.

The same issue occurred in a previous version a long time ago, see #2252, return to the 1.x version of the token and it should behave normally.

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

No branches or pull requests

4 participants