[clangd][ObjC] Fix issue completing a method decl by name
authorDavid Goldman <davg@google.com>
Mon, 19 Apr 2021 20:38:37 +0000 (16:38 -0400)
committerDavid Goldman <davg@google.com>
Tue, 1 Jun 2021 17:35:05 +0000 (13:35 -0400)
commit2a030e680e0812c652ed4ae2b012e285a5514ffa
treef338eaf6f371294382def433df7f5053812e8a90
parent1b748faf2bae246e2fc77d88420df13c2e60f4df
[clangd][ObjC] Fix issue completing a method decl by name

When completing an Objective-C method declaration by name, we need to
preserve the leading text as a `qualifier` so we insert it properly
before the first typed text chunk.

Differential Revision: https://reviews.llvm.org/D100798
clang-tools-extra/clangd/CodeCompletionStrings.cpp
clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp