From a9eba7f12fd68bc88b561ccbf411d78c880f75ce Mon Sep 17 00:00:00 2001 From: Yuki Osaki Date: Mon, 12 Jul 2021 22:26:26 +0900 Subject: [PATCH] use location[:name] for interface --- lib/steep/services/hover_content.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/steep/services/hover_content.rb b/lib/steep/services/hover_content.rb index 29ad6e9fe..190fa73ae 100644 --- a/lib/steep/services/hover_content.rb +++ b/lib/steep/services/hover_content.rb @@ -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,