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
Notes: sideshowbarker 2024-07-18 11:31:58 +09:00

View File

@@ -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);