Skip to content

Commit

Permalink
create .idea directory if missing (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcinVaadin authored Mar 20, 2024
1 parent 8e4b9b5 commit a9e08dc
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,10 @@ class CopilotPluginUtil {
VfsUtil.findFileByIoFile(ideaDir, false)?.let {
return@runReadAction PsiManager.getInstance(project).findDirectory(it)
}
LOG.warn("$ideaDir is not available")
VfsUtil.createDirectoryIfMissing(ideaDir.path)?.let {
LOG.info("$ideaDir created")
return@runReadAction PsiManager.getInstance(project).findDirectory(it)
}
}
return@runReadAction null
}
Expand Down

0 comments on commit a9e08dc

Please sign in to comment.