[clangd] Include debugging tags for both static and dynamic index. NFC
llvm-svn: 322379
This commit is contained in:
parent
3b9843f0ff
commit
93483e7f39
|
@ -671,10 +671,10 @@ CompletionList codeComplete(const Context &Ctx, PathRef FileName,
|
|||
// engine).
|
||||
if (Opts.Index)
|
||||
completeWithIndex(Ctx, *Opts.Index, Contents, *CompletedName.SSInfo,
|
||||
CompletedName.Filter, &Results);
|
||||
CompletedName.Filter, &Results, /*DebuggingLabel=*/"D");
|
||||
if (Opts.StaticIndex)
|
||||
completeWithIndex(Ctx, *Opts.StaticIndex, Contents, *CompletedName.SSInfo,
|
||||
CompletedName.Filter, &Results, /*DebuggingLabel=*/"G");
|
||||
CompletedName.Filter, &Results, /*DebuggingLabel=*/"S");
|
||||
}
|
||||
return Results;
|
||||
}
|
||||
|
|
|
@ -526,8 +526,8 @@ TEST(CompletionTest, StaticAndDynamicIndex) {
|
|||
void f() { ::ns::^ }
|
||||
)cpp",
|
||||
Opts);
|
||||
EXPECT_THAT(Results.items, Contains(Labeled("[G]XYZ")));
|
||||
EXPECT_THAT(Results.items, Contains(Labeled("foo")));
|
||||
EXPECT_THAT(Results.items, Contains(Labeled("[S]XYZ")));
|
||||
EXPECT_THAT(Results.items, Contains(Labeled("[D]foo")));
|
||||
}
|
||||
|
||||
TEST(CompletionTest, SimpleIndexBased) {
|
||||
|
|
Loading…
Reference in New Issue