mirror of
https://github.com/hanzoai/code.git
synced 2026-09-30 20:53:35 +00:00
add history to approve/reject
This commit is contained in:
@@ -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()
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user