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
merged 2 commits into from
Oct 29, 2018

Conversation

jakebailey
Copy link
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 MikhailArkhipov merged commit faea276 into microsoft:master Oct 29, 2018
@jakebailey jakebailey deleted the null-markup branch February 14, 2019 20:12
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants