Skip to content

Commit a6f67c1

Browse files
committed
refactor(devcontainer): update customizations syntax
1 parent 9c3bdb4 commit a6f67c1

File tree

2 files changed

+40
-32
lines changed

2 files changed

+40
-32
lines changed

.devcontainer/devcontainer.json

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,25 @@
55
"runServices": ["dev", "docs"],
66
"workspaceFolder": "/home/compiler/src",
77
"postAttachCommand": ["/bin/bash", ".devcontainer/postAttach.sh"],
8-
// Set *default* container specific settings.json values on container create.
9-
"settings": {
10-
"terminal.integrated.defaultProfile.linux": "bash",
11-
"terminal.integrated.profiles.linux": {
12-
"bash": {
13-
"path": "/bin/bash"
14-
}
8+
"customizations": {
9+
"vscode": {
10+
// Set *default* container specific settings.json values on container create.
11+
"settings": {
12+
"terminal.integrated.defaultProfile.linux": "bash",
13+
"terminal.integrated.profiles.linux": {
14+
"bash": {
15+
"path": "/bin/bash"
16+
}
17+
}
18+
},
19+
// Add the IDs of extensions you want installed when the container is created.
20+
"extensions": [
21+
"bpruitt-goddard.mermaid-markdown-syntax-highlighting",
22+
"DavidAnson.vscode-markdownlint",
23+
"eamodio.gitlens",
24+
"esbenp.prettier-vscode",
25+
"mhutchie.git-graph"
26+
]
1527
}
16-
},
17-
// Add the IDs of extensions you want installed when the container is created.
18-
"extensions": [
19-
"bpruitt-goddard.mermaid-markdown-syntax-highlighting",
20-
"DavidAnson.vscode-markdownlint",
21-
"eamodio.gitlens",
22-
"esbenp.prettier-vscode",
23-
"mhutchie.git-graph"
24-
]
28+
}
2529
}

.devcontainer/devcontainer.pre-built.json

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,25 @@
22
"name": "compilerla/template-devcontainer-pre-built",
33
"image": "ghcr.io/compilerla/template-devcontainer:main",
44
"postAttachCommand": "pre-commit install --overwrite",
5-
// Set *default* container specific settings.json values on container create.
6-
"settings": {
7-
"terminal.integrated.defaultProfile.linux": "bash",
8-
"terminal.integrated.profiles.linux": {
9-
"bash": {
10-
"path": "/bin/bash"
11-
}
5+
"customizations": {
6+
"vscode": {
7+
// Set *default* container specific settings.json values on container create.
8+
"settings": {
9+
"terminal.integrated.defaultProfile.linux": "bash",
10+
"terminal.integrated.profiles.linux": {
11+
"bash": {
12+
"path": "/bin/bash"
13+
}
14+
}
15+
},
16+
// Add the IDs of extensions you want installed when the container is created.
17+
"extensions": [
18+
"bpruitt-goddard.mermaid-markdown-syntax-highlighting",
19+
"DavidAnson.vscode-markdownlint",
20+
"eamodio.gitlens",
21+
"esbenp.prettier-vscode",
22+
"mhutchie.git-graph"
23+
]
1224
}
13-
},
14-
// Add the IDs of extensions you want installed when the container is created.
15-
"extensions": [
16-
"bpruitt-goddard.mermaid-markdown-syntax-highlighting",
17-
"DavidAnson.vscode-markdownlint",
18-
"eamodio.gitlens",
19-
"esbenp.prettier-vscode",
20-
"mhutchie.git-graph"
21-
]
25+
}
2226
}

0 commit comments

Comments
 (0)