Skip to content

Commit 5b39064

Browse files
committed
Update devcontainer config
Fix deprecation warnings
1 parent f83ed78 commit 5b39064

File tree

1 file changed

+45
-49
lines changed

1 file changed

+45
-49
lines changed

.devcontainer/devcontainer.json

Lines changed: 45 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,53 @@
11
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
22
// https://github.com/microsoft/vscode-dev-containers/tree/v0.238.1/containers/rust
33
{
4-
"name": "Rust",
5-
"build": {
6-
"dockerfile": "Dockerfile",
7-
"args": {
8-
// Use the VARIANT arg to pick a Debian OS version: buster, bullseye
9-
// Use bullseye when on local on arm64/Apple Silicon.
10-
"VARIANT": "bullseye"
11-
}
12-
},
13-
"runArgs": [
14-
"--cap-add=SYS_PTRACE",
15-
"--security-opt",
16-
"seccomp=unconfined"
17-
],
4+
"name": "Rust",
5+
"build": {
6+
"dockerfile": "Dockerfile",
7+
"args": {
8+
// Use the VARIANT arg to pick a Debian OS version: buster, bullseye
9+
// Use bullseye when on local on arm64/Apple Silicon.
10+
"VARIANT": "bullseye"
11+
}
12+
},
13+
"runArgs": ["--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined"],
1814

19-
// Configure tool-specific properties.
20-
"customizations": {
21-
// Configure properties specific to VS Code.
22-
"vscode": {
23-
// Set *default* container specific settings.json values on container create.
24-
"settings": {
25-
"lldb.executable": "/usr/bin/lldb",
26-
// VS Code don't watch files under ./target
27-
"files.watcherExclude": {
28-
"**/target/**": true
29-
},
30-
"rust-analyzer.checkOnSave.command": "clippy"
31-
},
32-
33-
// Add the IDs of extensions you want installed when the container is created.
34-
"extensions": [
35-
"vadimcn.vscode-lldb",
36-
"mutantdino.resourcemonitor",
37-
"rust-lang.rust-analyzer",
38-
"tamasfe.even-better-toml",
39-
"serayuzgur.crates"
40-
]
41-
}
42-
},
15+
// Configure tool-specific properties.
16+
"customizations": {
17+
// Configure properties specific to VS Code.
18+
"vscode": {
19+
// Set *default* container specific settings.json values on container create.
20+
"settings": {
21+
"lldb.executable": "/usr/bin/lldb",
22+
// VS Code don't watch files under ./target
23+
"files.watcherExclude": {
24+
"**/target/**": true
25+
},
26+
"rust-analyzer.checkOnSave.command": "clippy"
27+
},
4328

44-
// Use 'forwardPorts' to make a list of ports inside the container available locally.
45-
// "forwardPorts": [],
29+
// Add the IDs of extensions you want installed when the container is created.
30+
"extensions": [
31+
"vadimcn.vscode-lldb",
32+
"mutantdino.resourcemonitor",
33+
"rust-lang.rust-analyzer",
34+
"tamasfe.even-better-toml",
35+
"serayuzgur.crates"
36+
]
37+
}
38+
},
4639

47-
// Use 'postCreateCommand' to run commands after the container is created.
48-
// "postCreateCommand": "rustc --version",
40+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
41+
// "forwardPorts": [],
4942

50-
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
51-
"remoteUser": "vscode",
52-
"features": {
53-
"git": "os-provided",
54-
"github-cli": "latest",
55-
"fish": "latest"
56-
}
43+
// Use 'postCreateCommand' to run commands after the container is created.
44+
// "postCreateCommand": "rustc --version",
45+
46+
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
47+
"remoteUser": "vscode",
48+
"features": {
49+
"git": "os-provided",
50+
"github-cli": "latest",
51+
"ghcr.io/meaningful-ooo/devcontainer-features/fish:1": {}
52+
}
5753
}

0 commit comments

Comments
 (0)