-
Notifications
You must be signed in to change notification settings - Fork 257
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
fix: codeCompletion-with-defaultSnippet-and-makdown #385
fix: codeCompletion-with-defaultSnippet-and-makdown #385
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we will probably have to check the client capabilities similar to how vscode-json-languageservice does it: https://github.com/microsoft/vscode-json-languageservice/blob/36f8016a33df9eff3b6edd584605aea349b73745/src/services/jsonCompletion.ts#L968. Just to make sure that the client supports markdown before setting supportsMarkdown = true
- copy functionality from original yaml-service
You are absolutely right! So I used functionality from original json-service. |
Co-authored-by: Josh Pinkney <[email protected]>
- first init with Capabilities.LATEST
What does this PR do?
enable defaultSnippet markdown description in schemas for code completion service
What issues does this PR fix or reference?
when schema has defaultSnippet and markdown description parameter set, jsonCompletion will ignores this markdown description because of undefined parameter
supportsMarkdown
Is it tested? How?
added unit-test