Fix error parsing document symbols with the old format (fixes document symbols in pylsp).

This commit is contained in:
Martín Lucas Golini
2024-09-15 12:40:59 -03:00
parent 23bde61361
commit 4082ce517e
2 changed files with 6 additions and 6 deletions

View File

@@ -452,7 +452,7 @@ static LSPSymbolInformationList parseDocumentSymbols( const json& result, bool i
const auto& srange = symbol.contains( MEMBER_SELECTION_RANGE )
? symbol.at( MEMBER_SELECTION_RANGE )
: symbol[MEMBER_LOCATION].at( MEMBER_SELECTION_RANGE );
: symbol[MEMBER_LOCATION].at( MEMBER_RANGE );
auto range = parseRange( mrange );
auto selectionRange = parseRange( srange );