From ca7f3a07294d5a29a3282854818853ab4a988e9d Mon Sep 17 00:00:00 2001 From: EdmondFrank Date: Mon, 17 Jul 2023 10:11:28 +0800 Subject: [PATCH] Fix erlang_ls popup documentation (#678) Signed-off-by: EdmondFrank --- core/handler/hover.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/handler/hover.py b/core/handler/hover.py index 9ba3ddc9f6..47e23a0188 100644 --- a/core/handler/hover.py +++ b/core/handler/hover.py @@ -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(