diff options
Diffstat (limited to 'Userland/DevTools/HackStudio/Editor.cpp')
-rw-r--r-- | Userland/DevTools/HackStudio/Editor.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/DevTools/HackStudio/Editor.cpp b/Userland/DevTools/HackStudio/Editor.cpp index 1c24611539..4ab856ea18 100644 --- a/Userland/DevTools/HackStudio/Editor.cpp +++ b/Userland/DevTools/HackStudio/Editor.cpp @@ -497,7 +497,7 @@ Optional<Editor::AutoCompleteRequestData> Editor::get_autocomplete_request_data( return Editor::AutoCompleteRequestData { cursor() }; } -void Editor::LanguageServerAidedAutocompleteProvider::provide_completions(Function<void(Vector<Entry>)> callback) +void Editor::LanguageServerAidedAutocompleteProvider::provide_completions(Function<void(Vector<CodeComprehension::AutocompleteResultEntry>)> callback) { auto& editor = static_cast<Editor&>(*m_editor).wrapper().editor(); auto data = editor.get_autocomplete_request_data(); @@ -655,7 +655,7 @@ void Editor::set_language_client_for(CodeDocument const& document) m_language_client = get_language_client<LanguageClients::Shell::ConnectionToServer>(project().root_path()); if (m_language_client) { - m_language_client->on_tokens_info_result = [this](Vector<GUI::AutocompleteProvider::TokenInfo> const& tokens_info) { + m_language_client->on_tokens_info_result = [this](Vector<CodeComprehension::TokenInfo> const& tokens_info) { on_tokens_info_result(tokens_info); }; } @@ -728,7 +728,7 @@ void Editor::on_token_info_timer_tick() m_language_client->get_tokens_info(code_document().file_path()); } -void Editor::on_tokens_info_result(Vector<GUI::AutocompleteProvider::TokenInfo> const& tokens_info) +void Editor::on_tokens_info_result(Vector<CodeComprehension::TokenInfo> const& tokens_info) { auto highlighter = syntax_highlighter(); if (highlighter && highlighter->is_cpp_semantic_highlighter()) { |