summaryrefslogtreecommitdiff
path: root/ide-usages.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-31 12:12:07 -0500
committerpommicket <pommicket@gmail.com>2022-12-31 12:12:07 -0500
commitb45acfb66cd4c4474d3fd951d2a1b0fe3b63ae0b (patch)
tree61209fe68bd406e26e4f356043c7836668b8cd5b /ide-usages.c
parent02faedf9bf7e826bc78161f8cf07ffca5d2dbe57 (diff)
better LSP request cancelling
Diffstat (limited to 'ide-usages.c')
-rw-r--r--ide-usages.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ide-usages.c b/ide-usages.c
index 9b1b3fb..73fb725 100644
--- a/ide-usages.c
+++ b/ide-usages.c
@@ -1,8 +1,7 @@
void usages_cancel_lookup(Ted *ted) {
Usages *usages = &ted->usages;
if (usages->last_request_id) {
- LSP *lsp = ted_get_lsp_by_id(ted, usages->last_request_lsp);
- lsp_cancel_request(lsp, usages->last_request_id);
+ ted_cancel_lsp_request(ted, usages->last_request_lsp, usages->last_request_id);
usages->last_request_id = 0;
}
}