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

Highlight all occurrences of the selected variable both in script and template #1381

Closed
rodrigocfd opened this issue Jun 3, 2022 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@rodrigocfd
Copy link

When you leave the cursor on a variable, it highlights all its occurrences. However, with Volar, the script and template sections don't communicate, so the highlighted variable will only show either within script or within template.

In this screenshot, the cursor is over the variable inside script. Note how its occurrences inside template are not highlighted:

select-script

Now the cursor is over the variable inside template, and the occurrences inside script are not highlighted:

select-template

I don't know whether this is some sort of technical limitation, but the variables should be highlighted everywhere they're used, all at the same time.

@johnsoncodehk
Copy link
Member

Duplicate of #462

@johnsoncodehk johnsoncodehk marked this as a duplicate of #462 Jun 4, 2022
@johnsoncodehk johnsoncodehk added the duplicate This issue or pull request already exists label Jun 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants