Merge pull request #18603 from RyanCavanaugh/pluginWork
Report external files in initial case for project load
This commit is contained in:
commit
141cd574c7
1 changed files with 3 additions and 2 deletions
|
@ -771,9 +771,10 @@ namespace ts.server {
|
||||||
// unknown version - return everything
|
// unknown version - return everything
|
||||||
const projectFileNames = this.getFileNames();
|
const projectFileNames = this.getFileNames();
|
||||||
const externalFiles = this.getExternalFiles().map(f => toNormalizedPath(f));
|
const externalFiles = this.getExternalFiles().map(f => toNormalizedPath(f));
|
||||||
this.lastReportedFileNames = arrayToSet(projectFileNames.concat(externalFiles));
|
const allFiles = projectFileNames.concat(externalFiles);
|
||||||
|
this.lastReportedFileNames = arrayToSet(allFiles);
|
||||||
this.lastReportedVersion = this.projectStructureVersion;
|
this.lastReportedVersion = this.projectStructureVersion;
|
||||||
return { info, files: projectFileNames, projectErrors: this.getGlobalProjectErrors() };
|
return { info, files: allFiles, projectErrors: this.getGlobalProjectErrors() };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue