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/controller/ChatController.kt
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -130,7 +130,7 @@ class ChatController private constructor(
130
130
var shouldAddIndexInProgressMessage:Boolean=false
131
131
var shouldUseWorkspaceContext:Boolean=false
132
132
val isDataCollectionGroup =CodeWhispererFeatureConfigService.getInstance().getIsDataCollectionEnabled()
133
-
val startUrl =getStartUrl(context.project)
133
+
val startUrl = getStartUrl(context.project)
134
134
135
135
if (prompt.contains("@workspace")) {
136
136
if (CodeWhispererSettings.getInstance().isProjectContextEnabled()) {
@@ -334,9 +334,11 @@ class ChatController private constructor(
334
334
}
335
335
336
336
// Create prompt
337
-
val prompt =if (EditorContextCommand.GenerateUnitTests== message.command)
338
-
"${message.command.verb} the following part of my code for me: $codeSelection"else
337
+
val prompt =if (EditorContextCommand.GenerateUnitTests== message.command) {
338
+
"${message.command.verb} the following part of my code for me: $codeSelection"
339
+
} else {
339
340
"${message.command} the following part of my code for me: $codeSelection"
Copy file name to clipboardExpand all lines: plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/cwc/controller/chat/userIntent/UserIntentRecognizer.kt
0 commit comments