mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 15:45:08 +00:00
Do not show code lens on namespaces.
There are too many references for editors to handle well.
This commit is contained in:
parent
684ad961ad
commit
d14f17212d
@ -152,6 +152,8 @@ struct TextDocumentCodeLensHandler
|
||||
QueryType& type = db->types[symbol.idx];
|
||||
if (!type.def)
|
||||
continue;
|
||||
if (type.def->kind == ClangSymbolKind::Namespace)
|
||||
continue;
|
||||
AddCodeLens("ref", "refs", &common, ref.loc.OffsetStartColumn(0),
|
||||
type.uses, type.def->definition_spelling,
|
||||
true /*force_display*/);
|
||||
|
Loading…
Reference in New Issue
Block a user