Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -295,24 +295,15 @@ class CodeWhispererConfigurable(private val project: Project) :
ToolkitConnectionManagerListener.TOPIC,
object : ToolkitConnectionManagerListener {
override fun activeConnectionChanged(newConnection: ToolkitConnection?) {
enabled(isCodeWhispererEnabled(project) && !isSso)
enabled(isCodeWhispererEnabled(project))
}
}
)

enabled(invoke && !isSso)
enabled(invoke)

if (isSso) {
bindSelected({ false }, {})
} else {
bindSelected(codeWhispererSettings::isMetricOptIn, codeWhispererSettings::toggleMetricOptIn)
}
bindSelected(codeWhispererSettings::isMetricOptIn, codeWhispererSettings::toggleMetricOptIn)
}.comment(message("aws.settings.codewhisperer.configurable.opt_out.tooltip"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the string should match VSC if we are doing this

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are not yet changing the language. They are waiting for legal approval.

if (isSso) {
label(message("aws.settings.codewhisperer.configurable.controlled_by_admin")).applyToComponent {
font = font.deriveFont(Font.ITALIC).deriveFont((font.size - 1).toFloat())
}.enabled(false)
}
}
}
}.also {
Expand Down
Loading