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?
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?