Skip to content

Commit

Permalink
fix: use location method for instance variable target nodes range
Browse files Browse the repository at this point in the history
  • Loading branch information
Hungle2911 committed Dec 13, 2024
1 parent 7808ae2 commit cf61d5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ruby_lsp/listeners/document_symbol.rb
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,8 @@ def on_instance_variable_target_node_enter(node)
create_document_symbol(
name: node.name.to_s,
kind: Constant::SymbolKind::FIELD,
range_location: node.name_loc,
selection_range_location: node.name_loc,
range_location: node.location,
selection_range_location: node.location,
)
end

Expand Down

0 comments on commit cf61d5a

Please sign in to comment.