mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:28:12 +00:00
HackStudio: Abstract away language-server details
This commit moves all the logic that deals with the language server (from HackStudio) into a LanguageClient class, provides some functions to make constructing them easier, and makes all language servers use a singular IPC definition. Also fixes the FIXME about making the autocompletion async. This makes adding language servers in the future significantly less duplicate-y, and significantly easier :^)
This commit is contained in:
parent
44f9637e20
commit
ac5e08a541
17 changed files with 291 additions and 118 deletions
|
@ -27,7 +27,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "EditorWrapper.h"
|
||||
#include "LanguageClients/Cpp/ServerConnection.h"
|
||||
#include "LanguageClients/ServerConnections.h"
|
||||
#include "Project.h"
|
||||
#include <AK/String.h>
|
||||
#include <LibGUI/TextEditor.h>
|
||||
|
@ -41,6 +41,5 @@ void open_file(const String&);
|
|||
Project& project();
|
||||
String currently_open_file();
|
||||
void set_current_editor_wrapper(RefPtr<EditorWrapper>);
|
||||
LanguageClients::Cpp::ServerConnection& cpp_Language_server_connection();
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue