-
Notifications
You must be signed in to change notification settings - Fork 29.3k
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
Investigate into using language service support for scope resolution #84044
Comments
VS Code's hover functionality suffers from some problems:
These issues are a consequence of VS Code's generic hover implementation and insufficient implementations of specific debug extension/adapters. VS Code's generic hover implementation makes use of some language agnostic heuristics:
I propose the following improvements:
|
Since this is an investigation there is nothing to verify or test for now. |
Reopened for continuing work in Dec/Jan... |
Please prioritize this aspect. Our debugger deals with a language where A and %A are two distinct variables. The existing behaviour displays the value of A when hovering over an occurrence of %A. |
We also need this because we are developing a COBOL debug extension. Since COBOL variables have hyphen as part of the name, this piece of code is probably making hover return only part of the variable name. Providing an extension callback to configure hover behavior or allowing extension to specify a hover regex would be great. Maybe I can help you, making a pull request to VSCode core, according to what you think is the best approach to develop this solution. |
@GustavoASC thanks for the offer to submit a PR. But I'm already working on this new extension API. |
I've created a new API request. |
Work will continue in February. |
Instead of introducing scope resolution API we've added new API for those cases where the scope resolution API would be used: an |
Related Issues:
Examples of bogus behavior:
The text was updated successfully, but these errors were encountered: