@@ -18,6 +18,7 @@ import com.intellij.openapi.fileEditor.FileDocumentManager
18
18
import com.intellij.openapi.fileTypes.FileType
19
19
import com.intellij.openapi.module.Module
20
20
import com.intellij.openapi.progress.ProgressIndicator
21
+ import com.intellij.openapi.project.DumbAwareAction
21
22
import com.intellij.openapi.project.DumbService
22
23
import com.intellij.openapi.project.Project
23
24
import com.intellij.openapi.util.Computable
@@ -97,6 +98,7 @@ import java.nio.file.Path
97
98
import java.util.concurrent.CancellationException
98
99
import java.util.concurrent.CountDownLatch
99
100
import java.util.concurrent.TimeUnit
101
+ import org.utbot.intellij.plugin.util.showSettingsEditor
100
102
import org.utbot.sarif.*
101
103
102
104
object CodeGenerationController {
@@ -771,9 +773,9 @@ object CodeGenerationController {
771
773
if (fileLength > UtSettings .maxTestFileSize && file.name != model.codegenLanguage.utilClassFileName) {
772
774
CommonLoggingNotifier ().notify(
773
775
" Size of ${file.virtualFile.presentableName} exceeds configured limit " +
774
- " (${FileUtil .byteCountToDisplaySize(UtSettings .maxTestFileSize.toLong())} ), reformatting was skipped. " +
775
- " The limit can be configured in '{HOME_DIR}/.utbot/settings.properties' with ' maxTestFileSize' property " ,
776
- model.project )
776
+ " (${FileUtil .byteCountToDisplaySize(UtSettings .maxTestFileSize.toLong())} ), reformatting was skipped." ,
777
+ model.project, model.testModule, arrayOf( DumbAwareAction .create( " Configure the Limit " ) { showSettingsEditor(model.project, " maxTestFileSize" ) }
778
+ ) )
777
779
return
778
780
}
779
781
0 commit comments