Skip to content

Commit

Permalink
fix(document_symbols): parse preview range (#1679)
Browse files Browse the repository at this point in the history
Closes #1678
  • Loading branch information
nnajm authored Feb 3, 2025
1 parent 6a4f0a8 commit ef70fbc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/neo-tree/sources/document_symbols/lib/symbols_utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ local function parse_resp(resp_node, id, state, parent_search_path)
preview_range = resp_node.location.range
symbol_node.extra.selection_range = parse_range(preview_range)
end

preview_range = parse_range(preview_range)
symbol_node.extra.position = preview_range.start
symbol_node.extra.end_position = preview_range["end"]
return symbol_node
Expand Down

0 comments on commit ef70fbc

Please sign in to comment.