diff options
| author | wznmickey <first@wznmickey.com> | 2024-03-28 00:11:19 +0800 |
|---|---|---|
| committer | wznmickey <first@wznmickey.com> | 2024-03-28 00:11:19 +0800 |
| commit | dd72429af49afbfbf0c1f59f053ecc4382d074fc (patch) | |
| tree | 81cc6a54f23a6f5c8a2ca4ae221efda0910c64a4 /.devcontainer/devcontainer.json | |
| parent | 92183a74c4c7b91459c1371bb7a68b5e4c1c23bd (diff) | |
| parent | 34d04139cd372edc0dc611ad83e056d7c4b61a73 (diff) | |
Merge remote-tracking branch 'origin/main'
Diffstat (limited to '.devcontainer/devcontainer.json')
| -rw-r--r-- | .devcontainer/devcontainer.json | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index e1b2cec..f25e8bd 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,17 +1,8 @@ { - "image": "mcr.microsoft.com/devcontainers/universal:2-linux", - "waitFor": "onCreateCommand", - "onCreateCommand": ".devcontainer/setup.sh", - "updateContentCommand": "cargo build", - "postCreateCommand": "", - "postAttachCommand": { - "server": "rustlings watch" - }, - "customizations": { - "vscode": { - "extensions": [ - "rust-lang.rust-analyzer" - ] - } + "image": "mcr.microsoft.com/devcontainers/rust:1", + "updateContentCommand": ["cargo", "build"], + "postAttachCommand": ["rustlings", "watch"], + "remoteEnv": { + "PATH": "${containerEnv:PATH}:${containerWorkspaceFolder}/target/debug" } } |
