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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user