mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-21 04:41:16 -05:00
fix: update tests to handle new experimental diff option and increase the default confidence to 1
This commit is contained in:
@@ -6,8 +6,8 @@ import { DiffResult, DiffStrategy } from "../../types"
|
||||
export class NewUnifiedDiffStrategy implements DiffStrategy {
|
||||
private readonly confidenceThreshold: number
|
||||
|
||||
constructor(confidenceThreshold: number = 0.9) {
|
||||
this.confidenceThreshold = Math.max(confidenceThreshold, 0.8)
|
||||
constructor(confidenceThreshold: number = 1) {
|
||||
this.confidenceThreshold = Math.max(confidenceThreshold, 0.8);
|
||||
}
|
||||
|
||||
private parseUnifiedDiff(diff: string): Diff {
|
||||
|
||||
Reference in New Issue
Block a user