Skip to content
Merged
Show file tree
Hide file tree
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
@@ -0,0 +1,4 @@
{
"type" : "bugfix",
"description" : "Fixed an issue where Amazon Q settings did not persist across IDE restarts"
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@ package software.aws.toolkits.jetbrains.settings

import com.intellij.openapi.components.BaseState
import com.intellij.openapi.components.PersistentStateComponent
import com.intellij.openapi.components.RoamingType
import com.intellij.openapi.components.Service
import com.intellij.openapi.components.State
import com.intellij.openapi.components.Storage
import com.intellij.openapi.components.service
import com.intellij.util.xmlb.annotations.Property

@Service
@State(name = "codewhispererSettings", storages = [Storage("aws.xml", roamingType = RoamingType.DISABLED)])
@State(name = "codewhispererSettings", storages = [Storage("aws.xml")])
class CodeWhispererSettings : PersistentStateComponent<CodeWhispererConfiguration> {
private val state = CodeWhispererConfiguration()

Expand Down Expand Up @@ -119,7 +118,11 @@ class CodeWhispererSettings : PersistentStateComponent<CodeWhispererConfiguratio
class CodeWhispererConfiguration : BaseState() {
@get:Property
val value by map<CodeWhispererConfigurationType, Boolean>()

@get:Property
val intValue by map<CodeWhispererIntConfigurationType, Int>()

@get:Property
val stringValue by map<CodeWhispererStringConfigurationType, String>()
}

Expand Down
Loading