Avoid run DefinitionsCollectorBackgroundTask on AWT in tests
This commit is contained in:
@@ -72,6 +72,8 @@ abstract class AsyncScriptDefinitionsContributor(protected val project: Project)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun isHeadless(): Boolean = false
|
||||||
|
|
||||||
override fun run(indicator: ProgressIndicator) {
|
override fun run(indicator: ProgressIndicator) {
|
||||||
while (true) {
|
while (true) {
|
||||||
if (indicator.isCanceled || !shouldStartNewUpdate) {
|
if (indicator.isCanceled || !shouldStartNewUpdate) {
|
||||||
|
|||||||
Reference in New Issue
Block a user