Skip to content

Commit 7097e41

Browse files
committed
feat: ✨ Use image property and remove warnings
1 parent f6dba37 commit 7097e41

File tree

1 file changed

+33
-26
lines changed

1 file changed

+33
-26
lines changed

.devcontainer/devcontainer.json

Lines changed: 33 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,40 @@
11
{
22
"name": "espressif-training",
3-
"build": {
4-
"dockerfile": "Dockerfile",
5-
"args": {
6-
"NIGHTLY_VERSION": "nightly-2023-02-28"
3+
// Comment the image and use the build property to build the image from the
4+
// Dockerfile instead of downloading it from https://hub.docker.com/r/espressif/rust-std-training
5+
"image": "docker.io/espressif/rust-std-training",
6+
// "build": {
7+
// "dockerfile": "Dockerfile",
8+
// "args": {
9+
// "NIGHTLY_VERSION": "nightly-2023-02-28"
10+
// }
11+
// },
12+
"customizations": {
13+
"vscode": {
14+
"settings": {
15+
"editor.formatOnPaste": true,
16+
"editor.formatOnSave": true,
17+
"editor.formatOnSaveMode": "modifications",
18+
"editor.formatOnType": true,
19+
"lldb.executable": "/usr/bin/lldb",
20+
"files.watcherExclude": {
21+
"**/target/**": true
22+
},
23+
"rust-analyzer.checkOnSave.command": "clippy",
24+
"[rust]": {
25+
"editor.defaultFormatter": "rust-lang.rust-analyzer"
26+
}
27+
},
28+
"extensions": [
29+
"rust-lang.rust-analyzer",
30+
"tamasfe.even-better-toml",
31+
"vadimcn.vscode-lldb",
32+
"serayuzgur.crates",
33+
"mutantdino.resourcemonitor",
34+
"yzhang.markdown-all-in-one"
35+
]
736
}
837
},
9-
"settings": {
10-
"editor.formatOnPaste": true,
11-
"editor.formatOnSave": true,
12-
"editor.formatOnSaveMode": "modifications",
13-
"editor.formatOnType": true,
14-
"lldb.executable": "/usr/bin/lldb",
15-
"files.watcherExclude": {
16-
"**/target/**": true
17-
},
18-
"rust-analyzer.checkOnSave.command": "clippy",
19-
"[rust]": {
20-
"editor.defaultFormatter": "rust-lang.rust-analyzer"
21-
}
22-
},
23-
"extensions": [
24-
"rust-lang.rust-analyzer",
25-
"tamasfe.even-better-toml",
26-
"vadimcn.vscode-lldb",
27-
"serayuzgur.crates",
28-
"mutantdino.resourcemonitor",
29-
"yzhang.markdown-all-in-one"
30-
],
3138
"remoteUser": "esp",
3239
"workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind,consistency=cached",
3340
"workspaceFolder": "/workspace"

0 commit comments

Comments
 (0)