menu
announcement

Spectrum is now read-only. Learn more about the decision in our official announcement.

Theia

Eclipse Theia - Cloud & Desktop IDE

Channels
Team

Outline view and DocumentSymbols

January 11, 2019 at 1:12pm

Outline view and DocumentSymbols

January 11, 2019 at 1:12pm
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

January 14, 2019 at 7:19am
Do you have an easy setup to reproduce it?
you can debug your document symbol provider and see whether symbols arrived and why they are ignored
like-fill
1