187
removedLines,
188
});
190
this._logService.warn(`[FileEditTracker] Failed to persist file edit to database: ${filePath}`, err);
191
}
193
>
this._editSurvivalReporterFactory.launch({
194
>
sessionUri: this._sessionUri,
195
>
turnId,
196
>
toolCallId,
197
>
filePath,
198
>
beforeText,
199
>
afterText,
200
>
isCreate,
201
>
modelId,
202
>
toolName,
203
>
aiChunks: extractAiChunks(toolName, toolInput, filePath),
204
>
});
205
>
206
>
return {
207
>
type: ToolResultContentType.FileEdit,
208
>
before: {
209
>
uri: URI.file(filePath).toString(),
210
>
content: { uri: buildSessionDbUri(this._sessionUri, toolCallId, filePath, 'before') },
211
>
},
212
>
after: {
213
>
uri: URI.file(filePath).toString(),
214
>
content: { uri: buildSessionDbUri(this._sessionUri, toolCallId, filePath, 'after') },
215
>
},
216
diff: addedLines !== undefined ? { added: addedLines, removed: removedLines } : undefined,
217
};