Skip to content

Commit a044d3e

Browse files
authoredMar 25, 2025··
Amazon Q: Moved "Include suggestions with code references" setting to General (#5499)
...
1 parent 42c1a99 commit a044d3e

File tree

4 files changed

+16
-7
lines changed

4 files changed

+16
-7
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type" : "feature",
3+
"description" : "Amazon Q: Moved \"Include suggestions with code references\" setting to General"
4+
}

‎plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/settings/CodeWhispererConfigurable.kt

+3-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class CodeWhispererConfigurable(private val project: Project) :
6161
}
6262
}
6363

64-
group(message("aws.settings.codewhisperer.group.inline_suggestions")) {
64+
group(message("aws.settings.codewhisperer.group.general")) {
6565
row {
6666
checkBox(message("aws.settings.codewhisperer.include_code_with_reference")).apply {
6767
connect.subscribe(
@@ -81,7 +81,9 @@ class CodeWhispererConfigurable(private val project: Project) :
8181
}.enabled(false)
8282
}
8383
}
84+
}
8485

86+
group(message("aws.settings.codewhisperer.group.inline_suggestions")) {
8587
row {
8688
checkBox(message("aws.settings.codewhisperer.automatic_import_adder")).apply {
8789
connect.subscribe(

‎plugins/amazonq/codewhisperer/jetbrains-community/tst/software/aws/toolkits/jetbrains/services/codewhisperer/codescan/CodeWhispererProjectCodeScanTest.kt

+8-6
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,14 @@ class CodeWhispererProjectCodeScanTest : CodeWhispererCodeScanTestBase(PythonCod
112112

113113
@Test
114114
fun `test getNormalizedRelativePath()`() {
115-
assertThat(
116-
listOf("projectName\\src\\PackageName", "projectName/src/PackageName")
117-
).contains(getNormalizedRelativePath("projectName", Paths.get("src/PackageName")))
118-
assertThat(
119-
listOf("projectName\\src\\Package2", "projectName/src/Package2")
120-
).contains(getNormalizedRelativePath("projectName", Paths.get("src/./Package1/../Package2")))
115+
assertThat(getNormalizedRelativePath("projectName", Paths.get("src/PackageName"))).satisfiesAnyOf(
116+
{ assertThat(it).isEqualTo("projectName\\src\\PackageName") },
117+
{ assertThat(it).isEqualTo("projectName/src/PackageName") },
118+
)
119+
assertThat(getNormalizedRelativePath("projectName", Paths.get("src/./Package1/../Package2"))).satisfiesAnyOf(
120+
{ assertThat(it).isEqualTo("projectName\\src\\Package2") },
121+
{ assertThat(it).isEqualTo("projectName/src/Package2") },
122+
)
121123
}
122124

123125
private fun setupCsharpProject() {

‎plugins/core/resources/resources/software/aws/toolkits/resources/MessagesBundle.properties

+1
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@ aws.settings.codewhisperer.configurable.title=Amazon Q
279279
aws.settings.codewhisperer.feature_development=Feature Development
280280
aws.settings.codewhisperer.feature_development.allow_running_code_and_test_commands=Allow /dev to run code and test commands
281281
aws.settings.codewhisperer.group.data_sharing=Data Sharing
282+
aws.settings.codewhisperer.group.general=General
282283
aws.settings.codewhisperer.group.inline_suggestions=Inline Suggestions
283284
aws.settings.codewhisperer.group.plugin_settings=Plugin Settings
284285
aws.settings.codewhisperer.group.q_chat=Chat

0 commit comments

Comments
 (0)
Please sign in to comment.