mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
rerun too complex dfa on changes not affecting text length
This commit is contained in:
@@ -125,7 +125,7 @@ public class DataFlowRunner {
|
||||
int count = 0;
|
||||
while (!queue.isEmpty()) {
|
||||
if (count % 50 == 0 && !unitTestMode && System.currentTimeMillis() - before > timeLimit) {
|
||||
psiBlock.putUserData(TOO_EXPENSIVE_SIZE, psiBlock.getTextLength());
|
||||
psiBlock.putUserData(TOO_EXPENSIVE_SIZE, psiBlock.getText().hashCode());
|
||||
return RunnerResult.TOO_COMPLEX;
|
||||
}
|
||||
ProgressManager.checkCanceled();
|
||||
|
||||
Reference in New Issue
Block a user