feat(telemetry): include language in telemetry and fix accepted lines computation (#21126)

This commit is contained in:
Christian Gunderman
2026-03-04 18:58:39 +00:00
committed by GitHub
parent 54885214a1
commit 49e4082f38
5 changed files with 155 additions and 41 deletions
+14
View File
@@ -413,6 +413,20 @@ export interface EditToolParams {
ai_proposed_content?: string;
}
export function isEditToolParams(args: unknown): args is EditToolParams {
if (typeof args !== 'object' || args === null) {
return false;
}
return (
'file_path' in args &&
typeof args.file_path === 'string' &&
'old_string' in args &&
typeof args.old_string === 'string' &&
'new_string' in args &&
typeof args.new_string === 'string'
);
}
interface CalculatedEdit {
currentContent: string | null;
newContent: string;