mirror of
https://github.com/MaskRay/ccls.git
synced 2025-01-31 18:00:26 +00:00
Fix code lens for variable instantiations
This commit is contained in:
parent
11d6623938
commit
5ef4f55053
@ -1513,7 +1513,7 @@ void QueryDbMainLoop(
|
||||
QueryType& type = db->types[symbol.idx];
|
||||
AddCodeLens(&common, ref.loc.OffsetStartColumn(0), type.uses, "ref", "refs");
|
||||
AddCodeLens(&common, ref.loc.OffsetStartColumn(1), ToQueryLocation(db, type.derived), "derived", "derived");
|
||||
AddCodeLens(&common, ref.loc.OffsetStartColumn(2), ToQueryLocation(db, type.instantiations), "instantiation", "instantiations");
|
||||
AddCodeLens(&common, ref.loc.OffsetStartColumn(2), ToQueryLocation(db, type.instantiations), "var", "vars");
|
||||
break;
|
||||
}
|
||||
case SymbolKind::Func: {
|
||||
|
@ -674,6 +674,7 @@ void QueryDatabase::ApplyIndexUpdate(IndexUpdate* update) {
|
||||
RemoveUsrs(update->types_removed);
|
||||
ImportOrUpdate(update->types_def_update);
|
||||
HANDLE_MERGEABLE(types_derived, derived, types);
|
||||
HANDLE_MERGEABLE(types_instantiations, instantiations, types);
|
||||
HANDLE_MERGEABLE(types_uses, uses, types);
|
||||
|
||||
RemoveUsrs(update->funcs_removed);
|
||||
|
Loading…
Reference in New Issue
Block a user