diff options
Diffstat (limited to 'Userland/DevTools/HackStudio/LanguageServers')
-rw-r--r-- | Userland/DevTools/HackStudio/LanguageServers/ClientConnection.cpp | 4 | ||||
-rw-r--r-- | Userland/DevTools/HackStudio/LanguageServers/ClientConnection.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Userland/DevTools/HackStudio/LanguageServers/ClientConnection.cpp b/Userland/DevTools/HackStudio/LanguageServers/ClientConnection.cpp index 6346f865e3..9080a6a908 100644 --- a/Userland/DevTools/HackStudio/LanguageServers/ClientConnection.cpp +++ b/Userland/DevTools/HackStudio/LanguageServers/ClientConnection.cpp @@ -30,7 +30,7 @@ void ClientConnection::die() exit(0); } -OwnPtr<Messages::LanguageServer::GreetResponse> ClientConnection::handle(const Messages::LanguageServer::Greet& message) +Messages::LanguageServer::GreetResponse ClientConnection::handle(const Messages::LanguageServer::Greet& message) { m_filedb.set_project_root(message.project_root()); if (unveil(message.project_root().characters(), "r") < 0) { @@ -41,7 +41,7 @@ OwnPtr<Messages::LanguageServer::GreetResponse> ClientConnection::handle(const M perror("unveil"); exit(1); } - return make<Messages::LanguageServer::GreetResponse>(); + return {}; } void ClientConnection::handle(const Messages::LanguageServer::FileOpened& message) diff --git a/Userland/DevTools/HackStudio/LanguageServers/ClientConnection.h b/Userland/DevTools/HackStudio/LanguageServers/ClientConnection.h index d0b1b16610..092264898e 100644 --- a/Userland/DevTools/HackStudio/LanguageServers/ClientConnection.h +++ b/Userland/DevTools/HackStudio/LanguageServers/ClientConnection.h @@ -29,7 +29,7 @@ public: virtual void die() override; protected: - virtual OwnPtr<Messages::LanguageServer::GreetResponse> handle(const Messages::LanguageServer::Greet&) override; + virtual Messages::LanguageServer::GreetResponse handle(const Messages::LanguageServer::Greet&) override; virtual void handle(const Messages::LanguageServer::FileOpened&) override; virtual void handle(const Messages::LanguageServer::FileEditInsertText&) override; virtual void handle(const Messages::LanguageServer::FileEditRemoveText&) override; |