Skip to content

Commit

Permalink
Use name_location in supertypes
Browse files Browse the repository at this point in the history
  • Loading branch information
vinistock committed Jun 20, 2024
1 parent fd9ae2c commit fdcbe05
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/ruby_lsp/requests/type_hierarchy_supertypes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,12 @@ def perform

sig { params(entry: RubyIndexer::Entry).returns(Interface::TypeHierarchyItem) }
def hierarchy_item(entry)
range = range_from_location(entry.location)

Interface::TypeHierarchyItem.new(
name: entry.name,
kind: kind_for_entry(entry),
uri: URI::Generic.from_path(path: entry.file_path).to_s,
range: range,
selection_range: range,
range: range_from_location(entry.location),
selection_range: range_from_location(entry.name_location),
detail: entry.file_name,
)
end
Expand Down

0 comments on commit fdcbe05

Please sign in to comment.