Skip to content

Commit 1e479be

Browse files
committed
Move vs code template to .vscode-template/
1 parent 37b18f5 commit 1e479be

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed
File renamed without changes.

project/Build.scala

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1148,10 +1148,12 @@ object Build {
11481148
""".stripMargin)
11491149
}
11501150

1151-
val vscodeSetting = new File(".vscode/settings.json")
1151+
// If .vscode does not exist yet, initialize it with the contents of .vscode-template/
1152+
val vscodeSetting = new File(".vscode/")
11521153
if(!vscodeSetting.exists()) {
1153-
val vscodeSettingTemplate = new File(".vscode/settings-template.json")
1154-
java.nio.file.Files.copy(vscodeSettingTemplate.toPath, vscodeSetting.toPath)
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)
11551157
}
11561158

11571159
state

0 commit comments

Comments
 (0)