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-rename-symbol.c | |
parent | b74905fcb282603f8afc45cd3f08fa8c28c83d41 (diff) |
Better handling of LSP errors
Diffstat (limited to 'ide-rename-symbol.c')
-rw-r--r-- | ide-rename-symbol.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ide-rename-symbol.c b/ide-rename-symbol.c index a379d1d..ff96311 100644 --- a/ide-rename-symbol.c +++ b/ide-rename-symbol.c @@ -122,6 +122,10 @@ void rename_symbol_process_lsp_response(Ted *ted, const LSPResponse *response) { if (menu_is_open(ted, MENU_RENAME_SYMBOL)) menu_close(ted); + if (lsp_response_is_error(response)) { + ted_flash_error_cursor(ted); + return; + } const LSPResponseRename *data = &response->data.rename; if (!lsp) { // LSP crashed or something |