1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:27:43 +00:00

CppLanguageServer: Add "get_parameters_hint" capability

Given a call site, the C++ language server can now return the declared
parameters of the called function, as well as the index of the
parameter that the cursor is currently at.
This commit is contained in:
Itamar 2021-07-03 11:55:54 +03:00 committed by Andreas Kling
parent 232013c05b
commit 32be65a8b4
9 changed files with 181 additions and 2 deletions

View file

@ -4,4 +4,5 @@ endpoint LanguageClient
declaration_location(GUI::AutocompleteProvider::ProjectLocation location) =|
declarations_in_document(String filename, Vector<GUI::AutocompleteProvider::Declaration> declarations) =|
todo_entries_in_document(String filename, Vector<Cpp::Parser::TodoEntry> todo_entries) =|
parameters_hint_result(Vector<String> params, int current_index) =|
}