mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 01:47:36 +00:00
LibGUI+HackStudio: Add an opt-in autocompletion interface to TextEditor
...and use that to implement autocomplete in HackStudio. Now everyone can have autocomplete :^)
This commit is contained in:
parent
7e457b98c3
commit
20b74e4ede
19 changed files with 211 additions and 162 deletions
|
@ -34,8 +34,6 @@
|
|||
|
||||
namespace LanguageServers::Shell {
|
||||
|
||||
using namespace ::HackStudio;
|
||||
|
||||
class AutoComplete {
|
||||
public:
|
||||
AutoComplete()
|
||||
|
@ -43,7 +41,7 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
Vector<AutoCompleteResponse> get_suggestions(const String& code, size_t autocomplete_position);
|
||||
Vector<GUI::AutocompleteProvider::Entry> get_suggestions(const String& code, size_t autocomplete_position);
|
||||
|
||||
private:
|
||||
NonnullRefPtr<::Shell::Shell> m_shell;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue