diff options
| author | Ilya Biryukov <ibiryukov@google.com> | 2017-12-29 14:59:22 +0000 |
|---|---|---|
| committer | Ilya Biryukov <ibiryukov@google.com> | 2017-12-29 14:59:22 +0000 |
| commit | 5a5e1caf25e6869694b3f3c78990a4eddfe3b620 (patch) | |
| tree | e6d4e39927213904aeb87253c57478369a080728 /clang-tools-extra/clangd/CodeComplete.cpp | |
| parent | c701596e8613f5083ada201c3c658623c9b4f234 (diff) | |
| download | bcm5719-llvm-5a5e1caf25e6869694b3f3c78990a4eddfe3b620.tar.gz bcm5719-llvm-5a5e1caf25e6869694b3f3c78990a4eddfe3b620.zip | |
[clangd] Properly set filterText for index-based completion items
It was previously set to an identifier that the user typed, leading to
surprising behavior in VSCode (probably in other editors too).
llvm-svn: 321554
Diffstat (limited to 'clang-tools-extra/clangd/CodeComplete.cpp')
| -rw-r--r-- | clang-tools-extra/clangd/CodeComplete.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/clangd/CodeComplete.cpp b/clang-tools-extra/clangd/CodeComplete.cpp index 87f73b20505..28ea4dbb68e 100644 --- a/clang-tools-extra/clangd/CodeComplete.cpp +++ b/clang-tools-extra/clangd/CodeComplete.cpp @@ -558,7 +558,7 @@ CompletionItem indexCompletionItem(const Symbol &Sym, llvm::StringRef Filter, Item.insertText = Sym.Name; // FIXME(ioeric): support snippets. Item.insertTextFormat = InsertTextFormat::PlainText; - Item.filterText = Filter; + Item.filterText = Sym.Name; // FIXME(ioeric): sort symbols appropriately. Item.sortText = ""; |

