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
Ctrl hover shows a less useful hint when fn opening brace is on a new line #39458
Comments
@mjbvz Problem is not with PHP, is with the hover widget and rendering these LSP messages. Who owns that? |
This is the jump to definition hover. |
I think the current incarnation of that hover came in via 34cdf9f |
I'd like to take this one |
It's yours @faso. The code is here and I am slightly embarrassed that there are no tests: https://github.com/Microsoft/vscode/blob/e7bc65ad3e1d5cf5b32054d86cbba6e2fef05af3/src/vs/editor/contrib/goToDeclaration/goToDeclarationMouse.ts#L144 It's a heuristic that does the following: Once the target document is resolved ( |
If this issue is open I would like to take this up.
|
Not sure if this is entirely related to the issue, but I couldn't find a more appropriate one. The behavior when hovering over a variable is a little confusing at first sight, as pointed out by @zeerorg. Right now it simply reads the next non-whitespace line of code, which has usually nothing at all to do with the variable itself. See the attached image for reference. The same problem seems to occur for C# inline-defined (not sure what is the official name) functions. An idea for a possible fix for C-like languages (admittedly not very robust): |
fixed via #52506 |
The textDocument/definition response range is that of the entire symbol definition (header + body) in both cases.
The text was updated successfully, but these errors were encountered: