Skip to content

Commit ae96ee2

Browse files
authored
Update devcontainer.json
1 parent 667b449 commit ae96ee2

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

.devcontainer/devcontainer.json

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"settings": {
1717
"workbench.colorTheme": "codeSTACKr Theme",
1818
"workbench.iconTheme": "vscode-icons",
19-
"editor.formatOnSave",
19+
"editor.formatOnSave": true,
2020
"shellformat.flag": "-i=2 -bn -ci -sr"
2121
},
2222

@@ -104,29 +104,20 @@
104104
"timonwong.shellcheck",
105105
"github.vscode-pull-request-github",
106106
"saposs.vscode-ui5-language-assistant",
107-
"iljapostnovs.ui5plugin"
107+
"iljapostnovs.ui5plugin",
108+
"github.vscode-pull-request-github"
108109
],
109110

110111
// Ensure that Docker socket is mapped into the development container
111112
"runArgs": ["-v", "/var/run/docker.sock:/var/run/docker.sock"],
112113
// "runArgs": ["-v", "/var/run/docker.sock:/var/run/docker.sock", "-v", "/usr/local/share/kube-devcontainer://wsl$/Ubuntu-20.04/home/user/.kube/config"],
113114

114-
// https://stackoverflow.com/questions/58227845/how-can-i-use-an-env-file-to-pass-environment-variables-into-a-standalone-vscode
115-
// file .env
116-
// MY_URL=https://my.com/
117-
// MY_SECRET=unicorns
118-
// "runArgs": [
119-
// "--env-file", "${localWorkspaceFolder}/.devcontainer/.env"
120-
// ],
121-
122115
// Use 'forwardPorts' to make a list of ports inside the container available locally.
123116
"forwardPorts": [3000, 4000, 4004, 5000, 8000, 8080],
124117

125118
// Use 'postCreateCommand' to run commands after the container is created.
126119
// "postCreateCommand": "npm install && npm audit fix && npm install --prefix /workspaces/yourAppName/db && --prefix /workspaces/yourAppName/js && npm install --prefix /workspaces/yourAppName/web",
127120
// "postCreateCommand": "npm install && npm audit fix && npm install --prefix /workspaces/yourAppName/db && npm install --prefix /workspaces/yourAppName/js && npm start --prefix /workspaces/yourAppName/js && npm audit fix --prefix /workspaces/yourAppName/js && npm install --prefix /workspaces/yourAppName/web && npm start --prefix /workspaces/yourAppName/db",
128-
// "postStartCommand": "bash -i -c 'nvm install --lts --latest-npm'",
129-
// "postStartCommand": "nvm install --lts --latest-npm",
130121

131122
// Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root.
132123
"remoteUser": "node"

0 commit comments

Comments
 (0)