mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-15 21:45:14 +03:00
Fix error parsing document symbols with the old format (fixes document symbols in pylsp).
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user