mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 23:55: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];
|
QueryType& type = db->types[symbol.idx];
|
||||||
if (!type.def)
|
if (!type.def)
|
||||||
continue;
|
continue;
|
||||||
|
if (type.def->kind == ClangSymbolKind::Namespace)
|
||||||
|
continue;
|
||||||
AddCodeLens("ref", "refs", &common, ref.loc.OffsetStartColumn(0),
|
AddCodeLens("ref", "refs", &common, ref.loc.OffsetStartColumn(0),
|
||||||
type.uses, type.def->definition_spelling,
|
type.uses, type.def->definition_spelling,
|
||||||
true /*force_display*/);
|
true /*force_display*/);
|
||||||
|
Loading…
Reference in New Issue
Block a user