mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-16 05:58:32 -06:00
fix version related issues
This commit is contained in:
parent
8bed8f3eb5
commit
81905cd29e
@ -472,10 +472,10 @@ namespace ts.server {
|
||||
projectFileName: this.getProjectFileName(),
|
||||
version: this.currentVersion
|
||||
};
|
||||
if (this.lastReportedVersion === this.currentVersion) {
|
||||
return { info };
|
||||
}
|
||||
if (this.lastReportedFileNames && lastKnownVersion === this.lastReportedVersion) {
|
||||
if (this.currentVersion == this.lastReportedVersion) {
|
||||
return { info };
|
||||
}
|
||||
const lastReportedFileNames = this.lastReportedFileNames;
|
||||
const currentFiles = arrayToMap(this.getFileNames(), x => x);
|
||||
|
||||
@ -501,6 +501,7 @@ namespace ts.server {
|
||||
// unknown version - return everything
|
||||
const projectFileNames = this.getFileNames();
|
||||
this.lastReportedFileNames = arrayToMap(projectFileNames, x => x);
|
||||
this.lastReportedVersion = this.currentVersion;
|
||||
return { info, files: projectFileNames };
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user