Skip to content

Commit dfce2b1

Browse files
authored
Merge branch 'main' into image
2 parents 714a4a1 + 08edb5d commit dfce2b1

File tree

24 files changed

+203
-88
lines changed

24 files changed

+203
-88
lines changed

.changes/3.81.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"date" : "2025-06-27",
3+
"version" : "3.81",
4+
"entries" : [ ]
5+
}

.changes/3.82.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"date" : "2025-07-03",
3+
"version" : "3.82",
4+
"entries" : [ {
5+
"type" : "bugfix",
6+
"description" : "Skip inline completion when deleting characters"
7+
} ]
8+
}

.changes/3.83.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"date" : "2025-07-07",
3+
"version" : "3.83",
4+
"entries" : [ {
5+
"type" : "bugfix",
6+
"description" : "Fix auto-suggestions being shown when suggestions are paused"
7+
} ]
8+
}

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# _3.83_ (2025-07-07)
2+
- **(Bug Fix)** Fix auto-suggestions being shown when suggestions are paused
3+
4+
# _3.82_ (2025-07-03)
5+
- **(Bug Fix)** Skip inline completion when deleting characters
6+
7+
# _3.81_ (2025-06-27)
8+
19
# _3.80_ (2025-06-26)
210
- **(Feature)** Amazon Q inline: now display completions much more consistently at the user's current caret position
311
- **(Feature)** Amazon Q inline: now Q completions can co-exist with JetBrains' native IntelliSense completions, when both are showing, press Tab or your customized key shortcuts to accept Q completions and press Enter to accept IntelliSense completions.

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.81-SNAPSHOT
5+
toolkitVersion=3.84-SNAPSHOT
66

77
# Publish Settings
88
publishToken=

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,14 @@ class Browser(parent: Disposable, private val webUri: URI, val project: Project)
248248
box-shadow: none !important;
249249
border-radius: 0 !important;
250250
}
251+
select.mynah-form-input {
252+
-webkit-appearance: menulist !important;
253+
appearance: menulist !important;
254+
padding: 0 !important;
255+
}
256+
.mynah-select-handle {
257+
visibility: hidden;
258+
}
251259
.mynah-ui-spinner-container > span.mynah-ui-spinner-logo-part > .mynah-ui-spinner-logo-mask.text {
252260
will-change: transform !important;
253261
transform: translateZ(0) !important;

plugins/amazonq/codetransform/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codemodernizer/constants/CodeTransformChatItems.kt

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -356,10 +356,16 @@ fun buildUserInputCustomDependencyVersionsChatContent(message: String) = CodeTra
356356
type = CodeTransformChatMessageType.PendingAnswer,
357357
)
358358

359-
fun buildPromptTargetJDKNameChatContent(version: String) = CodeTransformChatMessageContent(
360-
message = message("codemodernizer.chat.message.enter_jdk_name", version),
361-
type = CodeTransformChatMessageType.FinalizedAnswer,
362-
)
359+
fun buildPromptTargetJDKNameChatContent(version: String, currentJdkName: String?): CodeTransformChatMessageContent {
360+
var message = message("codemodernizer.chat.message.enter_jdk_name", version)
361+
if (currentJdkName != null) {
362+
message += "\n\ncurrent: `$currentJdkName`"
363+
}
364+
return CodeTransformChatMessageContent(
365+
message = message,
366+
type = CodeTransformChatMessageType.FinalizedAnswer,
367+
)
368+
}
363369

364370
fun buildInvalidTargetJdkNameChatContent(jdkName: String) = CodeTransformChatMessageContent(
365371
message = message("codemodernizer.chat.message.enter_jdk_name_error", jdkName),

plugins/amazonq/codetransform/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codemodernizer/controller/CodeTransformChatController.kt

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ import software.aws.toolkits.jetbrains.services.codemodernizer.model.CustomerSel
102102
import software.aws.toolkits.jetbrains.services.codemodernizer.model.DownloadArtifactResult
103103
import software.aws.toolkits.jetbrains.services.codemodernizer.model.DownloadFailureReason
104104
import software.aws.toolkits.jetbrains.services.codemodernizer.model.EXPLAINABILITY_V1
105+
import software.aws.toolkits.jetbrains.services.codemodernizer.model.IDE
105106
import software.aws.toolkits.jetbrains.services.codemodernizer.model.InvalidTelemetryReason
106107
import software.aws.toolkits.jetbrains.services.codemodernizer.model.JobId
107108
import software.aws.toolkits.jetbrains.services.codemodernizer.model.MAVEN_BUILD_RUN_UNIT_TESTS
@@ -137,6 +138,7 @@ class CodeTransformChatController(
137138
private val codeModernizerManager = CodeModernizerManager.getInstance(context.project)
138139
private val artifactHandler = ArtifactHandler(context.project, GumbyClient.getInstance(context.project), codeTransformChatHelper)
139140
private val telemetry = CodeTransformTelemetryManager.getInstance(context.project)
141+
private val jdkVersionToName = mutableMapOf<String, String>()
140142

141143
override suspend fun processChatPromptMessage(message: IncomingCodeTransformMessage.ChatPrompt) {
142144
if (chatSessionStorage.getSession(message.tabId).conversationState == CodeTransformConversationState.PROMPT_TARGET_JDK_NAME) {
@@ -418,7 +420,7 @@ class CodeTransformChatController(
418420
codeModernizerManager.codeTransformationSession?.let {
419421
it.sessionContext.customBuildCommand = customBuildCommand
420422
}
421-
val transformCapabilities = listOf(EXPLAINABILITY_V1, CLIENT_SIDE_BUILD, SELECTIVE_TRANSFORMATION_V2)
423+
val transformCapabilities = listOf(EXPLAINABILITY_V1, CLIENT_SIDE_BUILD, SELECTIVE_TRANSFORMATION_V2, IDE)
422424
codeModernizerManager.codeTransformationSession?.let {
423425
it.sessionContext.transformCapabilities = transformCapabilities
424426
}
@@ -455,6 +457,10 @@ class CodeTransformChatController(
455457
codeTransformChatHelper.addNewMessage(buildInvalidTargetJdkNameChatContent(providedJdkName))
456458
return
457459
}
460+
val jdkVersion = codeModernizerManager.codeTransformationSession?.sessionContext?.targetJavaVersion?.name
461+
if (jdkVersion != null) {
462+
jdkVersionToName[jdkVersion] = targetJdkName
463+
}
458464
codeModernizerManager.codeTransformationSession?.sessionContext?.targetJdkName = targetJdkName
459465
codeTransformChatHelper.addNewMessage(buildUserReplyChatContent(message.message.trim()))
460466
// start local build once we get target JDK path
@@ -505,7 +511,8 @@ dependencyManagement:
505511
private suspend fun promptForTargetJdkName(tabId: String) {
506512
chatSessionStorage.getSession(tabId).conversationState = CodeTransformConversationState.PROMPT_TARGET_JDK_NAME
507513
val targetJdkVersion = codeModernizerManager.codeTransformationSession?.sessionContext?.targetJavaVersion?.name.orEmpty()
508-
codeTransformChatHelper.addNewMessage(buildPromptTargetJDKNameChatContent(targetJdkVersion))
514+
val currentJdkName = jdkVersionToName[targetJdkVersion]
515+
codeTransformChatHelper.addNewMessage(buildPromptTargetJDKNameChatContent(targetJdkVersion, currentJdkName))
509516
codeTransformChatHelper.sendChatInputEnabledMessage(tabId, true)
510517
codeTransformChatHelper.sendUpdatePlaceholderMessage(tabId, "Enter the name of your $targetJdkVersion")
511518
}

plugins/amazonq/codetransform/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codemodernizer/model/ZipManifest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ data class ZipManifest(
88
val dependenciesRoot: String = ZIP_DEPENDENCIES_PATH,
99
val version: String = UPLOAD_ZIP_MANIFEST_VERSION,
1010
val hilCapabilities: List<String> = listOf(HIL_1P_UPGRADE_CAPABILITY),
11-
val transformCapabilities: List<String> = listOf(EXPLAINABILITY_V1, CLIENT_SIDE_BUILD, SELECTIVE_TRANSFORMATION_V2),
11+
val transformCapabilities: List<String> = listOf(EXPLAINABILITY_V1, CLIENT_SIDE_BUILD, SELECTIVE_TRANSFORMATION_V2, IDE),
1212
val customBuildCommand: String = MAVEN_BUILD_RUN_UNIT_TESTS,
1313
val requestedConversions: RequestedConversions? = null, // only used for SQL conversions for now
1414
var dependencyUpgradeConfigFile: String? = null,

plugins/amazonq/codetransform/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codemodernizer/state/CodeModernizerState.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import com.intellij.util.xmlb.annotations.Property
1010
import software.aws.toolkits.jetbrains.services.codemodernizer.model.CLIENT_SIDE_BUILD
1111
import software.aws.toolkits.jetbrains.services.codemodernizer.model.CodeModernizerSessionContext
1212
import software.aws.toolkits.jetbrains.services.codemodernizer.model.EXPLAINABILITY_V1
13+
import software.aws.toolkits.jetbrains.services.codemodernizer.model.IDE
1314
import software.aws.toolkits.jetbrains.services.codemodernizer.model.JobId
1415
import software.aws.toolkits.jetbrains.services.codemodernizer.model.MAVEN_BUILD_RUN_UNIT_TESTS
1516
import software.aws.toolkits.jetbrains.services.codemodernizer.model.SELECTIVE_TRANSFORMATION_V2
@@ -69,7 +70,7 @@ class CodeModernizerState : BaseState() {
6970
configurationFile,
7071
sourceJavaSdkVersion,
7172
targetJavaSdkVersion,
72-
listOf(EXPLAINABILITY_V1, SELECTIVE_TRANSFORMATION_V2, CLIENT_SIDE_BUILD),
73+
listOf(EXPLAINABILITY_V1, SELECTIVE_TRANSFORMATION_V2, CLIENT_SIDE_BUILD, IDE),
7374
lastJobContext[JobDetails.CUSTOM_BUILD_COMMAND] ?: MAVEN_BUILD_RUN_UNIT_TESTS // default to running unit tests
7475
)
7576
}

0 commit comments

Comments
 (0)