-
Notifications
You must be signed in to change notification settings - Fork 813
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Call Hierarchy #468
Comments
Cquery has an extension for this. Perhaps a god place to start: |
See also the discussion here microsoft/vscode-languageserver-node#346 about and idea to how more general implement this. |
…y protocol. Links: microsoft/language-server-protocol#468 microsoft/vscode-languageserver-node#420 Signed-off-by: Alex Tugarev <alex.tugarev@typefox.io>
… protocol. Links: microsoft/language-server-protocol#468 microsoft/vscode-languageserver-node#420 Signed-off-by: Alex Tugarev <alex.tugarev@typefox.io>
… protocol. Links: microsoft/language-server-protocol#468 microsoft/vscode-languageserver-node#420 Signed-off-by: Alex Tugarev <alex.tugarev@typefox.io>
… protocol. Links: microsoft/language-server-protocol#468 microsoft/vscode-languageserver-node#420 Signed-off-by: Alex Tugarev <alex.tugarev@typefox.io>
… protocol. Links: microsoft/language-server-protocol#468 microsoft/vscode-languageserver-node#420 Signed-off-by: Alex Tugarev <alex.tugarev@typefox.io>
… protocol. Links: microsoft/language-server-protocol#468 microsoft/vscode-languageserver-node#420 Signed-off-by: Alex Tugarev <alex.tugarev@typefox.io>
… protocol. Links: microsoft/language-server-protocol#468 microsoft/vscode-languageserver-node#420 Signed-off-by: Alex Tugarev <alex.tugarev@typefox.io>
… protocol. Links: microsoft/language-server-protocol#468 microsoft/vscode-languageserver-node#420 Signed-off-by: Alex Tugarev <alex.tugarev@typefox.io>
… protocol. Links: microsoft/language-server-protocol#468 microsoft/vscode-languageserver-node#420 Signed-off-by: Alex Tugarev <alex.tugarev@typefox.io>
… protocol. Links: microsoft/language-server-protocol#468 microsoft/vscode-languageserver-node#420 Signed-off-by: Alex Tugarev <alex.tugarev@typefox.io>
This is now implemented in rust analyzer: rust-lang/rust-analyzer#2698 |
I am implementing this new API in the C++ language server clangd, and I have run into an issue: The API consists of an initial If the language server uses some sort of internal identifier to identify entities (such as functions) in the workspace, there is no way with the current API to "stash" such an identifier in a There is a type hierarchy proposal which has a lot in common with this call hierarchy proposal, including having Could such a |
Added the data property. Also closing the issue since call hierarchies are part of the upcoming 3.16.0 spec. |
The LSP should define a request from the client to server to obtain callers for a definition as well as obtaining the containing callable definitions (e.g. containing method declaration).
Based on that an editor can provide a call hierarchy helping the user to understand the code better.
The text was updated successfully, but these errors were encountered: