mirror of
https://github.com/microsoft/pyright.git
synced 2024-10-05 12:27:30 +03:00
Fixed bug in analysis loop that could result in dependent files not getting invalidated due to a timeout.
This commit is contained in:
parent
b7793cbe29
commit
0ce70b3b98
@ -292,10 +292,6 @@ export class Program {
|
||||
while (true) {
|
||||
fileToAnalyze.sourceFile.doTypeAnalysis(options, importMap);
|
||||
|
||||
if (timeElapsedCallback()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!fileToAnalyze.sourceFile.isTypeAnalysisRequired()) {
|
||||
break;
|
||||
} else {
|
||||
@ -321,6 +317,10 @@ export class Program {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (timeElapsedCallback()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user