mirror of
https://github.com/voideditor/void
synced 2026-05-24 09:58:23 +00:00
diffArea stream highlighting works perfectly!
This commit is contained in:
parent
689a583598
commit
b6b5deaa58
1 changed files with 0 additions and 2 deletions
|
|
@ -731,7 +731,6 @@ Please finish writing the new file by applying the diff to the original file. Re
|
|||
],
|
||||
onText: (newText: string, fullText: string) => {
|
||||
const computedDiffs = this._writeDiffAreaLLMText(diffArea, fullText)
|
||||
computedDiffs.pop() // ignore the last diff because it was used to compute the sweep
|
||||
this._refreshDiffArea(diffArea, computedDiffs)
|
||||
},
|
||||
onFinalMessage: (fullText: string) => {
|
||||
|
|
@ -741,7 +740,6 @@ Please finish writing the new file by applying the diff to the original file. Re
|
|||
const computedDiffs = findDiffs(diffArea.originalCode, fullText)
|
||||
this._refreshDiffArea(diffArea, computedDiffs)
|
||||
diffArea._sweepState = { isStreaming: false, line: null }
|
||||
console.log('diffArea', diffArea.originalCode, diffArea.startLine, diffArea.endLine)
|
||||
resolve();
|
||||
},
|
||||
onError: (e: any) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue