mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 06:48:12 +00:00

The C++ LanguageServer can now find the matching declaration for variable names, function calls, struct/class types and properties. When clicking on one of the above with Ctrl pressed, HackStudio will ask the language server to find a matching declaration, and navigate to the result in the Editor. :^)
14 lines
570 B
Text
14 lines
570 B
Text
endpoint LanguageServer = 8001
|
|
{
|
|
Greet(String project_root) => ()
|
|
|
|
FileOpened(String file_name, IPC::File file) =|
|
|
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) =|
|
|
SetAutoCompleteMode(String mode) =|
|
|
FindDeclaration(String file_name, i32 line, i32 column) =|
|
|
|
|
}
|