Uh oh!
There was an error while loading. Please reload this page.
Improve hover results - #452
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
PeterCardenas
commented
Jan 9, 2024
@tkrabel-db@HedgehogCode any way we can get this merged? looking forward to this change |
tkrabel-db
commented
Jan 9, 2024
@PeterCardenas I'm afraid I have no rights to do so. |
ripped from python-lsp#452
- Use jedi Script.help instead of infer - Ensures that docstrings of the definition are used if possible instead of docstrings of the type - Show all possible signatures or types of the element hovered instead of just the first one that matches the name
Co-authored-by: tkrabel-db <91616041+tkrabel-db@users.noreply.github.com>
- Only show signatures for function and class types - Also show types if there are definitons without signatures next to definitions with signatures
f962c9e to
738ee2fCompareHedgehogCode
commented
Feb 7, 2024
Sorry for the late reply. The example above showed I also changed the code to show the type in cases where we have a signature but this is not the only option. Example: On hover over "b": |
flexagoon
commented
Feb 26, 2025
Hi, what's the status of this? This issue is super annoying |
ibrokemypie
commented
Apr 3, 2025
Anything that can be done to get this merged? |


This PR solves #444.
I tried to describe the changes pretty well in the comments in the code. Note that there are two
TODO(Review)comments that I would like feedback on.Here are some examples of how the hover results change with this code change. The new results are highlighted with a green border.