Skip to content

Multi-Document-Information in DocumentSymbolsRequest #1149

Description

@Trias

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    info-neededIssue requires more information from poster

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions