You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not a feature request as such, but rather I'm asking for advice on how to model our use case in lsp.
We want to display nested, but multi-document (think: inheritance) symbol-Information with textDocument/symbols.
DocumentSymbols defines two response-types: SymbolInformation[], which represents a flat list with a location-Field and DocumentSymbol[] which defines a hierarchical representation.
Now first choice would be the hierarchical representation, but it implies that all ranges point to the current document. SymbolInformation on the other hand does explicitly forbid infering hierarchical structures, but allows location in other doucments. It accepts a containerName, however this is apparently only intended to be used for grouping.
Is it possible to represent our use case in LSP without abusing the protocol? If not, how would an Interface look like which is acceptable to the lsp spec?
The text was updated successfully, but these errors were encountered:
yes i believe this is a good match. With the caveat that we dont plan to use position-dependent information. Maybe we can integrate this use case into the proposal? i.E. make range optional to display document-level type-hierarchies?
As the PR is closed but not merged and this is as i understand not yet part of the spec, can you tell me what the status of this proposal is?
yes i think my question has been answered, although i would of course prefer that lsp would provide such a request type. I'm going with a custom solution now.
This is not a feature request as such, but rather I'm asking for advice on how to model our use case in lsp.
We want to display nested, but multi-document (think: inheritance) symbol-Information with
textDocument/symbols
.DocumentSymbols defines two response-types:
SymbolInformation[]
, which represents a flat list with alocation
-Field andDocumentSymbol[]
which defines a hierarchical representation.Now first choice would be the hierarchical representation, but it implies that all ranges point to the current document. SymbolInformation on the other hand does explicitly forbid infering hierarchical structures, but allows location in other doucments. It accepts a
containerName
, however this is apparently only intended to be used for grouping.Is it possible to represent our use case in LSP without abusing the protocol? If not, how would an Interface look like which is acceptable to the lsp spec?
The text was updated successfully, but these errors were encountered: