-
Notifications
You must be signed in to change notification settings - Fork 154
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
Format tooltips using client input #1254
Comments
From the linked issue:
@TheAngryByrd / @MangelMaxime any disagreement with this approach? I think ideally we could use some kind of ClientCapabilities structure instead of hardcoding to client names to make these kinds of decisions, but I'm not 100% sure what that would look like. |
No disagreement with this approach. I believe this is why we also have different I suppose in the case of Or do we need to introduce a new style? |
I think if we are able to define our own ClientCapabilities you could imagine a setting specifically for which tooltip style to use "tooltips": {
"format": "Documentation"
} Or any of our other known styles, and we could default to a style that is more inclusive, then have Ionide specifically opt into the command-based style. That way the behavior isn't tied to the client specifically, and maps to concepts already in our codebase on a forward-compatible way. |
Yes, this is what I think too. I am just unsure if we already have the style corresponding to:
I also don't remember why I am adding the Could it be because of the Depending on the reason we could revisit: [<RequireQualifiedAccess>]
type FormatCommentStyle =
| Legacy
| FullEnhanced
| FullEnhancedWithOpenDocumentationLink // New case
| SummaryOnly
| Documentation or in the client capabilities set |
Details
Format tFsAutoComplete should allow customising the rendering for different clients based on client capabilities or client names.
For exaple on Emacs the Eldoc functionlity does not allow to display the exammples section and show a link and a message:
Open the documentation to see the truncated examples
.I've initially reported the effect of this issue on emacs-fsharp-mode fsharp/emacs-fsharp-mode#339
Checklist
The text was updated successfully, but these errors were encountered: