Monaco-editor: DocumentSymbol are not exposed by DocumentSymbolProvider

Created on 2 Aug 2018  路  6Comments  路  Source: microsoft/monaco-editor

*question

All 6 comments

@akosyakov Not sure, what do you mean?

DocumentSymbolProvider.provideDocumentSymbols returns only SymbolInformation, but in VS Code api it supports DocumentSymbol as well.
https://github.com/Microsoft/monaco-editor/blob/946bbab82041aad76c2d571d707483621804a837/monaco.d.ts#L4866-L4875

I don't think there's any real ask here besides that we ship a new version of the editor?

The monaco.d.ts in the pipeline will contain this:

https://github.com/Microsoft/vscode/blob/dcd17d8b8b6930f9a1547c2322ae2fdb3dcdf2a8/src/vs/monaco.d.ts#L5012:L5018

@alexandrudima I've noticed that SymbolInformation is still there, but is not used. Is it on purpose or DocumentSymbolProvider should return DocumentSymbol or SymbolInformation to be backward compatible?

@akosyakov I can't find any SymbolInformation in the monaco.d.ts from master. I'm not sure what the real change is here. @jrieken can you please explain what the change is.

for the standalone editor SymbolInformation has been replaced with DocumentSymbol. @akosyakov you must be looking at the wrong thing.

Was this page helpful?
0 / 5 - 0 ratings