-
Notifications
You must be signed in to change notification settings - Fork 812
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
Annotate references with the name of the entity they occur in #396
Comments
I like the idea. |
Having a separate |
From #1155: a preview in a reference structure would be helpful as well. |
I think this proposal could also help in #763 Another implementation to consider, at least for backward-compatibility, is to keep the current
|
It's equally BC to extend the Location interface with new props isn't it? Old usages can ignore the new props. Less data nesting that way. |
@foolmoron |
See #1911 for a generalization of 'references' queries to allow servers to offer a variety of other queries that take the same form of input (a selection) and produce the same form of results (a set of [annotated] source locations) so that the client can re-use the same UI machinery for all of them. |
The response to
textDocument/references
is currently justLocation[] | null
.However, clients may want to show, for each reference, information such as the name of the entity (e.g. function or class) in which the reference occurs, which they cannot easily compute on the client side.
Could the protocol be extended so the response is something like
Reference[] | null
, whereReference
contains both aLocation
and possibly extra information like the name of the containing entity?The text was updated successfully, but these errors were encountered: