-
Notifications
You must be signed in to change notification settings - Fork 234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft: File level acceptance #5044
base: main
Are you sure you want to change the base?
Conversation
@@ -16,6 +16,8 @@ | |||
import software.aws.toolkits.jetbrains.services.amazonqFeatureDev.messages.sendCodeResult | |||
import software.aws.toolkits.jetbrains.services.amazonqFeatureDev.messages.sendSystemPrompt | |||
import software.aws.toolkits.jetbrains.services.amazonqFeatureDev.messages.sendUpdatePlaceholder | |||
import software.aws.toolkits.jetbrains.services.amazonqFeatureDev.messages.updateChatAnswer |
Check warning
Code scanning / QDJVMC
Unused import directive Warning
@@ -16,6 +16,8 @@ | |||
import software.aws.toolkits.jetbrains.services.amazonqFeatureDev.messages.sendCodeResult | |||
import software.aws.toolkits.jetbrains.services.amazonqFeatureDev.messages.sendSystemPrompt | |||
import software.aws.toolkits.jetbrains.services.amazonqFeatureDev.messages.sendUpdatePlaceholder | |||
import software.aws.toolkits.jetbrains.services.amazonqFeatureDev.messages.updateChatAnswer | |||
import software.aws.toolkits.jetbrains.services.amazonqFeatureDev.messages.updateFileComponent |
Check warning
Code scanning / QDJVMC
Unused import directive Warning
@@ -88,7 +90,7 @@ | |||
} | |||
|
|||
// Atm this is the only possible path as codegen is mocked to return empty. | |||
if (filePaths.size or deletedFiles.size == 0) { | |||
if (filePaths.size == 0 && deletedFiles.size == 0) { |
Check notice
Code scanning / QDJVMC
Size zero check can be replaced with 'isEmpty()' Note
@@ -88,7 +90,7 @@ | |||
} | |||
|
|||
// Atm this is the only possible path as codegen is mocked to return empty. | |||
if (filePaths.size or deletedFiles.size == 0) { | |||
if (filePaths.size == 0 && deletedFiles.size == 0) { |
Check notice
Code scanning / QDJVMC
Size zero check can be replaced with 'isEmpty()' Note
filePaths = filePaths, | ||
deletedFiles = deletedFiles, | ||
messageId = messageId, | ||
suspend fun MessagePublisher.updateChatAnswer(tabId: String, messageId: String, message: String?, followUps: List<FollowUp>) { |
Check warning
Code scanning / QDJVMC
Redundant 'suspend' modifier Warning
filePaths = filePaths, | ||
deletedFiles = deletedFiles, | ||
messageId = messageId, | ||
suspend fun MessagePublisher.updateChatAnswer(tabId: String, messageId: String, message: String?, followUps: List<FollowUp>) { |
Check warning
Code scanning / QDJVMC
Unused symbol Warning
Types of changes
Description
Checklist
License
I confirm that my contribution is made under the terms of the Apache 2.0 license.