File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
tests/baselines/reference/api Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -1549,6 +1549,11 @@ namespace ts.server {
1549
1549
useSourceOfProjectReferenceRedirect = ( ) => ! ! this . languageServiceEnabled &&
1550
1550
! this . getCompilerOptions ( ) . disableSourceOfProjectReferenceRedirect ;
1551
1551
1552
+ /**
1553
+ * This implementation of fileExists checks if the file being requested is
1554
+ * .d.ts file for the referenced Project.
1555
+ * If it is it returns true irrespective of whether that file exists on host
1556
+ */
1552
1557
fileExists ( file : string ) : boolean {
1553
1558
// Project references go to source file instead of .d.ts file
1554
1559
if ( this . useSourceOfProjectReferenceRedirect ( ) && this . projectReferenceCallbacks ) {
@@ -1558,6 +1563,11 @@ namespace ts.server {
1558
1563
return super . fileExists ( file ) ;
1559
1564
}
1560
1565
1566
+ /**
1567
+ * This implementation of directoryExists checks if the directory being requested is
1568
+ * directory of .d.ts file for the referenced Project.
1569
+ * If it is it returns true irrespective of whether that directory exists on host
1570
+ */
1561
1571
directoryExists ( path : string ) : boolean {
1562
1572
if ( super . directoryExists ( path ) ) return true ;
1563
1573
if ( ! this . useSourceOfProjectReferenceRedirect ( ) || ! this . projectReferenceCallbacks ) return false ;
Original file line number Diff line number Diff line change @@ -8576,7 +8576,17 @@ declare namespace ts.server {
8576
8576
private projectErrors ;
8577
8577
private projectReferences ;
8578
8578
protected isInitialLoadPending : ( ) => boolean ;
8579
+ /**
8580
+ * This implementation of fileExists checks if the file being requested is
8581
+ * .d.ts file for the referenced Project.
8582
+ * If it is it returns true irrespective of whether that file exists on host
8583
+ */
8579
8584
fileExists ( file : string ) : boolean ;
8585
+ /**
8586
+ * This implementation of directoryExists checks if the directory being requested is
8587
+ * directory of .d.ts file for the referenced Project.
8588
+ * If it is it returns true irrespective of whether that directory exists on host
8589
+ */
8580
8590
directoryExists ( path : string ) : boolean ;
8581
8591
/**
8582
8592
* If the project has reload from disk pending, it reloads (and then updates graph as part of that) instead of just updating the graph
You can’t perform that action at this time.
0 commit comments