From a32c8baa255c9abe35c7354370755fa2f05d6bb9 Mon Sep 17 00:00:00 2001 From: Shawn Wilsher Date: Tue, 14 Oct 2025 02:54:48 -0700 Subject: [PATCH] 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. --- .devcontainer/devcontainer.json | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index cb57540..f6a667b 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,8 +1,26 @@ { "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": [ 3890, 17170 - ] + ], + "remoteUser": "lldapdev" }