Commit b5e2040 1 parent 6c4702c commit b5e2040 Copy full SHA for b5e2040
File tree 2 files changed +11
-1
lines changed
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ def apply_options(options)
93
93
@test_library = detect_test_library ( direct_dependencies )
94
94
notifications << Notification . window_log_message ( "Detected test library: #{ @test_library } " )
95
95
96
- @has_type_checker = detect_typechecker ( direct_dependencies )
96
+ @has_type_checker = detect_typechecker ( all_dependencies )
97
97
if @has_type_checker
98
98
notifications << Notification . window_log_message (
99
99
"Ruby LSP detected this is a Sorbet project and will defer to the Sorbet LSP for some functionality" ,
Original file line number Diff line number Diff line change @@ -199,6 +199,16 @@ def test_apply_options_sets_experimental_features
199
199
assert_predicate ( state , :experimental_features )
200
200
end
201
201
202
+ def test_type_checker_is_detected_based_on_transitive_sorbet_static
203
+ state = GlobalState . new
204
+
205
+ Bundler . locked_gems . stubs ( dependencies : { } )
206
+ stub_all_dependencies ( "sorbet-static" )
207
+ state . apply_options ( { initializationOptions : { } } )
208
+
209
+ assert_predicate ( state , :has_type_checker )
210
+ end
211
+
202
212
private
203
213
204
214
def stub_direct_dependencies ( dependencies )
You can’t perform that action at this time.
0 commit comments