mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
HackStudio: Add LanguageClient::Language() getter
This commit is contained in:
Notes:
sideshowbarker
2024-07-18 11:31:58 +09:00
Author: https://github.com/itamar8910 Commit: https://github.com/SerenityOS/serenity/commit/743157348db Pull-request: https://github.com/SerenityOS/serenity/pull/8243
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user