aboutsummaryrefslogtreecommitdiff
path: root/lldb/packages/Python/lldbsuite/test
diff options
context:
space:
mode:
authorSam McCall <sam.mccall@gmail.com>2020-03-06 13:34:14 +0100
committerSam McCall <sam.mccall@gmail.com>2020-03-06 13:34:25 +0100
commitc86f794bd555a272f0f74a0b0a48f158e84b26b4 (patch)
tree5d567bdbf234a64b43cecf998ddf123d745716fe /lldb/packages/Python/lldbsuite/test
parentb313897b3e9bc049bb7cada11c237ead77c30e2f (diff)
downloadllvm-c86f794bd555a272f0f74a0b0a48f158e84b26b4.zip
llvm-c86f794bd555a272f0f74a0b0a48f158e84b26b4.tar.gz
llvm-c86f794bd555a272f0f74a0b0a48f158e84b26b4.tar.bz2
[clangd][VSCode] Force VSCode to use the ranking provided by clangd.
Summary: Clangd's approach is to provide lots of completions, and let ranking sort them out. This relies on various important signals (Quality.h), without which the large completion lists are extremely spammy. Even with a completion result exactly at the cursor, vscode looks backwards and tries to match the presumed partial-identifier against filterText, and uses the result to rank, with sortText only used as a tiebreak. By prepending the partial-identifier to the filterText, we can force the match to be perfect and so give sortText full control of the ranking. Full sad story: https://github.com/microsoft/language-server-protocol/issues/898 It's possible to do this on the server side too of course, and switch it on with an initialization option. But it's a little easier in the extension, it will get the fix to users of old clangd versions, and other editors Reviewers: hokein Reviewed By: hokein Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, usaxena95, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D75623
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
0 files changed, 0 insertions, 0 deletions