Skip to content
This repository was archived by the owner on Aug 1, 2025. It is now read-only.

Commit 0ac400c

Browse files
committed
Changes for review
1 parent 57258c2 commit 0ac400c

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

jetbrains/src/main/kotlin/com/sourcegraph/cody/config/CodyApplicationSettings.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ data class CodyApplicationSettings(
2222
var shouldAcceptNonTrustedCertificatesAutomatically: Boolean = false,
2323
var isOffScreenRenderingEnabled: Boolean = true,
2424
var updateMode: UpdateMode = UpdateMode.Automatic,
25-
var automaticallyDisableJCEFOutOfProcess: Boolean = true
25+
var automaticallyDisableJcefOutOfProcess: Boolean = true
2626
) : PersistentStateComponent<CodyApplicationSettings> {
2727
override fun getState(): CodyApplicationSettings = this
2828

@@ -42,7 +42,7 @@ data class CodyApplicationSettings(
4242
state.shouldAcceptNonTrustedCertificatesAutomatically
4343
this.isOffScreenRenderingEnabled = state.isOffScreenRenderingEnabled
4444
this.updateMode = state.updateMode
45-
this.automaticallyDisableJCEFOutOfProcess = state.automaticallyDisableJCEFOutOfProcess
45+
this.automaticallyDisableJcefOutOfProcess = state.automaticallyDisableJcefOutOfProcess
4646
}
4747

4848
companion object {

jetbrains/src/main/kotlin/com/sourcegraph/cody/config/ui/SourcegraphConfigurable.kt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ class SourcegraphConfigurable(val project: Project) :
1818
private val codyApplicationSettings = CodyApplicationSettings.instance
1919
private var channel: UpdateChannel = findConfiguredChannel()
2020
private var updateMode = codyApplicationSettings.updateMode
21-
private var automaticallyDisableJCEFOutOfProcess =
22-
codyApplicationSettings.automaticallyDisableJCEFOutOfProcess
21+
private var automaticallyDisableJcefOutOfProcess =
22+
codyApplicationSettings.automaticallyDisableJcefOutOfProcess
2323

2424
override fun createPanel(): DialogPanel {
2525
dialogPanel = panel {
@@ -43,8 +43,8 @@ class SourcegraphConfigurable(val project: Project) :
4343
row {
4444
checkBox("Automatically disable JCEF out-of-process rendering")
4545
.bindSelected(
46-
{ automaticallyDisableJCEFOutOfProcess },
47-
{ automaticallyDisableJCEFOutOfProcess = it })
46+
{ automaticallyDisableJcefOutOfProcess },
47+
{ automaticallyDisableJcefOutOfProcess = it })
4848
}
4949
}
5050
}
@@ -53,15 +53,15 @@ class SourcegraphConfigurable(val project: Project) :
5353

5454
override fun reset() {
5555
dialogPanel.reset()
56-
automaticallyDisableJCEFOutOfProcess =
57-
codyApplicationSettings.automaticallyDisableJCEFOutOfProcess
56+
automaticallyDisableJcefOutOfProcess =
57+
codyApplicationSettings.automaticallyDisableJcefOutOfProcess
5858
updateMode = codyApplicationSettings.updateMode
5959
}
6060

6161
override fun apply() {
6262
super.apply()
63-
codyApplicationSettings.automaticallyDisableJCEFOutOfProcess =
64-
automaticallyDisableJCEFOutOfProcess
63+
codyApplicationSettings.automaticallyDisableJcefOutOfProcess =
64+
automaticallyDisableJcefOutOfProcess
6565
codyApplicationSettings.updateMode = updateMode
6666
if (codyApplicationSettings.updateMode != UpdateMode.Never) {
6767
CheckUpdatesTask(project).queue()

jetbrains/src/main/kotlin/com/sourcegraph/cody/initialization/PostStartupActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class PostStartupActivity : ProjectActivity {
5353
}
5454
}
5555

56-
if (CodyApplicationSettings.instance.automaticallyDisableJCEFOutOfProcess) {
56+
if (CodyApplicationSettings.instance.automaticallyDisableJcefOutOfProcess) {
5757
Registry.get("ide.browser.jcef.out-of-process.enabled").setValue(false)
5858
}
5959

0 commit comments

Comments
 (0)