diff options
author | AnotherTest <ali.mpfard@gmail.com> | 2020-12-30 13:55:06 +0330 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-12-30 12:53:39 +0100 |
commit | 20b74e4ede98f8c98e43dd3e765272338c183417 (patch) | |
tree | 76cf13673d440c651284799551528f0e478e5252 /DevTools/HackStudio/LanguageClient.cpp | |
parent | 7e457b98c32f58e7f9529878a4e76832aaa80368 (diff) | |
download | serenity-20b74e4ede98f8c98e43dd3e765272338c183417.zip |
LibGUI+HackStudio: Add an opt-in autocompletion interface to TextEditor
...and use that to implement autocomplete in HackStudio.
Now everyone can have autocomplete :^)
Diffstat (limited to 'DevTools/HackStudio/LanguageClient.cpp')
-rw-r--r-- | DevTools/HackStudio/LanguageClient.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/DevTools/HackStudio/LanguageClient.cpp b/DevTools/HackStudio/LanguageClient.cpp index 462f5b9791..a10df6d4b6 100644 --- a/DevTools/HackStudio/LanguageClient.cpp +++ b/DevTools/HackStudio/LanguageClient.cpp @@ -61,7 +61,7 @@ void LanguageClient::request_autocomplete(const String& path, size_t cursor_line m_connection.post_message(Messages::LanguageServer::AutoCompleteSuggestions(path, cursor_line, cursor_column)); } -void LanguageClient::provide_autocomplete_suggestions(const Vector<AutoCompleteResponse>& suggestions) +void LanguageClient::provide_autocomplete_suggestions(const Vector<GUI::AutocompleteProvider::Entry>& suggestions) { if (on_autocomplete_suggestions) on_autocomplete_suggestions(suggestions); |