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
Both hover's content and completion's documentation return a plain string:
in the case of hover it indicates a MarkedString which is explicitly deprecated in favour of MarkupContent
in case of completion the use of string is not deprecated, but MarkupContent is allowed and would make the transition to markdown easier in the future
MarkupContent was added in 3.3.0 (11/24/2017) which was 4 years ago and should be safe to transition now given that most clients already support much newer versions of LSP specification (usually at least 3.14).
Updating the following function to return a dictionary complying with MarkupContent interface will be sufficient:
Both hover's
content
and completion'sdocumentation
return a plain string:MarkedString
which is explicitly deprecated in favour ofMarkupContent
MarkupContent
is allowed and would make the transition to markdown easier in the futureMarkupContent
was added in 3.3.0 (11/24/2017) which was 4 years ago and should be safe to transition now given that most clients already support much newer versions of LSP specification (usually at least 3.14).Updating the following function to return a dictionary complying with
MarkupContent
interface will be sufficient:python-lsp-server/pylsp/_utils.py
Lines 139 to 147 in 26f234a
See https://github.com/krassowski/python-language-server/pull/4/files.
The text was updated successfully, but these errors were encountered: