From 11cc9f8b4e619f72e47205235feedffcd960a0b0 Mon Sep 17 00:00:00 2001 From: Andrew Pareles <43356051+andrewpareles@users.noreply.github.com> Date: Fri, 18 Apr 2025 18:03:33 -0700 Subject: [PATCH] Update VOID_CODEBASE_GUIDE.md --- VOID_CODEBASE_GUIDE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VOID_CODEBASE_GUIDE.md b/VOID_CODEBASE_GUIDE.md index e4a24532..96c7a022 100644 --- a/VOID_CODEBASE_GUIDE.md +++ b/VOID_CODEBASE_GUIDE.md @@ -80,7 +80,7 @@ This is what allows Void to quickly apply code even on 1000-line files. It's the The `editCodeService` file runs Apply. The same exact code is also used when the LLM calls the Edit tool, and when you submit Cmd+K. Just different versions of Fast/Slow Apply mode. Here is some important terminology: -- A **DiffZone** is a {startLine, endLine} region in which we compute and show **Diffs** (red/green areas), based on the original code we store for the DiffArea, and the current file contents. We refresh all Diffs in each DiffArea when the user types too, so it's always accurate. +- A **DiffZone** is a {startLine, endLine} region in which we compute and show **Diffs** (red/green areas). We refresh all Diffs in each DiffArea when the user types too, so it's always accurate. Diffs are computed by comparing the original content of the DiffArea (stored at creation) with the current file's content in the new DiffArea region. - A **DiffArea** is a generalization that tracks line numbers like a DiffZone. - The only type of zone that can "stream" is a DiffZone. Each DiffZone has an llmCancelToken if it's streaming. - When you click Apply, we create a **DiffZone** over that the full file so that any changes that the LLM makes will show up in red/green. We then stream the change.