summaryrefslogtreecommitdiff
path: root/Userland/DevTools/HackStudio/LanguageClient.h
diff options
context:
space:
mode:
authorItamar <itamar8910@gmail.com>2021-06-25 12:36:27 +0300
committerAndreas Kling <kling@serenityos.org>2021-06-25 18:58:34 +0200
commit743157348dbb771c920e64b03ed64da4bbbda98b (patch)
tree7535cc33b01e603f0bbbe7cbfc8e2df7dea4659f /Userland/DevTools/HackStudio/LanguageClient.h
parenteecbcff6af6775f3722a8de1e237c7edf2c03d3d (diff)
downloadserenity-743157348dbb771c920e64b03ed64da4bbbda98b.zip
HackStudio: Add LanguageClient::Language() getter
Diffstat (limited to 'Userland/DevTools/HackStudio/LanguageClient.h')
-rw-r--r--Userland/DevTools/HackStudio/LanguageClient.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/DevTools/HackStudio/LanguageClient.h b/Userland/DevTools/HackStudio/LanguageClient.h
index fcaad65d1c..004bbd2b5f 100644
--- a/Userland/DevTools/HackStudio/LanguageClient.h
+++ b/Userland/DevTools/HackStudio/LanguageClient.h
@@ -65,6 +65,7 @@ public:
template<typename LanguageServerType>
static ServerConnectionWrapper& get_or_create(const String& project_path);
+ Language language() const { return m_language; }
ServerConnection* connection();
void on_crash();
void try_respawn_connection();
@@ -120,6 +121,7 @@ public:
m_connection_wrapper.set_active_client(*m_previous_client);
}
+ Language language() const { return m_connection_wrapper.language(); }
void set_active_client();
virtual void open_file(const String& path, int fd);
virtual void set_file_content(const String& path, const String& content);