microsoft / vscode-css-languageservice

CSS, LESS & SCSS language service extracted from VSCode to be reused, e.g in the Monaco editor.
MIT License
319 stars 177 forks source link

Support for DocumentSymbol format #277

Closed dummdidumm closed 2 years ago

dummdidumm commented 2 years ago

findDocumentSymbols does return an array of SymbolInformation, which is deprecated in favor of DocumentSymbol (and WorkspaceSymbol, but I don't think that's relevant here). It would be great if the implementation would change to using DocumentSymbol, or alternatively for more backwards compatibility introduce findDocumentSymbolsV2. This is blocking the Svelte language service from using DocumentSymbol because we rely on this service and it doesn't seem possible to transform one format into the other.