mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 23:59:49 +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
Notes:
sideshowbarker
2024-07-19 02:05:43 +09:00
Author: https://github.com/alimpfard
Commit: ac5e08a541
Pull-request: https://github.com/SerenityOS/serenity/pull/3656
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/itamar8910
17 changed files with 291 additions and 118 deletions
|
@ -1,11 +0,0 @@
|
|||
endpoint CppLanguageServer = 8001
|
||||
{
|
||||
Greet(String project_root) => (i32 client_id)
|
||||
|
||||
FileOpened(String file_name) =|
|
||||
FileEditInsertText(String file_name, String text, i32 start_line, i32 start_column) =|
|
||||
FileEditRemoveText(String file_name, i32 start_line, i32 start_column, i32 end_line, i32 end_column) =|
|
||||
SetFileContent(String file_name, String content) =|
|
||||
|
||||
AutoCompleteSuggestions(String file_name, i32 cursor_line, i32 cursor_column) => (Vector<String> suggestions)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue