@@ -370,7 +370,7 @@ namespace ts.server {
370
370
private readonly throttledOperations : ThrottledOperations ;
371
371
372
372
private readonly hostConfiguration : HostConfiguration ;
373
- private static safelist : SafeList = defaultTypeSafeList ;
373
+ private safelist : SafeList = defaultTypeSafeList ;
374
374
375
375
private changedFiles : ScriptInfo [ ] ;
376
376
@@ -1620,7 +1620,7 @@ namespace ts.server {
1620
1620
}
1621
1621
1622
1622
resetSafeList ( ) : void {
1623
- ProjectService . safelist = defaultTypeSafeList ;
1623
+ this . safelist = defaultTypeSafeList ;
1624
1624
}
1625
1625
1626
1626
loadSafeList ( fileName : string ) : void {
@@ -1630,7 +1630,7 @@ namespace ts.server {
1630
1630
raw [ k ] . match = new RegExp ( raw [ k ] . match as { } as string , "i" ) ;
1631
1631
}
1632
1632
// raw is now fixed and ready
1633
- ProjectService . safelist = raw ;
1633
+ this . safelist = raw ;
1634
1634
}
1635
1635
1636
1636
applySafeList ( proj : protocol . ExternalProject ) : void {
@@ -1641,8 +1641,8 @@ namespace ts.server {
1641
1641
1642
1642
const normalizedNames = rootFiles . map ( f => normalizeSlashes ( f . fileName ) ) ;
1643
1643
1644
- for ( const name of Object . keys ( ProjectService . safelist ) ) {
1645
- const rule = ProjectService . safelist [ name ] ;
1644
+ for ( const name of Object . keys ( this . safelist ) ) {
1645
+ const rule = this . safelist [ name ] ;
1646
1646
for ( const root of normalizedNames ) {
1647
1647
if ( rule . match . test ( root ) ) {
1648
1648
this . logger . info ( `Excluding files based on rule ${ name } ` ) ;
0 commit comments