Debugger: make KotlinRenderer inapplicable if at least one of custom renderer is defined
This commit is contained in:
@@ -52,6 +52,14 @@ public open class KotlinObjectRenderer : ClassRenderer() {
|
||||
override fun isApplicable(jdiType: Type?): Boolean {
|
||||
if (!super.isApplicable(jdiType)) return false
|
||||
|
||||
var isCustomRendererApplicable = false
|
||||
NodeRendererSettings.getInstance().getCustomRenderers().iterateRenderers {
|
||||
isCustomRendererApplicable = it.isApplicable(jdiType)
|
||||
!isCustomRendererApplicable
|
||||
}
|
||||
|
||||
if (isCustomRendererApplicable) return false
|
||||
|
||||
return jdiType.isKotlinClass()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user