Improve the readability of function definition #3186
gnahtb
started this conversation in
Enhancement
Replies: 1 comment 11 replies
-
current implementation just tries to reproduce the plaintext style in markdown. docstirng conversion is in pyright. https://github.com/microsoft/pyright/blob/ed13daf16f2621600a0f1ca67fdd18aa1b79d98b/packages/pyright-internal/src/analyzer/docStringConversion.ts#L558 |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This is inspired from the behavior of the Java extension. So currently, for example, if my mouse hovers on a function, a docstring popup as the following displays:
I think it is unslightly, compared to "docstring" I get from the Java extension below, and not to mention there are many docstring styles, which creates inconsistency.
This may relate to microsoft/vscode-python#6676. I think we can simply parse the docstrings before displaying them - implementing different parsers for different styles. I'm happy to work on this issue.
Beta Was this translation helpful? Give feedback.
All reactions