Tests: allow document modification during highlighting for scripts in LocalInspectionTest

Fix 'java.lang.AssertionError: PSI/document/model changes are not allowed during highlighting'
For script when there are some new dependencies we are restarting highlighting (see ScriptDependenciesCache)
This commit is contained in:
Natalia Selezneva
2018-11-27 10:12:11 +03:00
parent 902c4688a2
commit 25043a720c
@@ -153,7 +153,7 @@ abstract class AbstractLocalInspectionTest : KotlinLightCodeInsightFixtureTestCa
Pass.UPDATE_ALL,
Pass.UPDATE_FOLDING,
Pass.WOLF
), false
), (file as? KtFile)?.isScript() == true
).filter { it.description != null && caretOffset in it.startOffset..it.endOffset }
Assert.assertTrue(