@@ -3629,7 +3629,7 @@ namespace ts.projectSystem {
3629
3629
host . runQueuedTimeoutCallbacks ( ) ;
3630
3630
diags = session . executeCommand ( getErrRequest ) . response as server . protocol . Diagnostic [ ] ;
3631
3631
verifyDiagnostics ( diags , [
3632
- { diagnosticMessage : Diagnostics . Cannot_find_module_0 , errorTextArguments : [ "./moduleFile" ] }
3632
+ { diagnosticMessage : Diagnostics . Cannot_find_module_0_or_cannot_find_corresponding_typings_for_this_module , errorTextArguments : [ "./moduleFile" ] }
3633
3633
] ) ;
3634
3634
assert . equal ( diags . length , 1 ) ;
3635
3635
@@ -3680,7 +3680,7 @@ namespace ts.projectSystem {
3680
3680
host . runQueuedTimeoutCallbacks ( ) ;
3681
3681
diags = session . executeCommand ( getErrRequest ) . response as server . protocol . Diagnostic [ ] ;
3682
3682
verifyDiagnostics ( diags , [
3683
- { diagnosticMessage : Diagnostics . Cannot_find_module_0 , errorTextArguments : [ "./moduleFile" ] }
3683
+ { diagnosticMessage : Diagnostics . Cannot_find_module_0_or_cannot_find_corresponding_typings_for_this_module , errorTextArguments : [ "./moduleFile" ] }
3684
3684
] ) ;
3685
3685
3686
3686
moduleFile . path = moduleFileOldPath ;
@@ -3755,7 +3755,7 @@ namespace ts.projectSystem {
3755
3755
) ;
3756
3756
let diags = session . executeCommand ( getErrRequest ) . response as server . protocol . Diagnostic [ ] ;
3757
3757
verifyDiagnostics ( diags , [
3758
- { diagnosticMessage : Diagnostics . Cannot_find_module_0 , errorTextArguments : [ "./moduleFile" ] }
3758
+ { diagnosticMessage : Diagnostics . Cannot_find_module_0_or_cannot_find_corresponding_typings_for_this_module , errorTextArguments : [ "./moduleFile" ] }
3759
3759
] ) ;
3760
3760
3761
3761
host . reloadFS ( [ file1 , moduleFile ] ) ;
@@ -3808,7 +3808,7 @@ namespace ts.projectSystem {
3808
3808
session . clearMessages ( ) ;
3809
3809
3810
3810
host . runQueuedImmediateCallbacks ( ) ;
3811
- const moduleNotFound = Diagnostics . Cannot_find_module_0 ;
3811
+ const moduleNotFound = Diagnostics . Cannot_find_module_0_or_cannot_find_corresponding_typings_for_this_module ;
3812
3812
const startOffset = file1 . content . indexOf ( '"' ) + 1 ;
3813
3813
checkErrorMessage ( session , "semanticDiag" , {
3814
3814
file : file1 . path , diagnostics : [ {
@@ -5598,7 +5598,7 @@ namespace ts.projectSystem {
5598
5598
let diags = project . getLanguageService ( ) . getSemanticDiagnostics ( root . path ) ;
5599
5599
assert . equal ( diags . length , 1 ) ;
5600
5600
const diag = diags [ 0 ] ;
5601
- assert . equal ( diag . code , Diagnostics . Cannot_find_module_0 . code ) ;
5601
+ assert . equal ( diag . code , Diagnostics . Cannot_find_module_0_or_cannot_find_corresponding_typings_for_this_module . code ) ;
5602
5602
assert . equal ( flattenDiagnosticMessageText ( diag . messageText , "\n" ) , "Cannot find module 'bar'." ) ;
5603
5603
callsTrackingHost . verifyCalledOn ( CalledMapsWithSingleArg . fileExists , imported . path ) ;
5604
5604
0 commit comments