@@ -473,7 +473,7 @@ namespace ts.projectSystem {
473
473
}
474
474
}
475
475
476
- describe ( "tsserverProjectSystem" , ( ) => {
476
+ describe ( "tsserverProjectSystem general functionality " , ( ) => {
477
477
const commonFile1 : FileOrFolder = {
478
478
path : "/a/b/commonFile1.ts" ,
479
479
content : "let x = 1"
@@ -2806,7 +2806,7 @@ namespace ts.projectSystem {
2806
2806
2807
2807
} ) ;
2808
2808
2809
- describe ( "Proper errors" , ( ) => {
2809
+ describe ( "tsserverProjectSystem Proper errors" , ( ) => {
2810
2810
it ( "document is not contained in project" , ( ) => {
2811
2811
const file1 = {
2812
2812
path : "/a/b/app.ts" ,
@@ -2960,7 +2960,7 @@ namespace ts.projectSystem {
2960
2960
} ) ;
2961
2961
} ) ;
2962
2962
2963
- describe ( "autoDiscovery" , ( ) => {
2963
+ describe ( "tsserverProjectSystem autoDiscovery" , ( ) => {
2964
2964
it ( "does not depend on extension" , ( ) => {
2965
2965
const file1 = {
2966
2966
path : "/a/b/app.html" ,
@@ -2983,7 +2983,7 @@ namespace ts.projectSystem {
2983
2983
} ) ;
2984
2984
} ) ;
2985
2985
2986
- describe ( "extra resolution pass in lshost" , ( ) => {
2986
+ describe ( "tsserverProjectSystem extra resolution pass in lshost" , ( ) => {
2987
2987
it ( "can load typings that are proper modules" , ( ) => {
2988
2988
const file1 = {
2989
2989
path : "/a/b/app.js" ,
@@ -3025,7 +3025,7 @@ namespace ts.projectSystem {
3025
3025
} ) ;
3026
3026
} ) ;
3027
3027
3028
- describe ( "navigate-to for javascript project" , ( ) => {
3028
+ describe ( "tsserverProjectSystem navigate-to for javascript project" , ( ) => {
3029
3029
function containsNavToItem ( items : protocol . NavtoItem [ ] , itemName : string , itemKind : string ) {
3030
3030
return find ( items , item => item . name === itemName && item . kind === itemKind ) !== undefined ;
3031
3031
}
@@ -3054,7 +3054,7 @@ namespace ts.projectSystem {
3054
3054
} ) ;
3055
3055
} ) ;
3056
3056
3057
- describe ( "external projects" , ( ) => {
3057
+ describe ( "tsserverProjectSystem external projects" , ( ) => {
3058
3058
it ( "correctly handling add/remove tsconfig - 1" , ( ) => {
3059
3059
const f1 = {
3060
3060
path : "/a/b/app.ts" ,
@@ -3280,7 +3280,7 @@ namespace ts.projectSystem {
3280
3280
} ) ;
3281
3281
} ) ;
3282
3282
3283
- describe ( "prefer typings to js" , ( ) => {
3283
+ describe ( "tsserverProjectSystem prefer typings to js" , ( ) => {
3284
3284
it ( "during second resolution pass" , ( ) => {
3285
3285
const typingsCacheLocation = "/a/typings" ;
3286
3286
const f1 = {
@@ -3308,7 +3308,7 @@ namespace ts.projectSystem {
3308
3308
} ) ;
3309
3309
} ) ;
3310
3310
3311
- describe ( "format settings" , ( ) => {
3311
+ describe ( "tsserverProjectSystem format settings" , ( ) => {
3312
3312
it ( "can be set globally" , ( ) => {
3313
3313
const f1 = {
3314
3314
path : "/a/b/app.ts" ,
@@ -3349,7 +3349,7 @@ namespace ts.projectSystem {
3349
3349
} ) ;
3350
3350
} ) ;
3351
3351
3352
- describe ( "watching @types" , ( ) => {
3352
+ describe ( "tsserverProjectSystem watching @types" , ( ) => {
3353
3353
it ( "works correctly when typings are added or removed" , ( ) => {
3354
3354
const f1 = {
3355
3355
path : "/a/b/app.ts" ,
@@ -3395,7 +3395,7 @@ namespace ts.projectSystem {
3395
3395
} ) ;
3396
3396
} ) ;
3397
3397
3398
- describe ( "Open-file" , ( ) => {
3398
+ describe ( "tsserverProjectSystem Open-file" , ( ) => {
3399
3399
it ( "can be reloaded with empty content" , ( ) => {
3400
3400
const f = {
3401
3401
path : "/a/b/app.ts" ,
@@ -3470,7 +3470,7 @@ namespace ts.projectSystem {
3470
3470
} ) ;
3471
3471
} ) ;
3472
3472
3473
- describe ( "Language service" , ( ) => {
3473
+ describe ( "tsserverProjectSystem Language service" , ( ) => {
3474
3474
it ( "should work correctly on case-sensitive file systems" , ( ) => {
3475
3475
const lib = {
3476
3476
path : "/a/Lib/lib.d.ts" ,
@@ -3488,7 +3488,7 @@ namespace ts.projectSystem {
3488
3488
} ) ;
3489
3489
} ) ;
3490
3490
3491
- describe ( "rename a module file and rename back" , ( ) => {
3491
+ describe ( "tsserverProjectSystem rename a module file and rename back" , ( ) => {
3492
3492
it ( "should restore the states for inferred projects" , ( ) => {
3493
3493
const moduleFile = {
3494
3494
path : "/a/b/moduleFile.ts" ,
@@ -3623,7 +3623,7 @@ namespace ts.projectSystem {
3623
3623
} ) ;
3624
3624
} ) ;
3625
3625
3626
- describe ( "add the missing module file for inferred project" , ( ) => {
3626
+ describe ( "tsserverProjectSystem add the missing module file for inferred project" , ( ) => {
3627
3627
it ( "should remove the `module not found` error" , ( ) => {
3628
3628
const moduleFile = {
3629
3629
path : "/a/b/moduleFile.ts" ,
@@ -3729,7 +3729,7 @@ namespace ts.projectSystem {
3729
3729
} ) ;
3730
3730
} ) ;
3731
3731
3732
- describe ( "Configure file diagnostics events" , ( ) => {
3732
+ describe ( "tsserverProjectSystem Configure file diagnostics events" , ( ) => {
3733
3733
3734
3734
it ( "are generated when the config file has errors" , ( ) => {
3735
3735
const file = {
@@ -3845,7 +3845,7 @@ namespace ts.projectSystem {
3845
3845
} ) ;
3846
3846
} ) ;
3847
3847
3848
- describe ( "skipLibCheck" , ( ) => {
3848
+ describe ( "tsserverProjectSystem skipLibCheck" , ( ) => {
3849
3849
it ( "should be turned on for js-only inferred projects" , ( ) => {
3850
3850
const file1 = {
3851
3851
path : "/a/b/file1.js" ,
@@ -4073,7 +4073,7 @@ namespace ts.projectSystem {
4073
4073
} ) ;
4074
4074
} ) ;
4075
4075
4076
- describe ( "non-existing directories listed in config file input array" , ( ) => {
4076
+ describe ( "tsserverProjectSystem non-existing directories listed in config file input array" , ( ) => {
4077
4077
it ( "should be tolerated without crashing the server" , ( ) => {
4078
4078
const configFile = {
4079
4079
path : "/a/b/tsconfig.json" ,
@@ -4128,7 +4128,7 @@ namespace ts.projectSystem {
4128
4128
} ) ;
4129
4129
} ) ;
4130
4130
4131
- describe ( "reload" , ( ) => {
4131
+ describe ( "tsserverProjectSystem reload" , ( ) => {
4132
4132
it ( "should work with temp file" , ( ) => {
4133
4133
const f1 = {
4134
4134
path : "/a/b/app.ts" ,
@@ -4267,7 +4267,7 @@ namespace ts.projectSystem {
4267
4267
} ) ;
4268
4268
} ) ;
4269
4269
4270
- describe ( "Inferred projects" , ( ) => {
4270
+ describe ( "tsserverProjectSystem Inferred projects" , ( ) => {
4271
4271
it ( "should support files without extensions" , ( ) => {
4272
4272
const f = {
4273
4273
path : "/a/compile" ,
@@ -4495,7 +4495,7 @@ namespace ts.projectSystem {
4495
4495
} ) ;
4496
4496
} ) ;
4497
4497
4498
- describe ( "No overwrite emit error" , ( ) => {
4498
+ describe ( "tsserverProjectSystem No overwrite emit error" , ( ) => {
4499
4499
it ( "for inferred project" , ( ) => {
4500
4500
const f1 = {
4501
4501
path : "/a/b/f1.js" ,
@@ -4578,7 +4578,7 @@ namespace ts.projectSystem {
4578
4578
} ) ;
4579
4579
} ) ;
4580
4580
4581
- describe ( "emit with outFile or out setting" , ( ) => {
4581
+ describe ( "tsserverProjectSystem emit with outFile or out setting" , ( ) => {
4582
4582
function test ( opts : CompilerOptions , expectedUsesOutFile : boolean ) {
4583
4583
const f1 = {
4584
4584
path : "/a/a.ts" ,
@@ -4626,7 +4626,7 @@ namespace ts.projectSystem {
4626
4626
} ) ;
4627
4627
} ) ;
4628
4628
4629
- describe ( "import helpers" , ( ) => {
4629
+ describe ( "tsserverProjectSystem import helpers" , ( ) => {
4630
4630
it ( "should not crash in tsserver" , ( ) => {
4631
4631
const f1 = {
4632
4632
path : "/a/app.ts" ,
@@ -4643,7 +4643,7 @@ namespace ts.projectSystem {
4643
4643
} ) ;
4644
4644
} ) ;
4645
4645
4646
- describe ( "searching for config file" , ( ) => {
4646
+ describe ( "tsserverProjectSystem searching for config file" , ( ) => {
4647
4647
it ( "should stop at projectRootPath if given" , ( ) => {
4648
4648
const f1 = {
4649
4649
path : "/a/file1.ts" ,
@@ -4735,7 +4735,7 @@ namespace ts.projectSystem {
4735
4735
} ) ;
4736
4736
} ) ;
4737
4737
4738
- describe ( "cancellationToken" , ( ) => {
4738
+ describe ( "tsserverProjectSystem cancellationToken" , ( ) => {
4739
4739
// Disable sourcemap support for the duration of the test, as sourcemapping the errors generated during this test is slow and not something we care to test
4740
4740
let oldPrepare : ts . AnyFunction ;
4741
4741
before ( ( ) => {
@@ -4998,7 +4998,7 @@ namespace ts.projectSystem {
4998
4998
} ) ;
4999
4999
} ) ;
5000
5000
5001
- describe ( "occurence highlight on string" , ( ) => {
5001
+ describe ( "tsserverProjectSystem occurence highlight on string" , ( ) => {
5002
5002
it ( "should be marked if only on string values" , ( ) => {
5003
5003
const file1 : FileOrFolder = {
5004
5004
path : "/a/b/file1.ts" ,
@@ -5044,7 +5044,7 @@ namespace ts.projectSystem {
5044
5044
} ) ;
5045
5045
} ) ;
5046
5046
5047
- describe ( "maxNodeModuleJsDepth for inferred projects" , ( ) => {
5047
+ describe ( "tsserverProjectSystem maxNodeModuleJsDepth for inferred projects" , ( ) => {
5048
5048
it ( "should be set to 2 if the project has js root files" , ( ) => {
5049
5049
const file1 : FileOrFolder = {
5050
5050
path : "/a/b/file1.js" ,
@@ -5098,7 +5098,7 @@ namespace ts.projectSystem {
5098
5098
} ) ;
5099
5099
} ) ;
5100
5100
5101
- describe ( "Options Diagnostic locations reported correctly with changes in configFile contents" , ( ) => {
5101
+ describe ( "tsserverProjectSystem Options Diagnostic locations reported correctly with changes in configFile contents" , ( ) => {
5102
5102
it ( "when options change" , ( ) => {
5103
5103
const file = {
5104
5104
path : "/a/b/app.ts" ,
@@ -5162,7 +5162,7 @@ namespace ts.projectSystem {
5162
5162
} ) ;
5163
5163
} ) ;
5164
5164
5165
- describe ( "refactors" , ( ) => {
5165
+ describe ( "tsserverProjectSystem refactors" , ( ) => {
5166
5166
it ( "use formatting options" , ( ) => {
5167
5167
const file = {
5168
5168
path : "/a.ts" ,
@@ -5218,7 +5218,7 @@ namespace ts.projectSystem {
5218
5218
} ) ;
5219
5219
} ) ;
5220
5220
5221
- describe ( "CachingFileSystemInformation" , ( ) => {
5221
+ describe ( "tsserverProjectSystem CachingFileSystemInformation" , ( ) => {
5222
5222
enum CalledMapsWithSingleArg {
5223
5223
fileExists = "fileExists" ,
5224
5224
directoryExists = "directoryExists" ,
@@ -5835,7 +5835,7 @@ namespace ts.projectSystem {
5835
5835
} ) ;
5836
5836
} ) ;
5837
5837
5838
- describe ( "ProjectsChangedInBackground" , ( ) => {
5838
+ describe ( "tsserverProjectSystem ProjectsChangedInBackground" , ( ) => {
5839
5839
function verifyFiles ( caption : string , actual : ReadonlyArray < string > , expected : ReadonlyArray < string > ) {
5840
5840
assert . equal ( actual . length , expected . length , `Incorrect number of ${ caption } . Actual: ${ actual } Expected: ${ expected } ` ) ;
5841
5841
const seen = createMap < true > ( ) ;
@@ -6431,7 +6431,7 @@ namespace ts.projectSystem {
6431
6431
} ) ;
6432
6432
} ) ;
6433
6433
6434
- describe ( "Watched recursive directories with windows style file system" , ( ) => {
6434
+ describe ( "tsserverProjectSystem Watched recursive directories with windows style file system" , ( ) => {
6435
6435
function verifyWatchedDirectories ( useProjectAtRoot : boolean ) {
6436
6436
const root = useProjectAtRoot ? "c:/" : "c:/myfolder/allproject/" ;
6437
6437
const configFile : FileOrFolder = {
0 commit comments