Skip to content

Commit 09b685d

Browse files
Update devcontainer.json
1 parent 37e2b9e commit 09b685d

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,17 @@
55
"vscode": {
66
"extensions": [
77
"vscjava.vscode-java-pack"
8-
]
8+
],
9+
"settings": {
10+
"workbench.startupEditor": "none"
11+
}
912
}
1013
},
1114
"features": {
1215
"ghcr.io/devcontainers/features/java:1": {
1316
"version": "21"
1417
}
1518
},
16-
"postCreateCommand": "code --install-extension ${containerWorkspaceFolder}/extension/liquid-java-0.0.15.vsix && npm install",
17-
"postStartCommand": "code examples/demo/src/"
18-
}
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"
21+
}

0 commit comments

Comments
 (0)