Skip to content

Commit 141cd57

Browse files
Merge pull request #18603 from RyanCavanaugh/pluginWork
Report external files in initial case for project load
2 parents a075ba9 + 5407078 commit 141cd57

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
@@ -771,9 +771,10 @@ namespace ts.server {
771771
// unknown version - return everything
772772
const projectFileNames = this.getFileNames();
773773
const externalFiles = this.getExternalFiles().map(f => toNormalizedPath(f));
774-
this.lastReportedFileNames = arrayToSet(projectFileNames.concat(externalFiles));
774+
const allFiles = projectFileNames.concat(externalFiles);
775+
this.lastReportedFileNames = arrayToSet(allFiles);
775776
this.lastReportedVersion = this.projectStructureVersion;
776-
return { info, files: projectFileNames, projectErrors: this.getGlobalProjectErrors() };
777+
return { info, files: allFiles, projectErrors: this.getGlobalProjectErrors() };
777778
}
778779
}
779780

0 commit comments

Comments
 (0)