mirror of
https://github.com/MaskRay/ccls.git
synced 2025-02-19 15:10:47 +00:00
Add some additional code completion logging.
This commit is contained in:
parent
7a71447273
commit
99db0a1596
@ -1570,11 +1570,13 @@ bool QueryDbMainLoop(
|
|||||||
std::string path = msg->params.textDocument.uri.GetPath();
|
std::string path = msg->params.textDocument.uri.GetPath();
|
||||||
if (is_global_completion) {
|
if (is_global_completion) {
|
||||||
global_code_complete_cache->cached_path = path;
|
global_code_complete_cache->cached_path = path;
|
||||||
|
std::cerr << "[complete] Updating global_code_complete_cache->cached_results [0]" << std::endl;
|
||||||
global_code_complete_cache->cached_results = results;
|
global_code_complete_cache->cached_results = results;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
non_global_code_complete_cache->cached_path = path;
|
non_global_code_complete_cache->cached_path = path;
|
||||||
non_global_code_complete_cache->cached_completion_position = msg->params.position;
|
non_global_code_complete_cache->cached_completion_position = msg->params.position;
|
||||||
|
std::cerr << "[complete] Updating non_global_code_complete_cache->cached_results [1]" << std::endl;
|
||||||
non_global_code_complete_cache->cached_results = results;
|
non_global_code_complete_cache->cached_results = results;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1588,7 +1590,7 @@ bool QueryDbMainLoop(
|
|||||||
[global_code_complete_cache]
|
[global_code_complete_cache]
|
||||||
(NonElidedVector<lsCompletionItem> results) {
|
(NonElidedVector<lsCompletionItem> results) {
|
||||||
|
|
||||||
std::cerr << "[complete] Updated global completion cache" << std::endl;
|
std::cerr << "[complete] Updating global_code_complete_cache->cached_results [2]" << std::endl;
|
||||||
// note: path is updated in the normal completion handler.
|
// note: path is updated in the normal completion handler.
|
||||||
global_code_complete_cache->cached_results = results;
|
global_code_complete_cache->cached_results = results;
|
||||||
};
|
};
|
||||||
@ -1664,6 +1666,7 @@ bool QueryDbMainLoop(
|
|||||||
|
|
||||||
signature_cache->cached_path = msg->params.textDocument.uri.GetPath();
|
signature_cache->cached_path = msg->params.textDocument.uri.GetPath();
|
||||||
signature_cache->cached_completion_position = msg->params.position;
|
signature_cache->cached_completion_position = msg->params.position;
|
||||||
|
std::cerr << "[complete] Updating signature_cache->cached_results [3]" << std::endl;
|
||||||
signature_cache->cached_results = results;
|
signature_cache->cached_results = results;
|
||||||
|
|
||||||
delete message;
|
delete message;
|
||||||
|
Loading…
Reference in New Issue
Block a user