Skip to content

Commit 99cda4f

Browse files
authored
fix error when opening quickinfo popups that have no documentation key
1 parent 649a341 commit 99cda4f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

typescript/commands/quick_info.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ def handle_quick_info(self, quick_info_resp_dict, display_point):
4343
if quick_info_resp_dict["success"]:
4444
info_str = self.format_display_parts_html(quick_info_resp_dict["body"]["displayParts"])
4545
status_info_str = self.format_display_parts_plain(quick_info_resp_dict["body"]["displayParts"])
46-
doc_str = self.format_display_parts_html(quick_info_resp_dict["body"]["documentation"])
46+
47+
if "documentation" in quick_info_resp_dict["body"]:
48+
doc_str = self.format_display_parts_html(quick_info_resp_dict["body"]["documentation"])
4749

4850
# process documentation
4951
if len(doc_str) > 0:

0 commit comments

Comments
 (0)