espre-c6/.devcontainer/devcontainer.json

47 lines
1.5 KiB
JSON
Raw Normal View History

{
"name": "esp32-dev",
"build": {
"dockerfile": "Dockerfile",
"args": {
"NIGHTLY_VERSION": "nightly-2025-01-01"
}
},
// Privileged container in order to access /dev
"privileged": true,
// Mount USB devices (debug probes, UART interfaces, ...)
"mounts": [
"source=/dev/bus/usb/,target=/dev/bus/usb/,type=bind"
],
"runArgs": [
"--device=/dev/ttyACM0"
],
"customizations": {
"vscode": {
"settings": {
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
"editor.formatOnSaveMode": "modifications",
"editor.formatOnType": true,
"lldb.executable": "/usr/bin/lldb",
"files.watcherExclude": {
"**/target/**": true
},
"rust-analyzer.checkOnSave.command": "clippy",
"[rust]": {
"editor.defaultFormatter": "rust-lang.rust-analyzer"
}
},
"extensions": [
"rust-lang.rust-analyzer",
"tamasfe.even-better-toml",
"vadimcn.vscode-lldb",
"mutantdino.resourcemonitor",
"yzhang.markdown-all-in-one"
]
}
},
"remoteUser": "esp",
"workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind,consistency=cached",
"workspaceFolder": "/workspace"
}