@@ -8,13 +8,17 @@ import com.intellij.openapi.components.service
8
8
import com.intellij.openapi.options.BoundConfigurable
9
9
import com.intellij.openapi.ui.DialogPanel
10
10
import com.intellij.openapi.ui.ValidationInfo
11
+ import com.intellij.ui.components.JBCheckBox
11
12
import com.intellij.ui.components.JBTextField
12
13
import com.intellij.ui.dsl.builder.AlignX
14
+ import com.intellij.ui.dsl.builder.Cell
13
15
import com.intellij.ui.dsl.builder.RowLayout
14
16
import com.intellij.ui.dsl.builder.bindSelected
15
17
import com.intellij.ui.dsl.builder.bindText
16
18
import com.intellij.ui.dsl.builder.panel
19
+ import com.intellij.ui.dsl.builder.selected
17
20
import com.intellij.ui.layout.ValidationInfoBuilder
21
+ import com.intellij.ui.layout.not
18
22
import java.net.URL
19
23
import java.nio.file.Path
20
24
@@ -60,22 +64,27 @@ class CoderSettingsConfigurable : BoundConfigurable("Coder") {
60
64
.bindText(state::binaryDirectory)
61
65
.comment(CoderGatewayBundle .message(" gateway.connector.settings.binary-destination.comment" ))
62
66
}.layout(RowLayout .PARENT_GRID )
63
- row {
64
- cell() // For alignment.
65
- checkBox(CoderGatewayBundle .message(" gateway.connector.settings.enable-binary-directory-fallback.title" ))
66
- .bindSelected(state::enableBinaryDirectoryFallback)
67
- .comment(
68
- CoderGatewayBundle .message(" gateway.connector.settings.enable-binary-directory-fallback.comment" ),
69
- )
70
- }.layout(RowLayout .PARENT_GRID )
71
- row {
72
- cell() // For alignment.
73
- checkBox(CoderGatewayBundle .message(" gateway.connector.settings.fallback-on-coder-for-signatures.title" ))
74
- .bindSelected(state::fallbackOnCoderForSignatures)
75
- .comment(
76
- CoderGatewayBundle .message(" gateway.connector.settings.fallback-on-coder-for-signatures.comment" ),
77
- )
78
- }.layout(RowLayout .PARENT_GRID )
67
+ group {
68
+ lateinit var signatureVerificationCheckBox: Cell <JBCheckBox >
69
+ row {
70
+ cell() // For alignment.
71
+ signatureVerificationCheckBox =
72
+ checkBox(CoderGatewayBundle .message(" gateway.connector.settings.disable-signature-validation.title" ))
73
+ .bindSelected(state::disableSignatureVerification)
74
+ .comment(
75
+ CoderGatewayBundle .message(" gateway.connector.settings.disable-signature-validation.comment" ),
76
+ )
77
+ }.layout(RowLayout .PARENT_GRID )
78
+ row {
79
+ cell() // For alignment.
80
+ checkBox(CoderGatewayBundle .message(" gateway.connector.settings.fallback-on-coder-for-signatures.title" ))
81
+ .bindSelected(state::fallbackOnCoderForSignatures)
82
+ .comment(
83
+ CoderGatewayBundle .message(" gateway.connector.settings.fallback-on-coder-for-signatures.comment" ),
84
+ )
85
+ }.visibleIf(signatureVerificationCheckBox.selected.not ())
86
+ .layout(RowLayout .PARENT_GRID )
87
+ }
79
88
row(CoderGatewayBundle .message(" gateway.connector.settings.header-command.title" )) {
80
89
textField().resizableColumn().align(AlignX .FILL )
81
90
.bindText(state::headerCommand)
@@ -122,7 +131,10 @@ class CoderSettingsConfigurable : BoundConfigurable("Coder") {
122
131
textArea().resizableColumn().align(AlignX .FILL )
123
132
.bindText(state::sshConfigOptions)
124
133
.comment(
125
- CoderGatewayBundle .message(" gateway.connector.settings.ssh-config-options.comment" , CODER_SSH_CONFIG_OPTIONS ),
134
+ CoderGatewayBundle .message(
135
+ " gateway.connector.settings.ssh-config-options.comment" ,
136
+ CODER_SSH_CONFIG_OPTIONS
137
+ ),
126
138
)
127
139
}.layout(RowLayout .PARENT_GRID )
128
140
row(CoderGatewayBundle .message(" gateway.connector.settings.setup-command.title" )) {
@@ -162,7 +174,7 @@ class CoderSettingsConfigurable : BoundConfigurable("Coder") {
162
174
.bindText(state::defaultIde)
163
175
.comment(
164
176
" The default IDE version to display in the IDE selection dropdown. " +
165
- " Example format: CL 2023.3.6 233.15619.8" ,
177
+ " Example format: CL 2023.3.6 233.15619.8" ,
166
178
)
167
179
}
168
180
row(CoderGatewayBundle .message(" gateway.connector.settings.check-ide-updates.heading" )) {
0 commit comments