chore(devcontainer): configure chat tool auto-approval
All checks were successful
CI/CD Pipeline / playwright (push) Successful in 1m55s
CI/CD Pipeline / build-and-deploy (push) Successful in 1m45s

This commit is contained in:
严浩
2025-11-13 00:27:35 +08:00
parent d0a7afd5df
commit a82190d4aa

View File

@@ -23,7 +23,7 @@
], ],
"forwardPorts": [4730, 4731], // vscode://settings/remote.localPortHost -> 默认只监听 localhost "forwardPorts": [4730, 4731], // vscode://settings/remote.localPortHost -> 默认只监听 localhost
"portsAttributes": { "portsAttributes": {
"4730": { "label": "开发服务器端口", "onAutoForward": "openPreview" }, "4730": { "label": "开发服务器端口", "onAutoForward": "notify" },
"4731": { "label": "预览服务器端口", "onAutoForward": "notify" } "4731": { "label": "预览服务器端口", "onAutoForward": "notify" }
}, },
"customizations": { "customizations": {
@@ -53,6 +53,17 @@
"esbenp.prettier-vscode" "esbenp.prettier-vscode"
], ],
"settings": { "settings": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"chat.tools.autoApprove": true,
"chat.tools.terminal.autoApprove": { "/.*/": true },
// * 尽管使用了“/.*/”,但有些还是会失败,因为有几个错误的默认值:
// * https://github.com/microsoft/vscode/issues/266651#issuecomment-3292581459
"tasks": { "tasks": {
"version": "2.0.0", "version": "2.0.0",
"tasks": [ "tasks": [
@@ -69,11 +80,6 @@
} }
] ]
}, },
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"terminal.integrated.defaultProfile.linux": "💲zsh", "terminal.integrated.defaultProfile.linux": "💲zsh",
"terminal.integrated.profiles.linux": { "terminal.integrated.profiles.linux": {
"💲zsh": { "💲zsh": {