From 7d4f4a3b1feeaeb1d927f3dd93bbfc604d00be7c Mon Sep 17 00:00:00 2001 From: Fred Snyder Date: Wed, 15 Jan 2025 16:49:51 -0500 Subject: [PATCH] Missing YAML pin --- lib/solargraph/rbs_map/stdlib_map.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/solargraph/rbs_map/stdlib_map.rb b/lib/solargraph/rbs_map/stdlib_map.rb index c713416a0..624875d66 100644 --- a/lib/solargraph/rbs_map/stdlib_map.rb +++ b/lib/solargraph/rbs_map/stdlib_map.rb @@ -18,6 +18,9 @@ def initialize library pins.replace cache else super + if library == 'yaml' + pins.push Solargraph::Pin::Constant.new(name: 'YAML', comments: '@return [Module]', closure: Pin::ROOT_PIN) + end Cache.save('stdlib', "#{library}.ser", pins) end end