mirror of
https://github.com/MaskRay/ccls.git
synced 2025-01-31 09:50:26 +00:00
parent
2a9e0b4575
commit
1e3815db2d
@ -79,7 +79,8 @@ void DecorateIncludePaths(const std::smatch& match,
|
||||
|
||||
for (lsCompletionItem& item : *items) {
|
||||
item.textEdit->newText = prefix + item.textEdit->newText + suffix;
|
||||
item.label = prefix + item.label.substr(7) + suffix;
|
||||
item.label = prefix + item.label + suffix;
|
||||
item.filterText = item.label;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -255,9 +255,8 @@ struct TextDocumentCompletionHandler : MessageHandler {
|
||||
}
|
||||
|
||||
// Needed by |FilterAndSortCompletionResponse|.
|
||||
// Will be removed in |DecorateIncludePaths|.
|
||||
for (lsCompletionItem& item : out.result.items)
|
||||
item.label = "include" + item.label;
|
||||
item.filterText = "include" + item.label;
|
||||
|
||||
FilterAndSortCompletionResponse(&out, result.text,
|
||||
config->completion.filterAndSort);
|
||||
|
Loading…
Reference in New Issue
Block a user