Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Investigate into using language service support for scope resolution #84044
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:
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.