mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
stable cycle reporting
This commit is contained in:
@@ -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(' -> '));
|
||||
|
||||
@@ -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(' -> '));
|
||||
|
||||
Reference in New Issue
Block a user