summaryrefslogtreecommitdiff
path: root/ide-usages.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-04 23:16:09 -0500
committerpommicket <pommicket@gmail.com>2023-01-04 23:16:09 -0500
commit629ce76eb480d63fdd57769a0d9972a1a0c0fbea (patch)
treef66c3a19c9f16ba09607e8818d49ed6c12ad4003 /ide-usages.c
parent808b9a13cb5c71c28db6c842b78ef7f1743283cd (diff)
more documentation
Diffstat (limited to 'ide-usages.c')
-rw-r--r--ide-usages.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ide-usages.c b/ide-usages.c
index 806c09a..95324fd 100644
--- a/ide-usages.c
+++ b/ide-usages.c
@@ -29,14 +29,14 @@ void usages_find(Ted *ted) {
}
-void usages_process_lsp_response(Ted *ted, LSPResponse *response) {
+void usages_process_lsp_response(Ted *ted, const LSPResponse *response) {
Usages *usages = &ted->usages;
if (response->request.type != LSP_REQUEST_REFERENCES)
return; // not for us
if (response->request.id != usages->last_request_id)
return;
LSP *lsp = ted_get_lsp_by_id(ted, usages->last_request_lsp);
- LSPResponseReferences *refs = &response->data.references;
+ const LSPResponseReferences *refs = &response->data.references;
if (lsp && arr_len(refs->locations)) {
TextBuffer *buffer = &ted->build_buffer;
build_setup_buffer(ted);