Skip to content

Commit

Permalink
Read local RBI files when parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
dorner committed Jul 19, 2023
1 parent 7c4d5ae commit 4ff0bc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sord/resolver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def self.load_gem_objects(hash)
end
add_rbs_objects_to_paths(env, hash)

gem_paths = Bundler.load.specs.map(&:full_gem_path)
gem_paths = Bundler.load.specs.map(&:full_gem_path) + ["#{Dir.pwd}/sorbet"]
gem_paths.each do |path|
next unless File.exist?("#{path}/rbi")

Expand Down

0 comments on commit 4ff0bc7

Please sign in to comment.