修改了devcontainer.json的生命周期钩子

This commit is contained in:
2025-10-26 14:56:11 +00:00
parent b8ce918291
commit 3383e71a9d

View File

@@ -1,9 +1,6 @@
{ {
"name": "Rust", "name": "Rust",
"image": "mcr.microsoft.com/devcontainers/rust:1-1-bullseye", "image": "mcr.microsoft.com/devcontainers/rust:1-1-bullseye",
"postStartCommand": "cargo build && clear",
"customizations": { "customizations": {
"vscode": { "vscode": {
"settings": {}, "settings": {},
@@ -44,11 +41,14 @@
} }
}, },
"forwardPorts": [8080], "forwardPorts": [8080],
"portsAttributes": { "portsAttributes": {
"8080": { "8080": {
"label": "Rust Application", "label": "Rust Application",
"onAutoForward": "notify" "onAutoForward": "notify"
} }
} },
"postAttachCommand": "cargo build && clear"
} }