-
-
Notifications
You must be signed in to change notification settings - Fork 437
Double click to show all occurrences in scrollbar is broken #4850
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
Comments
Noticed something similar as well. Though it's for single click occurrences highlight. This feature is controlled via
VS Code:
Vue Extension v2.1.6. Anything else I can provide to help resolve this? |
Some additional findings re the "single click occurrence highlight":
|
It is caused by hybrid mode. |
I personally can't reproduce this anymore and it works well for me again. Since my previous comment VS Code was upgraded to 1.94.2 and TypeScript is now 5.6.3. |
Just re-tested and we are still seeing this issue with the volar-starter repo (and our own repos). VS Code 1.94.2 and TS 5.6.3. Double click highlight works in pure TypeScript files but not .vue files unless we turn off Hybrid mode. Setting "editor.occurrencesHighlight" to "multiFile" does work - until you restart VS Code and then it stops working and you have to toggle the setting to "single" and back to "multiFile" to make it work again. |
Sorry! Yes @cabal95 is correct and issue is still reproducible. I had "multiFile" enabled. |
Same issue for me, when single clicking a symbol. It is not just the scrollbar though, it is that none of the occurrences in the code are highlighted AS WELL as the scrollbar. VSCode 1.94.2, TypeScript 5.6.3 - Hybrid Mode enabled. Issue was introduced in VSCode 1.93 |
Everything worked well exactly one year ago. I took a break for a while, so does anyone know in which version it started? And what exactly do I need to roll back – the Vue extension or VSCode? Can't really work without occurrences highlighting because there's a lot of code to refactor. This is killing me. |
I find that if I roll back VSCode to 1.92.x, it works again. |
I just downgraded to 1.8.27, it works pretty good, and it also seems to be faster than current 2.2.0. So yeah, that's what I'm using until this is fixed. |
At first, I downgraded too, but then I noticed that the "Go to definition" feature doesn't work inside <template>, and some variable references didn’t work either. Eventually, I updated to the latest version (2.2.0 as of now) and, to make occurrences highlighting work, added this setting to my VS Code settings: "vue.server.hybridMode": "typeScriptPluginOnly" Now, 2.2.0 works pretty well. I haven’t noticed problems that I experienced before, yet, although I mainly work with JS, not TS right now. |
@alexchexes I don't see how one can be happy with this unless it works differently on your computer. For me with
It does still break for me after a restart on latest 2.2.8 until |
@artu-ole Hmm, yes, it's definitely different for me: ![]() ![]() With
Sorry, I just noticed that you were talking about So if that's the case and it still doesn’t work with multi-file highlighting, we should probably wait for the merge of #5263 - if that happens, of course. |
@alexchexes Thank you for a prompt and thorough check on your side! Indeed, you are right to point out the difference in our The workaround with Indeed, @KazariEX's #5263 seems like it would do the trick, though at a glance(I might be wrong) it does not look like it would support |
Vue language server and tsserver both provide highlight information, VSCode will show the highlights returned by both servers at the same time in the past, but since a certain version, VSCode only shows the highlights returned by the Vue language server for .vue files, which is the cause of the problem. With #5263, Vue language server will also return highlights from tsserver, but due to the limitation of LSP, it doesn't support to return highlights from multiple files, it can't support |
Vue - Official extension or vue-tsc version
2.1.6
VSCode version
1.93.1
Vue version
2.7.16
TypeScript version
5.5.4 / 5.6.2
System Info
package.json dependencies
No response
Steps to reproduce
Double click the name of a function in a .vue file. Previously, all occurrences were highlighted in the scrollbar of VS code.
Now the highlighting in the scrollbar is missing and can only be seen in the document.
When I double click the name of a function in a .ts file, scrollbar highlighting is still working as expected.
What is expected?
Show highlighting for occurrences in scrollbar
What is actually happening?
Highlighting is missing
Link to minimal reproduction
No response
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: