Skip to content

Commit

Permalink
Allow bypassing typechecker in dependency detector
Browse files Browse the repository at this point in the history
  • Loading branch information
vinistock committed Jan 3, 2024
1 parent 9fdf08e commit f4855ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/ruby_lsp/requests/support/dependency_detector.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f4855ab

Please sign in to comment.