-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Usage highlighting broken in VSCode #59695
Comments
@DanTup What LSP command / handler does VS Code use to highlight usages? @stereotype441 is it broken for all kinds of elements, e.g. local variables, classes, getters, etc? |
LSP calls these "Document Highlights" and the implementation uses In a quick test of class names (running from source as of around 4 hours ago) I do still see them showing up: |
Hmm, I thought it was broken for everything, but now I can't reproduce the problem at all. I'm not sure what happened. I will keep an eye out, and if it happens again, I'll post more exact repro instructions. |
Ok, I have more information. The problem seems to happen only in certain files. For example, in my checkout of the Dart SDK, document highlights work in I played around a bit in Does that help? |
I don't see anything obviously wrong with the AST structure created for that constructor. My best guess at this point is that the code might be throwing an exception that's being caught in such a way that it's returning an empty list of references. |
@stereotype441 do you have an exact git hash and example offset where it's not working? I'm browsing the source at 8a28378 and running the server from |
I recently re-built my SDK, and I'm no longer seeing usages highlighted when clicking on an identifier in VSCode.
I've bisected the issue and it appears to have started with 6f992ae.
CC @bwilkerson @scheglov
The text was updated successfully, but these errors were encountered: