We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fdb0e6 commit caa6186Copy full SHA for caa6186
project/Build.scala
@@ -1148,13 +1148,8 @@ object Build {
1148
""".stripMargin)
1149
}
1150
1151
- // If .vscode does not exist yet, initialize it with the contents of .vscode-template/
1152
- val vscodeSetting = new File(".vscode/")
1153
- if (!vscodeSetting.exists()) {
1154
- vscodeSetting.mkdir()
1155
- for (file <- new File(".vscode-template/").listFiles)
1156
- java.nio.file.Files.copy(file.toPath, new File(vscodeSetting.getPath() + '/' + file.getName).toPath)
1157
- }
+ // If contents .vscode do not exist yet, initialize them with the contents of .vscode-template/
+ sbt.IO.copyDirectory(new File(".vscode-template/"), new File(".vscode/"), overwrite = false)
1158
1159
state
1160
0 commit comments