diff --git a/lib/ruby_lsp/internal.rb b/lib/ruby_lsp/internal.rb index 6cb064161..4909ee983 100644 --- a/lib/ruby_lsp/internal.rb +++ b/lib/ruby_lsp/internal.rb @@ -47,7 +47,6 @@ require "ruby_lsp/response_builders/signature_help" # Request support -require "ruby_lsp/requests/support/rubocop_diagnostic" require "ruby_lsp/requests/support/selection_range" require "ruby_lsp/requests/support/annotation" require "ruby_lsp/requests/support/sorbet" diff --git a/lib/ruby_lsp/requests/support/rubocop_formatter.rb b/lib/ruby_lsp/requests/support/rubocop_formatter.rb index 5ab4ed174..9a080edd7 100644 --- a/lib/ruby_lsp/requests/support/rubocop_formatter.rb +++ b/lib/ruby_lsp/requests/support/rubocop_formatter.rb @@ -3,6 +3,8 @@ return unless defined?(RubyLsp::Requests::Support::RuboCopRunner) +require "ruby_lsp/requests/support/rubocop_diagnostic" + module RubyLsp module Requests module Support