stable cycle reporting

This commit is contained in:
Johannes
2025-06-09 15:38:23 +02:00
parent 9b5cee4c2c
commit 9a7cbdef4d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -591,7 +591,7 @@ class LanguageServiceHost {
while (this._dependenciesRecomputeList.length) {
this._processFile(this._dependenciesRecomputeList.pop());
}
const cycles = this._dependencies.findCycles(filenames);
const cycles = this._dependencies.findCycles(filenames.sort((a, b) => a.localeCompare(b)));
const result = new Map();
for (const [key, value] of cycles) {
result.set(key, value?.join(' -> '));
+1 -1
View File
@@ -669,7 +669,7 @@ class LanguageServiceHost implements ts.LanguageServiceHost {
while (this._dependenciesRecomputeList.length) {
this._processFile(this._dependenciesRecomputeList.pop()!);
}
const cycles = this._dependencies.findCycles(filenames);
const cycles = this._dependencies.findCycles(filenames.sort((a, b) => a.localeCompare(b)));
const result = new Map<string, string | undefined>();
for (const [key, value] of cycles) {
result.set(key, value?.join(' -> '));