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
fix: remove omission detection logic to fix false positives
Removes the detectCodeOmission function and all its usages as per
discussion in issue #9785. The omission detection was causing false
positives with legitimate documentation comments in markdown files
and other file types.
With modern models having larger context windows and max output tokens,
this validation is no longer necessary.
Fixes#9785
`Content appears to contain comments indicating omitted code (e.g., '// rest of code unchanged', '/* previous code */'). Please provide the complete file content without any omissions if possible, or otherwise use the 'apply_diff' tool to apply the diff to the original file.`,
133
-
),
134
-
)
135
-
return
136
-
}else{
137
-
vscode.window
138
-
.showWarningMessage(
139
-
"Potential code truncation detected. This happens when the AI reaches its max output limit.",
`Content appears to contain comments indicating omitted code (e.g., '// rest of code unchanged', '/* previous code */'). Please provide the complete file content without any omissions if possible, or otherwise use the 'apply_diff' tool to apply the diff to the original file.`,
193
-
),
194
-
)
195
-
return
196
-
}else{
197
-
vscode.window
198
-
.showWarningMessage(
199
-
"Potential code truncation detected. This happens when the AI reaches its max output limit.",
0 commit comments