X Tutup
Skip to content

Commit 0370b35

Browse files
Update devcontainer.json
1 parent 3f67239 commit 0370b35

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.devcontainer/devcontainer.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,14 @@
55
"vscode": {
66
"extensions": [
77
"vscjava.vscode-java-pack"
8-
],
9-
"settings": {
10-
"workbench.startupEditor": "none"
11-
}
8+
]
129
}
1310
},
1411
"features": {
1512
"ghcr.io/devcontainers/features/java:1": {
1613
"version": "21"
1714
}
1815
},
19-
"postCreateCommand": "echo 'Installing extension and dependencies...' && code --install-extension ${containerWorkspaceFolder}/extension/liquid-java-0.0.15.vsix --force && npm install",
20-
"postAttachCommand": "echo 'Opening examples...' && find ${containerWorkspaceFolder}/examples -type f -name '*.java' | head -1 | xargs code"
16+
"postCreateCommand": "apt-get update && apt-get install -y git-lfs && git lfs install && git lfs pull && code --install-extension ./extension/liquid-java-0.0.15.vsix --force && if [ -f 'package.json' ]; then npm install; fi",
17+
"postStartCommand": "if [ -d './examples/demo/src/' ]; then code ./examples/demo/src/; else echo 'Examples directory not found'; fi"
2118
}

0 commit comments

Comments
 (0)
X Tutup