summaryrefslogtreecommitdiff
path: root/ide-document-link.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-08-04 23:53:26 -0400
committerpommicket <pommicket@gmail.com>2023-08-04 23:53:26 -0400
commit3816db2083421222b59ecb1b9f5cedbead6d1fc7 (patch)
treefab3847116e5add027b808de6b5c906abcec5e6f /ide-document-link.c
parentfa4c4fcb7f215dd2d63318c3aef6dd0794a44548 (diff)
start renmae symbol
Diffstat (limited to 'ide-document-link.c')
-rw-r--r--ide-document-link.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ide-document-link.c b/ide-document-link.c
index 2328a6b..731089c 100644
--- a/ide-document-link.c
+++ b/ide-document-link.c
@@ -86,7 +86,8 @@ void document_link_frame(Ted *ted) {
void document_link_process_lsp_response(Ted *ted, const LSPResponse *response) {
DocumentLinks *dl = &ted->document_links;
- if (response->request.type != LSP_REQUEST_DOCUMENT_LINK)
+ if (response->request.type != LSP_REQUEST_DOCUMENT_LINK
+ || response->request.id != dl->last_request.id)
return;
if (!dl->last_request.id)
return; // request was cancelled