Skip to content

Commit f1def71

Browse files
committed
Fixing detekt
1 parent 8f34394 commit f1def71

File tree

1 file changed

+3
-1
lines changed
  • plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonqFeatureDev/session

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ package software.aws.toolkits.jetbrains.services.amazonqFeatureDev.session
66
import com.intellij.openapi.diagnostic.logger
77
import com.intellij.openapi.project.Project
88
import com.intellij.openapi.vfs.VfsUtil
9+
import kotlinx.coroutines.yield
910
import software.aws.toolkits.jetbrains.common.util.resolveAndCreateOrUpdateFile
1011
import software.aws.toolkits.jetbrains.common.util.resolveAndDeleteFile
1112
import software.aws.toolkits.jetbrains.services.amazonq.FeatureDevSessionContext
@@ -186,17 +187,18 @@ class Session(val tabID: String, val project: Project) {
186187
val selectedSourceFolder = context.selectedSourceFolder.toNioPath()
187188

188189
filePaths.forEach {
190+
yield()
189191
resolveAndCreateOrUpdateFile(selectedSourceFolder, it.zipFilePath, it.fileContent)
190192
it.changeApplied = true
191193
}
192194
}
193-
194195
suspend fun applyDeleteFiles(
195196
deletedFiles: List<DeletedFileInfo>,
196197
) {
197198
val selectedSourceFolder = context.selectedSourceFolder.toNioPath()
198199

199200
deletedFiles.forEach {
201+
yield()
200202
resolveAndDeleteFile(selectedSourceFolder, it.zipFilePath)
201203
it.changeApplied = true
202204
}

0 commit comments

Comments
 (0)