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
Copy file name to clipboardExpand all lines: plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/cwc/commands/ActionRegistrar.kt
Copy file name to clipboardExpand all lines: plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/cwc/commands/EditorContextCommand.kt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ enum class EditorContextCommand(
Copy file name to clipboardExpand all lines: plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/cwc/controller/ChatController.kt
+1-18Lines changed: 1 addition & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -289,28 +289,11 @@ class ChatController private constructor(
289
289
if (message.project != context.project) {
290
290
return
291
291
}
292
-
val fileContext = contextExtractor.extractContextForTrigger(ExtractionTriggerType.ContextMenu)
293
-
val triggerId =UUID.randomUUID().toString()
294
-
val codeSelection ="\n```\n${fileContext.focusAreaContext?.codeSelection?.trimIndent()?.trim()}\n```\n"
295
-
296
-
if (message.command ==EditorContextCommand.SendToPrompt) {
297
-
messagePublisher.publish(
298
-
EditorContextCommandMessage(
299
-
message = codeSelection,
300
-
command = message.command.actionId,
301
-
triggerId = triggerId,
302
-
),
303
-
)
304
-
return
305
-
}
292
+
306
293
if (message.command ==EditorContextCommand.GenerateUnitTests) {
307
294
// Publish an event to "codetest" tab with command as "test" and type as "addAnswer"
0 commit comments