diff --git a/Gemfile.lock b/Gemfile.lock index 6800b6d7..a337a45d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -232,7 +232,7 @@ GEM rubocop (~> 1.51) rubocop-sorbet (0.8.3) rubocop (>= 0.90.0) - ruby-lsp (0.17.7) + ruby-lsp (0.17.9) language_server-protocol (~> 3.17.0) prism (>= 0.29.0, < 0.31) rbs (>= 3, < 4) diff --git a/test/ruby_lsp_rails/hover_test.rb b/test/ruby_lsp_rails/hover_test.rb index fd9b978e..f18a6ed1 100644 --- a/test/ruby_lsp_rails/hover_test.rb +++ b/test/ruby_lsp_rails/hover_test.rb @@ -95,8 +95,14 @@ class User < ApplicationRecord RUBY assert_equal(<<~CONTENT.chomp, response.contents.value) + ```ruby + Blog::User + ``` + + **Definitions**: [fake.rb](file:///fake.rb#L2,3-3,6) [Schema](#{URI::Generic.from_path(path: dummy_root + "/db/schema.rb")}) + **id**: integer (PK) **first_name**: string @@ -237,7 +243,7 @@ class ActiveRecord::Base private def hover_on_source(source, position) - with_server(source) do |server, uri| + with_server(source, stub_no_typechecker: true) do |server, uri| server.process_message( id: 1, method: "textDocument/hover",