From 23d946a9309797ecb1ba76e8ebb382ad7f40a38f Mon Sep 17 00:00:00 2001 From: Sergey Igushkin Date: Tue, 1 Oct 2024 08:13:00 +0300 Subject: [PATCH] Bring back "No software type" for empty build files; refactor settings viewing state --- .../actions/GetDeclarativeDocuments.kt | 70 ++++++++++--------- 1 file changed, 36 insertions(+), 34 deletions(-) diff --git a/gradle-client/src/jvmMain/kotlin/org/gradle/client/ui/connected/actions/GetDeclarativeDocuments.kt b/gradle-client/src/jvmMain/kotlin/org/gradle/client/ui/connected/actions/GetDeclarativeDocuments.kt index cb52893..82efdad 100644 --- a/gradle-client/src/jvmMain/kotlin/org/gradle/client/ui/connected/actions/GetDeclarativeDocuments.kt +++ b/gradle-client/src/jvmMain/kotlin/org/gradle/client/ui/connected/actions/GetDeclarativeDocuments.kt @@ -80,6 +80,8 @@ class GetDeclarativeDocuments : GetModelAction.GetCompositeModelAction()) } @@ -110,7 +112,7 @@ class GetDeclarativeDocuments : GetModelAction.GetCompositeModelAction @@ -446,8 +448,8 @@ class ModelTreeRendering( element: ElementNode, indentLevel: Int ) { - if (resolutionContainer.isUnresolvedBase(element)) return - + if (resolutionContainer.isUnresolvedBase(element)) return + val arguments = element.elementValues.joinToString { valueNode -> when (valueNode) { is DeclarativeDocument.ValueNode.LiteralValueNode -> valueNode.value.toString()