mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-02 16:25:00 +01:00
* sessions - AI customizations for selfhost * more * Update .github/hooks/hooks.json Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update .github/skills/sessions/SKILL.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
43 lines
961 B
JSON
43 lines
961 B
JSON
{
|
|
"version": 1,
|
|
"hooks": {
|
|
"sessionStart": [
|
|
{
|
|
"type": "command",
|
|
"bash": "if [ -f ~/.vscode-worktree-setup ]; then nohup bash -c 'npm ci && npm run compile' > /tmp/worktree-setup-$(date +%Y-%m-%d_%H-%M-%S).log 2>&1 & fi",
|
|
"powershell": "if (Test-Path \"$env:USERPROFILE\\.vscode-worktree-setup\") { $log = \"$env:TEMP\\worktree-setup-$(Get-Date -Format 'yyyy-MM-dd_HH-mm-ss').log\"; $dir = $PWD.Path; Start-Job -ScriptBlock { param($d, $l) Set-Location $d; & { npm ci; if ($LASTEXITCODE -eq 0) { npm run compile } } *> $l } -ArgumentList $dir, $log | Out-Null }"
|
|
}
|
|
],
|
|
"sessionEnd": [
|
|
{
|
|
"type": "command",
|
|
"bash": ""
|
|
}
|
|
],
|
|
"agentStop": [
|
|
{
|
|
"type": "command",
|
|
"bash": ""
|
|
}
|
|
],
|
|
"userPromptSubmitted": [
|
|
{
|
|
"type": "command",
|
|
"bash": ""
|
|
}
|
|
],
|
|
"preToolUse": [
|
|
{
|
|
"type": "command",
|
|
"bash": ""
|
|
}
|
|
],
|
|
"postToolUse": [
|
|
{
|
|
"type": "command",
|
|
"bash": ""
|
|
}
|
|
]
|
|
}
|
|
}
|