mirror of
https://github.com/Gmaker689/ai-diff-preview.git
synced 2026-09-26 23:11:51 +08:00
33 lines
657 B
JSON
33 lines
657 B
JSON
|
|
{
|
||
|
|
"hooks": {
|
||
|
|
"after_code_edit": {
|
||
|
|
"command": "code",
|
||
|
|
"args": [
|
||
|
|
"--command",
|
||
|
|
"aiDiffPreview.handleHook",
|
||
|
|
"--type",
|
||
|
|
"after_code_edit",
|
||
|
|
"--file",
|
||
|
|
"${file}",
|
||
|
|
"--patch",
|
||
|
|
"${patch}"
|
||
|
|
],
|
||
|
|
"description": "AI 代码编辑后触发 Diff 预览"
|
||
|
|
},
|
||
|
|
"after_write_file": {
|
||
|
|
"command": "code",
|
||
|
|
"args": [
|
||
|
|
"--command",
|
||
|
|
"aiDiffPreview.handleHook",
|
||
|
|
"--type",
|
||
|
|
"after_write_file",
|
||
|
|
"--file",
|
||
|
|
"${file}",
|
||
|
|
"--patch",
|
||
|
|
"${patch}"
|
||
|
|
],
|
||
|
|
"description": "文件写入后触发 Diff 预览"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|