Skip to content

Commit 4fd0e6a

Browse files
committed
Merge remote-tracking branch 'upstream/main' into cwspr-inline-lang
2 parents b15f49e + 7ff4f29 commit 4fd0e6a

File tree

65 files changed

+501
-379
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+501
-379
lines changed

.changes/3.30.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"date" : "2024-09-27",
3+
"version" : "3.30",
4+
"entries" : [ {
5+
"type" : "bugfix",
6+
"description" : "Amazon Q Code Transformation: notify users when no JDK is set in Project Structure settings"
7+
}, {
8+
"type" : "bugfix",
9+
"description" : "Automatically terminate orphaned process for `@workspace` helper"
10+
} ]
11+
}

.changes/next-release/bugfix-79dc3ea8-07f6-4eff-ae0f-0ea0a02db7f7.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# _3.30_ (2024-09-27)
2+
- **(Bug Fix)** Amazon Q Code Transformation: notify users when no JDK is set in Project Structure settings
3+
- **(Bug Fix)** Automatically terminate orphaned process for `@workspace` helper
4+
15
# _3.29_ (2024-09-19)
26
- **(Feature)** Support `@workspace` queries for specific files like "`@workspace` what does test.ts do?".
37
- **(Bug Fix)** Amazon Q Feature Dev: fix iteration count messaging during code insertion

detekt-rules/src/software/aws/toolkits/gradle/detekt/rules/BannedImportsRule.kt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,16 @@ class BannedImportsRule : Rule() {
5050
)
5151
}
5252

53+
if (importedFqName?.startsWith("org.gradle.internal.impldep") == true) {
54+
report(
55+
CodeSmell(
56+
issue,
57+
Entity.from(element),
58+
message = "Avoid using Gradle's internal implementation classes: not public API and may change without notice."
59+
)
60+
)
61+
}
62+
5363
if (importedFqName?.contains("kotlinx.coroutines.Dispatchers") == true) {
5464
report(
5565
CodeSmell(

detekt-rules/tst/software/aws/toolkits/gradle/detekt/rules/BannedImportsRuleTest.kt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,15 @@ class BannedImportsRuleTest {
5151
assertThat(rule.lint("import org.assertj.core.api.Assertions.assertThat")).isEmpty()
5252
}
5353

54+
@Test
55+
fun `Importing Gradle internal implementation classes fails`() {
56+
assertThat(rule.lint("import org.gradle.internal.impldep"))
57+
.singleElement()
58+
.matches {
59+
it.id == "BannedImports" && it.message == "Avoid using Gradle's internal implementation classes: not public API and may change without notice."
60+
}
61+
}
62+
5463
@Test
5564
fun `Importing Dispatchers fails`() {
5665
assertThat(rule.lint("import kotlinx.coroutines.Dispatchers"))

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
# Toolkit Version
5-
toolkitVersion=3.30-SNAPSHOT
5+
toolkitVersion=3.31-SNAPSHOT
66

77
# Publish Settings
88
publishToken=

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ mockitoKotlin = "5.4.0"
2525
mockk = "1.13.10"
2626
nimbus-jose-jwt = "9.40"
2727
node-gradle = "7.0.2"
28-
telemetryGenerator = "1.0.259"
28+
telemetryGenerator = "1.0.262"
2929
testLogger = "4.0.0"
3030
testRetry = "1.5.10"
3131
# test-only; platform provides slf4j transitively at runtime

plugins/amazonq/chat/jetbrains-community/resources/META-INF/plugin-chat.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<projectListeners>
99
<listener class="software.aws.toolkits.jetbrains.services.amazonq.toolwindow.AmazonQToolWindowListener"
10-
topic="com.intellij.openapi.wm.ex.ToolWindowManagerListener"/>
10+
topic="com.intellij.openapi.wm.ex.ToolWindowManagerListener"/>
1111
<listener class="software.aws.toolkits.jetbrains.services.cwc.editor.context.project.ProjectContextEditorListener"
1212
topic="com.intellij.openapi.fileEditor.FileEditorManagerListener"/>
1313
</projectListeners>
@@ -70,6 +70,11 @@
7070
<keyboard-shortcut keymap="$default" first-keystroke="meta alt A" />
7171
</action>
7272

73+
<action id="aws.toolkit.jetbrains.core.services.cwc.commands.GenerateUnitTestsAction"
74+
class="software.aws.toolkits.jetbrains.services.cwc.commands.GenerateUnitTestsAction">
75+
<keyboard-shortcut keymap="$default" first-keystroke="meta alt T" />
76+
</action>
77+
7378
<action id="aws.toolkit.jetbrains.core.services.cwc.commands.SendToPromptAction"
7479
class="software.aws.toolkits.jetbrains.services.cwc.commands.SendToPromptAction">
7580
<keyboard-shortcut keymap="$default" first-keystroke="meta alt S" />

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/gettingstarted/QGettingStartedContent.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ class QGettingStartedContent(val project: Project) : Disposable {
6262
AmazonQToolWindow.getStarted(project)
6363
}
6464
}
65-
null
65+
66+
JBCefJSQuery.Response(null)
6667
}
6768
receiveMessageQuery.addHandler(handler)
6869
}

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/webview/Browser.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ import com.intellij.openapi.util.Disposer
88
import com.intellij.ui.jcef.JBCefJSQuery
99
import org.cef.CefApp
1010
import software.aws.toolkits.jetbrains.services.amazonq.util.createBrowser
11-
import java.util.function.Function
12-
13-
typealias MessageReceiver = Function<String, JBCefJSQuery.Response>
1411

1512
/*
1613
Displays the web view for the Amazon Q tool window

0 commit comments

Comments
 (0)