Skip to content
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

Reply with MarkupContent in completion documentation #87

Merged
merged 1 commit into from
Oct 26, 2023

Conversation

rwols
Copy link
Contributor

@rwols rwols commented Oct 25, 2023

This changes the type of the documentation in completion items from str to MarkupContent. This allows clients to render the documentation correctly.

Basically the completion item docs render the same as the hover content now:

image

Before this change, the completion docs rendered as follows:

image

@rwols rwols requested a review from regen100 as a code owner October 25, 2023 20:51
@codecov
Copy link

codecov bot commented Oct 26, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (68bbc81) 91.95% compared to head (6d02366) 92.19%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #87      +/-   ##
==========================================
+ Coverage   91.95%   92.19%   +0.24%     
==========================================
  Files           3        3              
  Lines         323      333      +10     
==========================================
+ Hits          297      307      +10     
  Misses         26       26              
Flag Coverage Δ
unittests 92.19% <100.00%> (+0.24%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
cmake_language_server/server.py 88.18% <100.00%> (+1.00%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Owner

@regen100 regen100 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your pull request!

@regen100 regen100 merged commit 8cc05ad into regen100:master Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants