VSC-NeuroPilot/neuropilot

Support more diff types for diff patching

開放

#148 建立於 2025年10月23日

 (0 則留言) (0 個反應) (1 位負責人)TypeScript (11 個分叉)auto 404
enhancementgood first issuesoon™

倉庫指標

星標
 (41 顆星)
PR 合併指標
 (平均合併 3天 13小時) (30 天內合併 2 個 PR)

描述

Currently, diff patching is using a simpler but kinda-made-up diff format (the "pseudo-search-replace-diff" format).

It would be good to support different diff formats so that Neuro/Evil/Jippity/Gary can write in whatever format they desire.

Currently, I'm targeting the following diff formats:

  • XML diff format
  • Git diff format

I'm also considering the following diff formats:

Plan is to allow them to specify the diff format using a separate parameter (actionData.params?.format), then validate the diff format using validators. Alternatively, we could just detect the diff format based on heuristics, but what happens if they pasted multiple formats into the input (e.g. as part of code?), and also it's just simpler to let them specify the format separately, I think.

貢獻者指南