misc: improve vscode devcontainer experience

This change enables a better IDE experience in vscode by doing two
things:
1) Enables the rust-analyzer, which enables a bunch of features in
   vscode
2) Installs the needed deps for `cargo fmt` to work.
This commit is contained in:
Shawn Wilsher
2025-10-14 02:54:48 -07:00
committed by GitHub
parent bf5b76269f
commit a32c8baa25
+20 -2
View File
@@ -1,8 +1,26 @@
{ {
"name": "LLDAP dev", "name": "LLDAP dev",
"build": { "dockerfile": "Dockerfile" }, "build": {
"dockerfile": "Dockerfile"
},
"customizations": {
"vscode": {
"extensions": [
"rust-lang.rust-analyzer"
],
"settings": {
"rust-analyzer.linkedProjects": [
"./Cargo.toml"
]
}
}
},
"features": {
"ghcr.io/devcontainers/features/rust:1": {}
},
"forwardPorts": [ "forwardPorts": [
3890, 3890,
17170 17170
] ],
"remoteUser": "lldapdev"
} }