-
Notifications
You must be signed in to change notification settings - Fork 799
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
Proposal: treat CompletionItem#description
as markdown
#111
Comments
In general whenever the LSP passes a strings to be displayed to the user (also showMessage for instance) it should allow the same kind of mark up. |
@dbaeumer Yeah, I'm talking about |
Yes - we have request to allow markdown in more places but haven't tackled that yet |
@jrieken cool. We keep it as a feature request then. |
The PHP stubs for the PHP standard libraries all contain HTML in their docblocks, which looks awful at the moment. Using markdown in docblocks is very common, and would also solve the HTML case, since markdown can contain HTML. |
fyi - we currently don't allow html in markdown |
Any reason why? |
script execution |
Good point, but I think it would be pretty easy to not allow any |
I still haven't found a complete list of |
Instead of blacklisting all script execution attributes, you can just whitelist safe attributes. Normally you don't use that many attributes in HTML in markdown, it's mostly basic elements like the ones I mentioned above that could also be represented in markdown. |
Would also love it if the |
Implemented in the npm node modules as speced in the protocol in a backwards compatible way. |
Besides CompletionItem, SignatureHelp can provide Markdown as well. |
In the polymer language server we have the same documentation available for a symbol whether we're autocompleting it or giving the docs on hover. I expect most other servers to be in a similar boat. The markdown rendering for hover documentation is great, and we'd like to have similar rendering for the same content.
The text was updated successfully, but these errors were encountered: