mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:27:45 +00:00
HackStudio: Add LanguageClient::Language() getter
This commit is contained in:
parent
eecbcff6af
commit
743157348d
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue