File tree 1 file changed +11
-2
lines changed
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -507,8 +507,17 @@ namespace FourSlash {
507
507
}
508
508
509
509
private getAllDiagnostics ( ) : ts . Diagnostic [ ] {
510
- return ts . flatMap ( this . languageServiceAdapterHost . getFilenames ( ) , fileName =>
511
- ts . isAnySupportedFileExtension ( fileName ) ? this . getDiagnostics ( fileName ) : [ ] ) ;
510
+ return ts . flatMap ( this . languageServiceAdapterHost . getFilenames ( ) , fileName => {
511
+ if ( ! ts . isAnySupportedFileExtension ( fileName ) ) {
512
+ return [ ] ;
513
+ }
514
+
515
+ const baseName = ts . getBaseFileName ( fileName ) ;
516
+ if ( baseName === "package.json" || baseName === "tsconfig.json" || baseName === "jsconfig.json" ) {
517
+ return [ ] ;
518
+ }
519
+ return this . getDiagnostics ( fileName ) ;
520
+ } ) ;
512
521
}
513
522
514
523
public verifyErrorExistsAfterMarker ( markerName : string , shouldExist : boolean , after : boolean ) {
You can’t perform that action at this time.
0 commit comments