[gnome-builder] plugins/clang: always include item kind for filter
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] plugins/clang: always include item kind for filter
- Date: Sat, 3 Sep 2022 00:24:19 +0000 (UTC)
commit ceb80bf8898918e3770577f3ff8969ab0d8cef15
Author: Christian Hergert <chergert redhat com>
Date: Fri Sep 2 17:24:04 2022 -0700
plugins/clang: always include item kind for filter
This wasn't done before either, and it would be nice to rely on that kind
field in all cases, including when doing the supplimental fast filter.
src/plugins/clang/ide-clang-proposals.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/src/plugins/clang/ide-clang-proposals.c b/src/plugins/clang/ide-clang-proposals.c
index 703d754ce..804dd02dd 100644
--- a/src/plugins/clang/ide-clang-proposals.c
+++ b/src/plugins/clang/ide-clang-proposals.c
@@ -382,12 +382,16 @@ ide_clang_proposals_do_refilter (IdeClangProposals *self,
item->ref = results_get_at (self->results_ref, i);
item->priority = i;
- item->kind = 0;
if (proposal_lookup (item->ref, "keyword", NULL, &v))
item->keyword = variant_get_string (v);
else
item->keyword = "";
+
+ if (proposal_lookup (item->ref, "kind", NULL, &v))
+ item->kind = kind_priority (variant_get_uint32 (v));
+ else
+ item->kind = 0;
}
}
else if (self->results != NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]