lib/ruby_lsp/tapioca/addon.rb in tapioca-0.16.6 vs lib/ruby_lsp/tapioca/addon.rb in tapioca-0.16.7

- old
+ new

@@ -1,9 +1,9 @@ # typed: strict # frozen_string_literal: true -RubyLsp::Addon.depend_on_ruby_lsp!(">= 0.22.1", "< 0.23") +RubyLsp::Addon.depend_on_ruby_lsp!(">= 0.23.1", "< 0.24") begin # The Tapioca add-on depends on the Rails add-on to add a runtime component to the runtime server. We can allow the # add-on to work outside of a Rails context in the future, but that may require Tapioca spawning its own runtime # server @@ -77,10 +77,10 @@ constants = changes.flat_map do |change| path = URI(change[:uri]).to_standardized_path next if path.end_with?("_test.rb", "_spec.rb") next unless file_updated?(change, path) - entries = T.must(@index).entries_for(path) + entries = T.must(@index).entries_for(change[:uri]) next unless entries entries.filter_map do |entry| entry.name if entry.class == RubyIndexer::Entry::Class || entry.class == RubyIndexer::Entry::Module end