1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 09:07:35 +00:00

HackStudio: Add LanguageClient::Language() getter

This commit is contained in:
Itamar 2021-06-25 12:36:27 +03:00 committed by Andreas Kling
parent eecbcff6af
commit 743157348d

View file

@ -65,6 +65,7 @@ public:
template<typename LanguageServerType> template<typename LanguageServerType>
static ServerConnectionWrapper& get_or_create(const String& project_path); static ServerConnectionWrapper& get_or_create(const String& project_path);
Language language() const { return m_language; }
ServerConnection* connection(); ServerConnection* connection();
void on_crash(); void on_crash();
void try_respawn_connection(); void try_respawn_connection();
@ -120,6 +121,7 @@ public:
m_connection_wrapper.set_active_client(*m_previous_client); m_connection_wrapper.set_active_client(*m_previous_client);
} }
Language language() const { return m_connection_wrapper.language(); }
void set_active_client(); void set_active_client();
virtual void open_file(const String& path, int fd); virtual void open_file(const String& path, int fd);
virtual void set_file_content(const String& path, const String& content); virtual void set_file_content(const String& path, const String& content);