You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm afraid this requires some upstream fixes in either the python language server or the protocol specifications.
The problem is that the LSP currently only supports markdown or plain text. Since Python docstrings are usually written in rst the language server would need to convert it to markdown first. Ideally this could also be handled by the frontend but this also requires (small) changes to the protocol itself.
Do you want to open a issue on the python-language-server repo to see if we can find a fesible way of doing a conversion without losing too much speed?
Activity
[-]pydoc rending[/-][+]pydoc rendering[/+]lgeiger commentedon Mar 20, 2018
I'm afraid this requires some upstream fixes in either the python language server or the protocol specifications.
The problem is that the LSP currently only supports markdown or plain text. Since Python docstrings are usually written in rst the language server would need to convert it to markdown first. Ideally this could also be handled by the frontend but this also requires (small) changes to the protocol itself.
Do you want to open a issue on the python-language-server repo to see if we can find a fesible way of doing a conversion without losing too much speed?
Evpok commentedon Mar 20, 2018
In the meantime, you can wrap doctests in fenced code blocks to avoid having theme rendered as Markdown blockquotes
dwSun commentedon Mar 21, 2018
Started a new issue on the python-language-server repo.
Here is the issue related to this problem on the atom-ide-ui repo:
facebookarchive/atom-ide-ui#23
lgeiger commentedon May 12, 2018
For reference checkout palantir/python-language-server#348 which will fix this problem in a future release of pyls.