File tree 1 file changed +9
-1
lines changed 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -149,6 +149,8 @@ namespace ts.server {
149
149
*/
150
150
private projectStateVersion = 0 ;
151
151
152
+ protected isInitialLoadPending : ( ) => boolean = returnFalse ;
153
+
152
154
/*@internal */
153
155
dirty = false ;
154
156
@@ -1025,7 +1027,10 @@ namespace ts.server {
1025
1027
1026
1028
/* @internal */
1027
1029
getChangesSinceVersion ( lastKnownVersion ?: number ) : ProjectFilesWithTSDiagnostics {
1028
- this . updateGraph ( ) ;
1030
+ // Update the graph only if initial configured project load is not pending
1031
+ if ( ! this . isInitialLoadPending ( ) ) {
1032
+ this . updateGraph ( ) ;
1033
+ }
1029
1034
1030
1035
const info : protocol . ProjectVersionInfo = {
1031
1036
projectName : this . getProjectName ( ) ,
@@ -1312,6 +1317,8 @@ namespace ts.server {
1312
1317
/*@internal */
1313
1318
projectOptions ?: ProjectOptions | true ;
1314
1319
1320
+ protected isInitialLoadPending : ( ) => boolean = returnTrue ;
1321
+
1315
1322
/*@internal */
1316
1323
constructor ( configFileName : NormalizedPath ,
1317
1324
projectService : ProjectService ,
@@ -1335,6 +1342,7 @@ namespace ts.server {
1335
1342
* @returns : true if set of files in the project stays the same and false - otherwise.
1336
1343
*/
1337
1344
updateGraph ( ) : boolean {
1345
+ this . isInitialLoadPending = returnFalse ;
1338
1346
const reloadLevel = this . pendingReload ;
1339
1347
this . pendingReload = ConfigFileProgramReloadLevel . None ;
1340
1348
let result : boolean ;
You can’t perform that action at this time.
0 commit comments