-
Notifications
You must be signed in to change notification settings - Fork 768
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
Split (or hide) multiple overloads in tooltips for functions #612
Comments
I agree this is unusable. I prefer the original code doc. |
They should definitely match (but we know that these tooltips can get unwieldy due to overloads / large signatures in general). |
Adding to this, many of the code docs have become unusable in Pylance to the point where I'm switching back to Jedi for the time being despite many great features of Pylance. Jedi (gives information I need)Pylance (not useful for me)I am also unable to scroll within that tooltip window to get to the actual docstring. |
I'm having the same issue. Docstrings for functions in |
The next release splits the big This is an incremental improvement; we may consider more significant changes like hiding all but the currently-matching overload on hover or completion (similar to TS and C#), but that will require a bit more consideration. |
The case in #612 (comment) is unrelated; that's more about docstring mapping, where itertools is actually compiled code within the python interpreter itself where we can't access it, so will be handled in the same way as #465 (which I'll retitle to be broader). |
This issue has been fixed in version 2021.3.1, which we've just released. You can find the changelog here: https://github.com/microsoft/pylance-release/blob/main/CHANGELOG.md#202131-10-march-2021 |
Intellisense tooltips for autocomplete selection have a newline between each overload, which helps immensely with legibility. (It could even be argued a bit of extra space between the overloads wouldn't go amiss.)
Hovering over the same symbols after they are in the code, however, brings up a huge monolithic wall of text that is almost less useful than the old "Jedi" or "Microsoft" language server tooltips, just due to the shear amount of clutter.
I believe this would look much better with newlines separating the overloads as is already the case in the autocomplete version.
The text was updated successfully, but these errors were encountered: