Skip to content

Commit cea8877

Browse files
authored
Merge pull request #5860 from aws/autoMerge/feature/flare-alpha
Merge main into feature/flare-alpha
2 parents ad1f4c1 + 1f25225 commit cea8877

File tree

13 files changed

+39
-17
lines changed

13 files changed

+39
-17
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+
}

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# _3.81_ (2025-06-27)
2+
13
# _3.80_ (2025-06-26)
24
- **(Feature)** Amazon Q inline: now display completions much more consistently at the user's current caret position
35
- **(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.82-SNAPSHOT
66

77
# Publish Settings
88
publishToken=

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

Lines changed: 2 additions & 1 deletion
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
@@ -418,7 +419,7 @@ class CodeTransformChatController(
418419
codeModernizerManager.codeTransformationSession?.let {
419420
it.sessionContext.customBuildCommand = customBuildCommand
420421
}
421-
val transformCapabilities = listOf(EXPLAINABILITY_V1, CLIENT_SIDE_BUILD, SELECTIVE_TRANSFORMATION_V2)
422+
val transformCapabilities = listOf(EXPLAINABILITY_V1, CLIENT_SIDE_BUILD, SELECTIVE_TRANSFORMATION_V2, IDE)
422423
codeModernizerManager.codeTransformationSession?.let {
423424
it.sessionContext.transformCapabilities = transformCapabilities
424425
}

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
}

plugins/amazonq/mynah-ui/src/mynah-ui/ui/tabs/generator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ What would you like to work on?`,
6767
],
6868
[
6969
'codetransform',
70-
`Welcome to Code Transformation! You can also run transformations from the command line. To install the tool, see the [documentation](https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/run-CLI-transformations.html).`,
70+
`Welcome to Code Transformation! **You can also run transformations from the command line. To install the tool, see the [documentation](https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/run-CLI-transformations.html).**`,
7171
],
7272
[
7373
'doc',

plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/AmazonQLanguageClientImpl.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ class AmazonQLanguageClientImpl(private val project: Project) : AmazonQLanguageC
149149
MessageType.Error -> Level.ERROR
150150
MessageType.Warning -> Level.WARN
151151
MessageType.Info, MessageType.Log -> Level.INFO
152+
else -> Level.WARN
152153
}
153154

154155
if (type == Level.ERROR &&

plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/AmazonQLspService.kt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ import software.aws.toolkits.core.utils.writeText
7373
import software.aws.toolkits.jetbrains.core.coroutines.ioDispatcher
7474
import software.aws.toolkits.jetbrains.services.amazonq.lsp.artifacts.ArtifactManager
7575
import software.aws.toolkits.jetbrains.services.amazonq.lsp.auth.DefaultAuthCredentialsService
76-
import software.aws.toolkits.jetbrains.services.amazonq.lsp.dependencies.DefaultModuleDependenciesService
7776
import software.aws.toolkits.jetbrains.services.amazonq.lsp.encryption.JwtEncryptionManager
7877
import software.aws.toolkits.jetbrains.services.amazonq.lsp.flareChat.AmazonQLspTypeAdapterFactory
7978
import software.aws.toolkits.jetbrains.services.amazonq.lsp.flareChat.AwsExtendedInitializeResult
@@ -120,10 +119,13 @@ internal class LSPProcessListener : ProcessListener {
120119
}
121120
} else if (ProcessOutputType.isStderr(outputType)) {
122121
LOG.warn { "LSP process stderr: ${event.text}" }
122+
} else if (outputType == ProcessOutputType.SYSTEM) {
123+
LOG.info { "LSP system events: ${event.text}" }
123124
}
124125
}
125126

126127
override fun processTerminated(event: ProcessEvent) {
128+
LOG.info { "LSP process terminated with exit code ${event.exitCode}" }
127129
try {
128130
this.outputStreamWriter.close()
129131
this.outputStream.close()
@@ -590,9 +592,9 @@ private class AmazonQServerInstance(private val project: Project, private val cs
590592
WorkspaceServiceHandler(project, cs, lspInitResult).also {
591593
Disposer.register(this, it)
592594
}
593-
DefaultModuleDependenciesService(project, cs).also {
594-
Disposer.register(this, it)
595-
}
595+
// DefaultModuleDependenciesService(project, cs).also {
596+
// Disposer.register(this, it)
597+
// }
596598
}
597599
}
598600
}

plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/artifacts/ManifestFetcher.kt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import com.fasterxml.jackson.annotation.JsonProperty
77
import com.fasterxml.jackson.databind.DeserializationFeature
88
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
99
import com.fasterxml.jackson.module.kotlin.readValue
10+
import com.intellij.openapi.util.registry.Registry
1011
import org.jetbrains.annotations.VisibleForTesting
1112
import software.aws.toolkits.core.utils.deleteIfExists
1213
import software.aws.toolkits.core.utils.error
@@ -21,15 +22,17 @@ import software.aws.toolkits.jetbrains.core.saveFileFromUrl
2122
import java.nio.file.Path
2223

2324
class ManifestFetcher(
24-
private val lspManifestUrl: String = DEFAULT_MANIFEST_URL,
25+
private val lspManifestUrl: String = getManifestEndpoint(),
2526
private val manifestPath: Path = DEFAULT_MANIFEST_PATH,
2627
) {
2728
companion object {
2829
private val mapper = jacksonObjectMapper().apply { configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false) }
2930
private val logger = getLogger<ManifestFetcher>()
3031

31-
private const val DEFAULT_MANIFEST_URL =
32-
"https://d3akiidp1wvqyg.cloudfront.net/qAgenticChatServer/0/manifest.json"
32+
private fun getManifestEndpoint(): String {
33+
val endpoint = Registry.get("amazon.q.flare.endpoint").asString()
34+
return endpoint.ifBlank { "https://d3akiidp1wvqyg.cloudfront.net/qAgenticChatServer/0/manifest.json" }
35+
}
3336

3437
private val DEFAULT_MANIFEST_PATH: Path = getToolkitsCommonCacheRoot()
3538
.resolve("aws")

0 commit comments

Comments
 (0)