Skip to content

Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.

Merge main into fix/issue-2078 for the release batch

Martin Vogelaf015311be9b
diff --cc internal/cbm/lsp/c_lsp.c
index 73141b0f6,29fd12284..a6760fd7d
--- a/internal/cbm/lsp/c_lsp.c
+++ b/internal/cbm/lsp/c_lsp.c
@@@ -6098,10 -6750,10 +6750,10 @@@ bool cbm_run_c_lsp_cross_with_registry_
if (!tree) {
parser = ts_parser_new();
if (!parser)
- return;
+ return false;
const TSLanguage *ts_lang = cpp_mode ? tree_sitter_cpp() : tree_sitter_c();
ts_parser_set_language(parser, ts_lang);
- tree = ts_parser_parse_string(parser, NULL, source, source_len);
+ tree = cbm_parse_source(parser, source, (uint32_t)source_len, (TSParseOptions){0});
ts_parser_delete(parser);
owns_tree = true;
if (!tree)
@@@ -6148,10 -6820,10 +6820,10 @@@ bool cbm_run_c_lsp_cross_with_test_owne
if (!tree) {
parser = ts_parser_new();
if (!parser)
- return;
+ return false;
const TSLanguage *ts_lang = cpp_mode ? tree_sitter_cpp() : tree_sitter_c();
ts_parser_set_language(parser, ts_lang);
- tree = ts_parser_parse_string(parser, NULL, source, source_len);
+ tree = cbm_parse_source(parser, source, (uint32_t)source_len, (TSParseOptions){0});
ts_parser_delete(parser);
owns_tree = true;
if (!tree)