File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed File renamed without changes.
Original file line number Diff line number Diff line change @@ -1148,10 +1148,12 @@ object Build {
1148
1148
""" .stripMargin)
1149
1149
}
1150
1150
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/" )
1152
1153
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)
1155
1157
}
1156
1158
1157
1159
state
You can’t perform that action at this time.
0 commit comments