You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tip: "Make sure to include both SEARCH and REPLACE sections with correct markers"
126
-
});
127
+
constdebugInfo=this.debugEnabled ? `\n\nDebug Info:\n- Expected Format: <<<<<<< SEARCH\\n[search content]\\n=======\\n[replace content]\\n>>>>>>> REPLACE\n- Tip: Make sure to include both SEARCH and REPLACE sections with correct markers` : '';
127
128
128
129
return{
129
130
success: false,
130
-
error: "Invalid diff format - missing required SEARCH/REPLACE sections"
131
+
error: `Invalid diff format - missing required SEARCH/REPLACE sections${debugInfo}`
131
132
};
132
133
}
133
134
@@ -167,15 +168,11 @@ Your search/replace content here
` at ${startLine!==undefined ? `start: ${startLine}` : 'start'} to ${endLine!==undefined ? `end: ${endLine}` : 'end'}` : '';
235
243
return{
236
244
success: false,
237
-
error: `No sufficiently similar match found${startLine!==undefined ? ` near lines ${startLine}-${endLine}` : ''}(${Math.round(bestMatchScore*100)}% similar, needs ${Math.round(this.fuzzyThreshold*100)}%)`
245
+
error: `No sufficiently similar match found${lineRange}(${Math.floor(bestMatchScore*100)}% similar, needs ${Math.floor(this.fuzzyThreshold*100)}%)${debugInfo}`
0 commit comments