Skip to content

Commit

Permalink
Fix erlang_ls popup documentation (#678)
Browse files Browse the repository at this point in the history
Signed-off-by: EdmondFrank <[email protected]>
  • Loading branch information
EdmondFrank committed Jul 17, 2023
1 parent 9cc17d7 commit ca7f3a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/handler/hover.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ def parse_hover_contents(self, contents, render_strings):
render_strings.append(make_code_block("text", contents))
elif content_type == dict:
if "kind" in contents:
if contents["kind"] == "markdown":
# Some language servers will return plaintext as the kind with the markdown format as value, such as erlang_ls
if contents["kind"] == "markdown" or contents["kind"] == "plaintext":
render_strings.append(contents["value"])
else:
render_strings.append(make_code_block(
Expand Down

0 comments on commit ca7f3a0

Please sign in to comment.