summaryrefslogtreecommitdiff
path: root/Userland/DevTools/HackStudio/LanguageClients/ServerConnections.h
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/DevTools/HackStudio/LanguageClients/ServerConnections.h')
-rw-r--r--Userland/DevTools/HackStudio/LanguageClients/ServerConnections.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/Userland/DevTools/HackStudio/LanguageClients/ServerConnections.h b/Userland/DevTools/HackStudio/LanguageClients/ServerConnections.h
index 89266e37ca..d26f32f272 100644
--- a/Userland/DevTools/HackStudio/LanguageClients/ServerConnections.h
+++ b/Userland/DevTools/HackStudio/LanguageClients/ServerConnections.h
@@ -32,10 +32,13 @@
#include <DevTools/HackStudio/LanguageServers/LanguageServerEndpoint.h>
#include <LibIPC/ServerConnection.h>
-#define LANGUAGE_CLIENT(namespace_, socket_name) \
- namespace namespace_ { \
+#define LANGUAGE_CLIENT(language_name_, socket_name) \
+ namespace language_name_ { \
class ServerConnection : public HackStudio::ServerConnection { \
C_OBJECT(ServerConnection) \
+ public: \
+ static const char* language_name() { return #language_name_; } \
+ \
private: \
ServerConnection(const String& project_path) \
: HackStudio::ServerConnection("/tmp/portal/language/" #socket_name, project_path) \