mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 16:07:46 +00:00
LibIPC: Stop sending client ID to clients
The client ID is not useful to normal clients anymore, so stop telling everyone what their ID is.
This commit is contained in:
parent
a5bbe3280d
commit
1ce03f4f34
29 changed files with 27 additions and 42 deletions
|
@ -62,8 +62,7 @@ public:
|
|||
|
||||
virtual void handshake() override
|
||||
{
|
||||
auto response = send_sync<Messages::LanguageServer::Greet>();
|
||||
set_my_client_id(response->client_id());
|
||||
send_sync<Messages::LanguageServer::Greet>();
|
||||
}
|
||||
|
||||
WeakPtr<LanguageClient> language_client() { return m_language_client; }
|
||||
|
|
|
@ -54,7 +54,7 @@ void ClientConnection::die()
|
|||
|
||||
OwnPtr<Messages::LanguageServer::GreetResponse> ClientConnection::handle(const Messages::LanguageServer::Greet&)
|
||||
{
|
||||
return make<Messages::LanguageServer::GreetResponse>(client_id());
|
||||
return make<Messages::LanguageServer::GreetResponse>();
|
||||
}
|
||||
|
||||
class DefaultDocumentClient final : public GUI::TextDocument::Client {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
endpoint LanguageServer = 8001
|
||||
{
|
||||
Greet() => (i32 client_id)
|
||||
Greet() => ()
|
||||
|
||||
FileOpened(String file_name, IPC::File file) =|
|
||||
FileEditInsertText(String file_name, String text, i32 start_line, i32 start_column) =|
|
||||
|
|
|
@ -53,7 +53,7 @@ void ClientConnection::die()
|
|||
|
||||
OwnPtr<Messages::LanguageServer::GreetResponse> ClientConnection::handle(const Messages::LanguageServer::Greet&)
|
||||
{
|
||||
return make<Messages::LanguageServer::GreetResponse>(client_id());
|
||||
return make<Messages::LanguageServer::GreetResponse>();
|
||||
}
|
||||
|
||||
class DefaultDocumentClient final : public GUI::TextDocument::Client {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue