class RubyLsp::Addon
def load_addons(message_queue)
def load_addons(message_queue) # Require all addons entry points, which should be placed under # `some_gem/lib/ruby_lsp/your_gem_name/addon.rb` Gem.find_files("ruby_lsp/**/addon.rb").each do |addon| require File.expand_path(addon) rescue => e $stderr.puts(e.full_message) end # Activate each one of the discovered addons. If any problems occur in the addons, we don't want to # fail to boot the server addons.each do |addon| addon.activate(message_queue) nil rescue => e addon.add_error(e) end end