-
Notifications
You must be signed in to change notification settings - Fork 158
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
Function signature tooltips include attributes for arguments that make the tooltip unreadable #858
Comments
This rings a bell. I believe this is a change with I don't think this is problematic in itself. It accurately reflects what the code contains. And I'm pretty sure that fsharp-formatting might also drop the ball in the tooltip department. |
While technically correct, i am not sure if i agree here generally. Maybe my use case for these tooltips is non-standard, but i generally want to know the names and types of the arguments - which are really hidden in visual noise, even when formatted better like in your screenshot. It also might be that the methods of Plotly.NET just have an unusual amount of arguments (sometimes > 100), so it might be an extreme case where tooltips reach their limit anyways. I do not want to sound too complain-y here though - at the end of the day if this the way to display tooltips i'll adapt, but i think for this specific use case the update made things worse. If you could point me to the code where tooltips are generated, i could add a flag to the tool that trims these from the input if that is a possibility. Should be quite easy to remove with a regex, as everything is guarded by As an aside - the API docs tooltips for methods look 100x better than this IMO. could we just display that as tooltip (without the param descriptions)? |
I think extending the We can pair on this sometime if you want. |
Sure, do you intend to stream this? I am not sure if i will have time in the next week(s), but i'll make sure to reach out once i am free |
We could but that is really up to you. I wasn't specifically proposing it with that in mind. |
I am not sure if this is the correct place to raise an issue like this, because it also affects both tooltips in VS and polyglot notebooks
Plotly.NET makes quite heavy use of attributes for method arguments to improve C# interop. A typical method looks like this:
in the past, tooltips for these methods looked like this:
with the latest fsdocs version, they include the
Optional
andDefaultParameterValue
Attributes, even prefixed with their full namespaces:This is really unfortunate because they are now completely unusable. This also happens in Ionide and Visual studio:
So i suspect something bigger out of the scope of this lib being at play. Might this be related to this lib updating the FCS version with > 19.0.0? Is there another place to raise this issue? This is impacting the usability of Plotly.NET heavily.
The text was updated successfully, but these errors were encountered: