vscode.executeDocumentSymbolProvider command only returns SymbolInformation[] rather than DocumentSymbol[] #57984
Labels
api
bug
Issue identified by VS Code Team member as probable bug
editor-symbols
definitions, declarations, references
under-discussion
Issue is under discussion for relevance, priority, approach
verified
Verification succeeded
Milestone
Currently the
vscode.executeDocumentSymbolProvider
returns instances ofSymbolInformation
rather than the newerDocumentSymbol
. I'm sure this was done for backward compatibility. Can a flag be added tovscode.executeDocumentSymbolProvider
to allow it to returnDocumentSymbol
? Or maybe a new complex command to access theDocumentSymbol
s?I would really like for GitLens to be able to have access to the better range information contained in the
DocumentSymbol
s.Also if there is consensus on the direction of this, I can provide a PR.
/cc @jrieken
The text was updated successfully, but these errors were encountered: