summaryrefslogtreecommitdiff
path: root/ide-document-link.c
diff options
context:
space:
mode:
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