Support new type return by 'fsharp/documentation' and add support for "Open documentation" link from the tooltips #1861
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
WHAT
🤖 Generated by Copilot at 42537c4
This pull request enhances the documentation feature of the extension by using a new type for documentation responses, enabling HTML rendering in the info panel, and simplifying the logic and rendering of the panel. The changes affect the
LanguageService
,DTO
, andInfoPanel
modules in thesrc
folder.🤖 Generated by Copilot at 42537c4
📝🛠️🌐
WHY
This PR adds support for ionide/FsAutoComplete#1099
HOW
🤖 Generated by Copilot at 42537c4
Panel.mapContent
function to use the newDocumentationDescription
type and avoid duplicate logic (link, link)Types
field of theDocumentationDescription
type toDeclaredTypes
for clarity (link, link)LanguageService.documentation
andLanguageService.documentationForSymbol
functions to use the newDocumentationDescription
type and cast the response accordingly (link, link)supportHtml
option to the markdown settings in theLanguageService.private
function to enable HTML rendering in the documentation panel (link)Panel.showDocumentation
function (link)