60 lines
2.0 KiB
JSON
60 lines
2.0 KiB
JSON
{
|
|
// 后端 Python 虚拟环境(解释器路径供语言服务/调试使用)
|
|
"python.defaultInterpreterPath": "${workspaceFolder}/backend/.venv/Scripts/python.exe",
|
|
// 关闭 Python 扩展在新建终端时自动 activate,避免与下方 PowerShell (HXOPS) 的 cd 钩子重复激活
|
|
"python.terminal.activateEnvironment": false,
|
|
"python.venvPath": "${workspaceFolder}/backend",
|
|
"python.venvFolders": [".venv"],
|
|
"github.copilot.chat.commitMessageGeneration.instructions": [
|
|
{
|
|
"text": "Generate Git commit messages in Simplified Chinese by default."
|
|
},
|
|
{
|
|
"text": "Follow Conventional Commits format: <type>(<scope>): <subject>."
|
|
},
|
|
{
|
|
"text": "Use English for type and scope; use Simplified Chinese for subject and body."
|
|
},
|
|
{
|
|
"text": "Allowed types are feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert."
|
|
},
|
|
{
|
|
"text": "The subject must be imperative, no period at the end, and no longer than 100 Chinese characters."
|
|
},
|
|
{
|
|
"text": "Avoid vague messages such as update, fix bug, or WIP."
|
|
},
|
|
{
|
|
"text": "When a body is useful, write concise Chinese bullet points describing concrete changes."
|
|
}
|
|
],
|
|
|
|
// 默认终端:加载 cd 钩子,进入 backend 时自动激活 .venv
|
|
"terminal.integrated.defaultProfile.windows": "PowerShell (HXOPS)",
|
|
"terminal.integrated.profiles.windows": {
|
|
"PowerShell (HXOPS)": {
|
|
"source": "PowerShell",
|
|
"icon": "terminal-powershell",
|
|
"args": [
|
|
"-NoExit",
|
|
"-ExecutionPolicy",
|
|
"Bypass",
|
|
"-File",
|
|
"${workspaceFolder}/scripts/powershell-backend-auto-venv.ps1"
|
|
]
|
|
},
|
|
"HXOPS Backend": {
|
|
"source": "PowerShell",
|
|
"icon": "server-environment",
|
|
"args": [
|
|
"-NoExit",
|
|
"-ExecutionPolicy",
|
|
"Bypass",
|
|
"-Command",
|
|
"Set-Location '${workspaceFolder}/backend'; if (Test-Path '.venv/Scripts/Activate.ps1') { . '.venv/Scripts/Activate.ps1' }"
|
|
]
|
|
}
|
|
},
|
|
"js/ts.tsdk.path": "node_modules\\typescript\\lib"
|
|
}
|