Skip to content

Commit 5407078

Browse files
committed
Report external files in initial case
1 parent 9046fcb commit 5407078

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/server/project.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -772,9 +772,10 @@ namespace ts.server {
772772
// unknown version - return everything
773773
const projectFileNames = this.getFileNames();
774774
const externalFiles = this.getExternalFiles().map(f => toNormalizedPath(f));
775-
this.lastReportedFileNames = arrayToSet(projectFileNames.concat(externalFiles));
775+
const allFiles = projectFileNames.concat(externalFiles);
776+
this.lastReportedFileNames = arrayToSet(allFiles);
776777
this.lastReportedVersion = this.projectStructureVersion;
777-
return { info, files: projectFileNames, projectErrors: this.getGlobalProjectErrors() };
778+
return { info, files: allFiles, projectErrors: this.getGlobalProjectErrors() };
778779
}
779780
}
780781

0 commit comments

Comments
 (0)