From 743157348dbb771c920e64b03ed64da4bbbda98b Mon Sep 17 00:00:00 2001 From: Itamar Date: Fri, 25 Jun 2021 12:36:27 +0300 Subject: [PATCH] HackStudio: Add LanguageClient::Language() getter --- Userland/DevTools/HackStudio/LanguageClient.h | 2 ++ 1 file changed, 2 insertions(+) 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 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);