Skip to content

Commit 6b49fc8

Browse files
committed
fixing detekt issues
1 parent 5a4dc9e commit 6b49fc8

File tree

1 file changed

+7
-6
lines changed
  • plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/settings

1 file changed

+7
-6
lines changed

plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/settings/LspSettings.kt

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@
44
package software.aws.toolkits.jetbrains.settings
55

66
import com.intellij.openapi.components.PersistentStateComponent
7+
import com.intellij.openapi.components.RoamingType
78
import com.intellij.openapi.components.Service
89
import com.intellij.openapi.components.State
910
import com.intellij.openapi.components.Storage
1011
import com.intellij.openapi.components.service
1112
import com.intellij.util.xmlb.annotations.Attribute
1213

1314
@Service
14-
@State(name = "lspSettings", storages = [Storage("aws.xml")])
15+
@State(name = "lspSettings", storages = [Storage("aws.xml", roamingType = RoamingType.DISABLED)])
1516
class LspSettings : PersistentStateComponent<LspConfiguration> {
1617
private var state = LspConfiguration()
1718

@@ -29,12 +30,12 @@ class LspSettings : PersistentStateComponent<LspConfiguration> {
2930
}
3031

3132
fun setExecutablePath(artifactPath: String?) {
32-
if (artifactPath == null) {
33-
state.artifactPath = ""
34-
} else {
35-
state.artifactPath = artifactPath
36-
}
33+
if (artifactPath == null) {
34+
state.artifactPath = ""
35+
} else {
36+
state.artifactPath = artifactPath
3737
}
38+
}
3839

3940
companion object {
4041
fun getInstance(): LspSettings = service()

0 commit comments

Comments
 (0)