Intellisense docstrings do not follow functools.wraps() semantics #2596
Labels
area-intellisense
LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.
bug
Issue identified by VS Code Team member as probable bug
Environment data
Actual behavior
The function docstrings shown in the intellisense popout (visible on hover) are showing docstrings which do not match those of the interpreter's inspect.getdoc() output.
Expected behavior
The function docstrings shown in the intellisense popout (visible on hover) should match the docstrings shown by the interpreter (output of inspect.getdoc() used as reference), even when there are decorators (sometimes multiple layers) covering them.
Steps to reproduce:
This issue is somewhat reproducible with jedi as the backing language server, but seems more consistent with then new language server.
Hover over the function references on lines 38-39 of the included reproduction script:
issue.py.txt
Note that the docstrings shown are not the same as the output of inspect.getdoc()
I have included a gif of the reproduction (located at the end of this issue document) to show the kind of output I am getting.
Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Output from
Console
under theDeveloper Tools
panel (toggle Developer Tools on underHelp
)Gif
The text was updated successfully, but these errors were encountered: