diff options
author | pommicket <pommicket@gmail.com> | 2024-12-07 20:38:11 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2024-12-07 20:38:11 -0500 |
commit | bbe75ba8c590747e7df7664128afdf96aeb539e2 (patch) | |
tree | 40342f0fda4dbfcc02030a25dfe78d973170ab9a /ide-hover.c | |
parent | b74905fcb282603f8afc45cd3f08fa8c28c83d41 (diff) |
Better handling of LSP errors
Diffstat (limited to 'ide-hover.c')
-rw-r--r-- | ide-hover.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ide-hover.c b/ide-hover.c index ff5fb19..e77ffa5 100644 --- a/ide-hover.c +++ b/ide-hover.c @@ -78,6 +78,10 @@ void hover_process_lsp_response(Ted *ted, const LSPResponse *response) { } hover->last_request.id = 0; + if (lsp_response_is_error(response)) { + hover_close(ted); + return; + } const LSPResponseHover *hover_response = &response->data.hover; TextBuffer *buffer=0; |