Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

[WIP] Ensure DocumentationBuilder never has a null preferred MarkupKind - #316

Merged
Mikhail Arkhipov (MikhailArkhipov) merged 2 commits into
microsoft:masterfrom
jakebailey:null-markup
Oct 29, 2018
Merged

Mikhail Arkhipov (MikhailArkhipov) merged 2 commits into
microsoft:masterfrom
jakebailey:null-markup

Conversation

@jakebailey

Copy link
Copy Markdown
Member

Fixes #305.

I opted to move this up into DocumentationBuilder. Hover seems to avoid this problem as it's able to use the helper method GetMarkupContent, which ensures that the kind is set properly.

Completion documentation generation lives in CompletionAnalysis, and seems to be the only user of preferredFormat. Before merging this PR, I'm going to investigate and see how much trouble it'd be to rework doc generation into using the capability-sent list of supported MarkupKinds, so I've marked this as [WIP] for now.

@MikhailArkhipov
Mikhail Arkhipov (MikhailArkhipov) merged commit faea276 into microsoft:master Oct 29, 2018
@jakebailey
Jake Bailey (jakebailey) deleted the null-markup branch February 14, 2019 20:12
Jake Bailey (jakebailey) pushed a commit to jakebailey/python-language-server that referenced this pull request Nov 1, 2019
[WIP] Ensure DocumentationBuilder never has a null preferred MarkupKind
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

2 participants