solargraph icon indicating copy to clipboard operation
solargraph copied to clipboard

Use DocumentSymbol interface for TextDocument::DocumentSymbol messages

Open Slotos opened this issue 2 years ago • 1 comments

Preamble

Right now, Solargraph::LanguageServer::Message::TextDocument::DocumentSymbol implements SymbolInformation interface. This interface is deprecated to be replaced with DocumentSymbol one.

One of the benefits of DocumentSymbol interface is the inclusion of children property, which allows LSP clients to build tree-like structures, describing the code. Whereas SymbolInformation's containerName is explicitly defined to not be fit for that purpose.

Request

Use DocumentSymbol interface in Solargraph::LanguageServer::Message::TextDocument::DocumentSymbol implementation, with children property if possible.

Slotos avatar Apr 19 '22 14:04 Slotos

Added to the roadmap.

castwide avatar Aug 14 '22 06:08 castwide