Twinny 官方最新动态:The diff lives in the file: how an inline edit is shown, streamed and settled
来源:Twinny 官方动态 | 发布日期:2026-10-04
核心更新概览
The diff lives in the file: how an inline edit is shown, streamed and settled
详细内容记录
The diff lives in the file: how an inline edit is shown, streamed and settled Ctrl+I does not open a preview. The old lines and the new lines are both written into your document, tinted, and one of the two sets is deleted when you decide. What that costs, what it buys, and the diff and bookkeeping that make it hold still while the model is still typing. Inline edit arrived in 4.0.7 to 4.0.9, on 7 and 8 September. You select some lines, press on macOS), type an instruction, and the rewrite streams in as red and green lines where the selection was. The covers how to use it. This post is about the decision underneath, which is a little unusual: there is no preview pane and no virtual document. The removed lines and the added lines are both really in the file, and the diff is a set of decorations over them. Accepting deletes the red lines; rejecting deletes the green ones. are pure functions with no VS Code in them, is the diff as it lives in a document, and asks the model and settles the verdict.
更多技术细节可访问官方原文:https://blog.twinny.dev/posts/the-diff-lives-in-the-file/。