mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 06:28:13 +00:00
Userland: Change IPC funcs to use plain arguments instead of a struct
Instead of having a single overloaded handle method each method gets its own unique method name now.
This commit is contained in:
parent
d47f15ab8b
commit
065040872f
50 changed files with 897 additions and 839 deletions
|
@ -26,10 +26,10 @@ public:
|
|||
virtual ~ClientConnection() override = default;
|
||||
|
||||
private:
|
||||
virtual void handle(const Messages::LanguageServer::SetAutoCompleteMode& message) override
|
||||
virtual void set_auto_complete_mode(String const& mode) override
|
||||
{
|
||||
dbgln_if(CPP_LANGUAGE_SERVER_DEBUG, "SetAutoCompleteMode: {}", message.mode());
|
||||
if (message.mode() == "Parser")
|
||||
dbgln_if(CPP_LANGUAGE_SERVER_DEBUG, "SetAutoCompleteMode: {}", mode);
|
||||
if (mode == "Parser")
|
||||
m_autocomplete_engine = make<ParserAutoComplete>(*this, m_filedb);
|
||||
else
|
||||
m_autocomplete_engine = make<LexerAutoComplete>(*this, m_filedb);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue