You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"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."
Copy file name to clipboardExpand all lines: plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonqFeatureDev/session/CodeGenerationState.kt
+12-1Lines changed: 12 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -211,7 +211,18 @@ private suspend fun CodeGenerationState.generateCode(
211
211
conversationId = config.conversationId,
212
212
)
213
213
214
-
val newFileInfo = registerNewFiles(newFileContents = codeGenerationStreamResult.new_file_contents)
214
+
val mutableNewFileContents = codeGenerationStreamResult.new_file_contents.toMutableMap()
215
+
val keysToRemove = mutableListOf<String>()
216
+
for (file in mutableNewFileContents.keys) {
217
+
if (file.endsWith(".amazonq/dev/run_command.log")) {
218
+
val contents:String= mutableNewFileContents[file].orEmpty()
Copy file name to clipboardExpand all lines: plugins/amazonq/chat/jetbrains-community/tst/software/aws/toolkits/jetbrains/services/amazonqFeatureDev/FeatureDevTestBase.kt
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -65,6 +65,8 @@ open class FeatureDevTestBase(
65
65
internalval otherStatus ="Other"
66
66
internalval testTabId ="test-tab-id"
67
67
internalval testFilePaths =mapOf(Pair("test.ts", "This is a comment"))
Copy file name to clipboardExpand all lines: plugins/amazonq/chat/jetbrains-community/tst/software/aws/toolkits/jetbrains/services/amazonqFeatureDev/session/CodeGenerationStateTest.kt
+31-1Lines changed: 31 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -39,13 +39,14 @@ class CodeGenerationStateTest : FeatureDevTestBase() {
0 commit comments