[PATCH] D74547: [clangd] Expose Code Completion score to the client
Sam McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 13 05:31:25 PST 2020
sammccall accepted this revision.
sammccall added inline comments.
This revision is now accepted and ready to land.
================
Comment at: clang-tools-extra/clangd/Protocol.h:1100
+ /// NOTE: This excludes fuzzy matching score which is typically calculated on
+ /// the client side.
+ float score = 0.f;
----------------
/// This is a clangd extension.
================
Comment at: clang-tools-extra/clangd/test/completion-auto-trigger.test:27
# CHECK-NEXT: "label": " size",
+# CHECK-NEXT: "score": 13.200000762939453,
# CHECK-NEXT: "sortText": "{{.*}}size",
----------------
let's not include the value (note we don't in sortText either, which contains the encoded float)
Use `{{.*}}`
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D74547/new/
https://reviews.llvm.org/D74547
More information about the cfe-commits
mailing list