修改了devcontainer.json的生命周期钩子
This commit is contained in:
@@ -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"
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user