Skip to content

Commit

Permalink
YardMap::Mapper rejects external pins.
Browse files Browse the repository at this point in the history
  • Loading branch information
castwide committed May 2, 2020
1 parent 1dd6175 commit 462b6d3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/solargraph/yard_map/mapper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ def map
@code_objects.each do |co|
@pins.concat generate_pins co
end
# Some yardocs contain documentation for dependencies that can be
# ignored here. The YardMap will load dependencies separately.
@pins.keep_if { |pin| pin.location.nil? || File.file?(pin.location.filename) } if @spec
@pins
end

Expand Down

0 comments on commit 462b6d3

Please sign in to comment.