|
|
|
@ -1808,7 +1808,7 @@ void Source::LanguageProtocolView::setup_autocomplete() { |
|
|
|
prefix = autocomplete->prefix; |
|
|
|
prefix = autocomplete->prefix; |
|
|
|
} |
|
|
|
} |
|
|
|
for(auto &item : items) { |
|
|
|
for(auto &item : items) { |
|
|
|
auto label = item.string_or("label", ""); |
|
|
|
auto label = item.string_or("filterText", item.string_or("label", "")); |
|
|
|
if(starts_with(label, prefix)) { |
|
|
|
if(starts_with(label, prefix)) { |
|
|
|
auto detail = item.string_or("detail", ""); |
|
|
|
auto detail = item.string_or("detail", ""); |
|
|
|
LanguageProtocol::Documentation documentation(item.child_optional("documentation")); |
|
|
|
LanguageProtocol::Documentation documentation(item.child_optional("documentation")); |
|
|
|
|