Outline view and DocumentSymbols

Hi,

I’m trying to get outline view to work in Theia with my language server (I’m using LSP4J). I am returning a single test-DocumentSymbol in the method public CompletableFuture<List<Either<SymbolInformation, DocumentSymbol>>> documentSymbol(DocumentSymbolParams params) of TextDocumentService. The method is called, however Theia does show “No outline information available.” in the outline view.

Any ideas on how to fix that? Which attributes do I need to set on DocumentSymbol in order for it to show up in the outline?

Cheers,

Julian

[original thread by Julian Dax]

Do you have an easy setup to reproduce it?

Symbols are fetched here: https://github.com/theia-ide/theia/blob/29795f26d761b0f8cd5aff5befa6e627b3d53556/packages/monaco/src/browser/monaco-outline-contribution.ts#L144

you can debug your document symbol provider and see whether symbols arrived and why they are ignored