Replace all files with clean upstream Cline v3.83.0 content. ShengSuanYun provider code automatically removed.
23 lines
827 B
TypeScript
23 lines
827 B
TypeScript
import { Empty, Int64Request } from "@shared/proto/cline/common"
|
|
import { Logger } from "@/shared/services/Logger"
|
|
import { Controller } from ".."
|
|
|
|
/**
|
|
* Shows task completion changes in a diff view
|
|
* @param controller The controller instance
|
|
* @param request The request containing the timestamp of the message
|
|
* @returns Empty response
|
|
*/
|
|
export async function taskCompletionViewChanges(controller: Controller, request: Int64Request): Promise<Empty> {
|
|
try {
|
|
if (request.value && controller.task) {
|
|
// presentMultifileDiff is optional on ICheckpointManager, so capture then optionally invoke
|
|
await controller.task.checkpointManager?.presentMultifileDiff?.(request.value, true)
|
|
}
|
|
return Empty.create()
|
|
} catch (error) {
|
|
Logger.error("Error in taskCompletionViewChanges handler:", error)
|
|
throw error
|
|
}
|
|
}
|