diff options
| author | Sam McCall <sam.mccall@gmail.com> | 2017-12-01 16:35:50 +0000 |
|---|---|---|
| committer | Sam McCall <sam.mccall@gmail.com> | 2017-12-01 16:35:50 +0000 |
| commit | 9fbecd5b0dc4eded9846e35590bf5224f8cb9dce (patch) | |
| tree | de94d391618b5a81e7300bb0826f6fd977dfd260 /clang-tools-extra/test | |
| parent | 904d1a895c52bb5e1630703b7ed1a7a8e0255e05 (diff) | |
| download | bcm5719-llvm-9fbecd5b0dc4eded9846e35590bf5224f8cb9dce.tar.gz bcm5719-llvm-9fbecd5b0dc4eded9846e35590bf5224f8cb9dce.zip | |
[clangd] Filter completion results by fuzzy-matching identifiers.
Summary:
This allows us to limit the number of results we return and still allow them
to be surfaced by refining a query (D39852).
The initial algorithm is very conservative - it accepts a completion if the
filter is any case-insensitive sub-sequence. It does not attempt to rank items
based on match quality.
Reviewers: ilya-biryukov
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D39882
llvm-svn: 319552
Diffstat (limited to 'clang-tools-extra/test')
| -rw-r--r-- | clang-tools-extra/test/clangd/completion-items-kinds.test | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/test/clangd/completion-items-kinds.test b/clang-tools-extra/test/clangd/completion-items-kinds.test index ee6a2724aa7..80a5a4edeb3 100644 --- a/clang-tools-extra/test/clangd/completion-items-kinds.test +++ b/clang-tools-extra/test/clangd/completion-items-kinds.test @@ -30,7 +30,7 @@ Content-Length: 148 # CHECK-SAME: ]}}
Content-Length: 146
-{"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"uri":"file:///main.cpp","languageId":"cpp","version":1,"text":"whi"}}}
+{"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"uri":"file:///main.cpp","languageId":"cpp","version":1,"text":"nam"}}}
Content-Length: 148
{"jsonrpc":"2.0","id":2,"method":"textDocument/completion","params":{"textDocument":{"uri":"file:///main.cpp"},"position":{"line":1,"character":3}}}
|

