Skip to content

Commit 92e93b4

Browse files
authored
Merge branch 'feature/q-lsp' into rli/lsp-proxy
2 parents b8dcb4d + 8b08e5c commit 92e93b4

File tree

37 files changed

+2445
-280
lines changed

37 files changed

+2445
-280
lines changed

.changes/3.65.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"date" : "2025-04-10",
3+
"version" : "3.65",
4+
"entries" : [ {
5+
"type" : "bugfix",
6+
"description" : "Fix issue where Amazon Q cannot process chunks from local `@workspace` context"
7+
} ]
8+
}

.changes/3.66.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"date" : "2025-04-11",
3+
"version" : "3.66",
4+
"entries" : [ {
5+
"type" : "feature",
6+
"description" : "The logs emitted by the Agent during user command execution will be accepted and written to `.amazonq/dev/run_command.log` file in the user's local repository."
7+
}, {
8+
"type" : "bugfix",
9+
"description" : "Unit test generation now completes successfully when using the `/test` command "
10+
} ]
11+
}

.changes/3.67.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"date" : "2025-04-18",
3+
"version" : "3.67",
4+
"entries" : [ {
5+
"type" : "bugfix",
6+
"description" : "Amazon Q: Customization now resets with a warning if unavailable in the selected profile."
7+
}, {
8+
"type" : "bugfix",
9+
"description" : "Q panel will get stuck while signin if users have multiple windows"
10+
}, {
11+
"type" : "bugfix",
12+
"description" : "Fix integer overflow when local context index input is larger than 2GB"
13+
}, {
14+
"type" : "bugfix",
15+
"description" : "Fix workspace index process quits when hitting a race condition"
16+
}, {
17+
"type" : "bugfix",
18+
"description" : "Fix infinite loop when workspace indexing server fails to initialize"
19+
} ]
20+
}

.changes/next-release/bugfix-00947041-108c-4ef1-bec6-eb749dae7c2f.json

Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type" : "bugfix",
3+
"description" : "/review: disabled highlighter for ignored issues"
4+
}

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
1+
# _3.67_ (2025-04-18)
2+
- **(Bug Fix)** Amazon Q: Customization now resets with a warning if unavailable in the selected profile.
3+
- **(Bug Fix)** Q panel will get stuck while signin if users have multiple windows
4+
- **(Bug Fix)** Fix integer overflow when local context index input is larger than 2GB
5+
- **(Bug Fix)** Fix workspace index process quits when hitting a race condition
6+
- **(Bug Fix)** Fix infinite loop when workspace indexing server fails to initialize
7+
8+
# _3.66_ (2025-04-11)
9+
- **(Feature)** The logs emitted by the Agent during user command execution will be accepted and written to `.amazonq/dev/run_command.log` file in the user's local repository.
10+
- **(Bug Fix)** Unit test generation now completes successfully when using the `/test` command
11+
112
# _3.64_ (2025-04-10)
213
- **(Bug Fix)** Fix issue where IDE freezes when logging into Amazon Q
314

15+
# _3.65_ (2025-04-10)
16+
- **(Bug Fix)** Fix issue where Amazon Q cannot process chunks from local `@workspace` context
17+
418
# _3.63_ (2025-04-08)
519
- **(Feature)** Enterprise users can choose their preferred Amazon Q profile to improve personalization and workflow across different business regions
620
- **(Bug Fix)** Amazon Q /doc: close diff tab and open README file in preview mode after user accept changes

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.65-SNAPSHOT
5+
toolkitVersion=3.68-SNAPSHOT
66

77
# Publish Settings
88
publishToken=

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/toolwindow/AmazonQToolWindowFactory.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ class AmazonQToolWindowFactory : ToolWindowFactory, DumbAware {
9595
project.messageBus.connect(toolWindow.disposable).subscribe(
9696
QRegionProfileSelectedListener.TOPIC,
9797
object : QRegionProfileSelectedListener {
98-
override fun onProfileSelected(project: Project, profile: QRegionProfile?) {
98+
// note we name myProject intentionally ow it will shadow the "project" provided by the IDE
99+
override fun onProfileSelected(myProject: Project, profile: QRegionProfile?) {
99100
if (project.isDisposed) return
100101
AmazonQToolWindow.getInstance(project).disposeAndRecreate()
101102
qPanel.setContent(AmazonQToolWindow.getInstance(project).component)

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonqCodeTest/controller/CodeTestChatController.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,7 @@ class CodeTestChatController(
409409
.build()
410410
return GenerateAssistantResponseRequest.builder()
411411
.conversationState(conversationState)
412+
.profileArn(QRegionProfileManager.getInstance().activeProfile(context.project)?.arn)
412413
.build()
413414
}
414415

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonqFeatureDev/session/CodeGenerationState.kt

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import software.aws.toolkits.telemetry.MetricResult
3030
import java.util.UUID
3131

3232
private val logger = getLogger<CodeGenerationState>()
33+
private const val RUN_COMMAND_LOG_PATH = ".amazonq/dev/run_command.log"
3334

3435
class CodeGenerationState(
3536
override val tabID: String,
@@ -211,9 +212,23 @@ private suspend fun CodeGenerationState.generateCode(
211212
conversationId = config.conversationId,
212213
)
213214

214-
val newFileInfo = registerNewFiles(newFileContents = codeGenerationStreamResult.new_file_contents)
215-
val deletedFileInfo = registerDeletedFiles(deletedFiles = codeGenerationStreamResult.deleted_files)
215+
val fileContents = codeGenerationStreamResult.new_file_contents.filterKeys { file ->
216+
if (file.endsWith(RUN_COMMAND_LOG_PATH)) {
217+
val contents: String = codeGenerationStreamResult.new_file_contents[file].orEmpty()
218+
val truncatedContents = if (contents.length > 10000000) {
219+
contents.substring(0, 10000000)
220+
} else {
221+
contents
222+
}
223+
logger.info(truncatedContents) { "Run command log: $truncatedContents" }
224+
false
225+
} else {
226+
true
227+
}
228+
}
216229

230+
val newFileInfo = registerNewFiles(newFileContents = fileContents)
231+
val deletedFileInfo = registerDeletedFiles(deletedFiles = codeGenerationStreamResult.deleted_files)
217232
return CodeGenerationResult(
218233
newFiles = newFileInfo,
219234
deletedFiles = deletedFileInfo,

0 commit comments

Comments
 (0)