mirror of
https://github.com/RGBCube/serenity
synced 2025-05-18 02:05:07 +00:00
HackStudio: Use new format functions.
This commit is contained in:
parent
3b601cd4bd
commit
7c4fb2b804
23 changed files with 112 additions and 117 deletions
|
@ -43,16 +43,16 @@ Vector<AutoCompleteResponse> AutoComplete::get_suggestions(const String& code, s
|
|||
return {};
|
||||
|
||||
#ifdef DEBUG_AUTOCOMPLETE
|
||||
dbg() << "Complete '" << code << "': ";
|
||||
dbgln("Complete '{}'", code);
|
||||
ast->dump(1);
|
||||
dbg() << "At offset " << offset;
|
||||
dbgln("At offset {}", offset);
|
||||
#endif
|
||||
|
||||
auto result = ast->complete_for_editor(m_shell, offset);
|
||||
Vector<AutoCompleteResponse> completions;
|
||||
for (auto& entry : result) {
|
||||
#ifdef DEBUG_AUTOCOMPLETE
|
||||
dbg() << "Suggestion: '" << entry.text_string << "' starting at " << entry.input_offset;
|
||||
dbgln("Suggestion: '{}' starting at {}", entry.text_string, entry.input_offset);
|
||||
#endif
|
||||
completions.append({ entry.text_string, entry.input_offset });
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue