chore(devcontainer): configure chat tool auto-approval
This commit is contained in:
@@ -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": {
|
||||||
|
|||||||
Reference in New Issue
Block a user