mirror of
https://github.com/voideditor/void
synced 2026-05-24 09:58:23 +00:00
add history to approve/reject
This commit is contained in:
parent
9a591ba29f
commit
0c2660e283
1 changed files with 4 additions and 4 deletions
|
|
@ -788,7 +788,7 @@ Please finish writing the new file by applying the diff to the original file. Re
|
|||
const model = diffArea._model
|
||||
|
||||
// add to history
|
||||
// const { onFinishEdit } = this._addToHistory(model)
|
||||
const { onFinishEdit } = this._addToHistory(model)
|
||||
|
||||
const originalLines = diffArea.originalCode.split('\n')
|
||||
let newOriginalCode: string
|
||||
|
|
@ -841,7 +841,7 @@ Please finish writing the new file by applying the diff to the original file. Re
|
|||
this._refreshDiffArea(diffArea, computedDiffs)
|
||||
}
|
||||
|
||||
// onFinishEdit()
|
||||
onFinishEdit()
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -860,7 +860,7 @@ Please finish writing the new file by applying the diff to the original file. Re
|
|||
const model = diffArea._model
|
||||
|
||||
// add to history
|
||||
// const { onFinishEdit } = this._addToHistory(model)
|
||||
const { onFinishEdit } = this._addToHistory(model)
|
||||
|
||||
let writeText: string
|
||||
let toRange: IRange
|
||||
|
|
@ -916,7 +916,7 @@ Please finish writing the new file by applying the diff to the original file. Re
|
|||
this._refreshDiffArea(diffArea, computedDiffs)
|
||||
}
|
||||
|
||||
// onFinishEdit()
|
||||
onFinishEdit()
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue