Skip to content

Commit

Permalink
use location[:name] for interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuuki77 committed Jul 12, 2021
1 parent decbe27 commit a9eba7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/steep/services/hover_content.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def content_for(path:, line:, column:)
when RBS::Types::Interface
env = service.latest_env
interface_decl = env.interface_decls[type.name]&.decl or raise
location = type.location
location = type.location[:name]

InterfaceContent.new(
location: location,
Expand Down

0 comments on commit a9eba7f

Please sign in to comment.