mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IJPL-171426 Wait for backend side after frontend
GitOrigin-RevId: 1f4064440acd51fd1d738fdb7fde54eb4de1e508
This commit is contained in:
committed by
intellij-monorepo-bot
parent
6a0e9089b4
commit
8d442c78c9
+2
-2
@@ -37,8 +37,8 @@ class HighlightingTestUtil {
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
suspend fun waitForAnalysisWithNewApproach(project: Project, span: Span?, timeout: Long?, suppressErrors: Boolean?) {
|
||||
val timeoutDuration = if (timeout == 0L || timeout == null) 5.minutes else timeout.seconds
|
||||
suspend fun waitForAnalysisWithNewApproach(project: Project, span: Span?, timeoutSeconds: Long?, suppressErrors: Boolean?) {
|
||||
val timeoutDuration = if (timeoutSeconds == 0L || timeoutSeconds == null) 5.minutes else timeoutSeconds.seconds
|
||||
try {
|
||||
project.service<CodeAnalysisStateListener>().waitAnalysisToFinish(timeoutDuration, !(suppressErrors ?: true))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user