Skip to content

Commit

Permalink
Fix direction check when resolving call hierarchy nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
bstaletic committed May 18, 2024
1 parent dcab4b9 commit 52d1a4e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2720,7 +2720,7 @@ def Hierarchy( self, request_data, args ):
if result:
for item in result:
if kind == 'call':
name_and_kind_key = 'to' if direction == 'outgoing' else 'from'
name_and_kind_key = 'to' if direction == 'outgoingCalls' else 'from'
kind_string = lsp.SYMBOL_KIND[ item[ name_and_kind_key ][ 'kind' ] ]
item[ 'kind' ] = kind_string
item[ 'name' ] = item[ name_and_kind_key ][ 'name' ]
Expand Down

0 comments on commit 52d1a4e

Please sign in to comment.