diff --git a/lib/ruby_lsp/requests/support/dependency_detector.rb b/lib/ruby_lsp/requests/support/dependency_detector.rb index 926804a60..02669b81d 100644 --- a/lib/ruby_lsp/requests/support/dependency_detector.rb +++ b/lib/ruby_lsp/requests/support/dependency_detector.rb @@ -61,6 +61,8 @@ def direct_dependency?(gem_pattern) sig { returns(T::Boolean) } def detect_typechecker + return false if ENV["RUBY_LSP_BYPASS_TYPECHECKER"] + direct_dependency?(/^sorbet/) || direct_dependency?(/^sorbet-static-and-runtime/) end