mirror of
https://github.com/RGBCube/serenity
synced 2025-06-03 00:18:12 +00:00

The language server keeps track of the content of currently edited files by receiving updates about edit actions. Also, C++ autocompletion is no longer tied to HackStudio itself and moved to be part of the language server.
11 lines
495 B
Text
11 lines
495 B
Text
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)
|
|
}
|