1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:28:12 +00:00

HackStudio: Integate with C++ parser-based autocomplete

By default, C++ auto completion will still be performed by the
lexer-based logic.
However, the parser-based logic can be switched on via the menubar.
This commit is contained in:
Itamar 2021-01-23 16:55:19 +02:00 committed by Andreas Kling
parent 8ed96eb27c
commit fa18010477
14 changed files with 70 additions and 11 deletions

View file

@ -25,6 +25,7 @@
*/
#include "LanguageClient.h"
#include "DevTools/HackStudio/LanguageServers/LanguageServerEndpoint.h"
#include <AK/String.h>
#include <AK/Vector.h>
@ -72,4 +73,9 @@ void LanguageClient::provide_autocomplete_suggestions(const Vector<GUI::Autocomp
// Otherwise, drop it on the floor :shrug:
}
void LanguageClient::set_autocomplete_mode(const String& mode)
{
m_connection.post_message(Messages::LanguageServer::SetAutoCompleteMode(mode));
}
}