We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c02883c commit 8b3defaCopy full SHA for 8b3defa
utbot-intellij/src/main/kotlin/org/utbot/intellij/plugin/ui/utils/ModuleUtils.kt
@@ -223,10 +223,10 @@ fun ContentEntry.addSourceRootIfAbsent(
223
model.dispose()
224
return
225
}
226
- VfsUtil.createDirectoryIfMissing(VfsUtilCore.urlToPath(sourceRootUrl))
227
- addSourceFolder(sourceRootUrl, type)
228
WriteCommandAction.runWriteCommandAction(rootModel.module.project) {
229
try {
+ VfsUtil.createDirectoryIfMissing(VfsUtilCore.urlToPath(sourceRootUrl))
+ addSourceFolder(sourceRootUrl, type)
230
model.commit()
231
} catch (e: Exception) {
232
logger.error { e }
0 commit comments