Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/diffs/src/utils/parseDiffFromFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,10 @@ export function parseDiffFromFile(
'parseDiffFrom: FileInvalid diff -- probably need to fix something -- if the files are the same maybe?'
);
}
// If we've been provided an override for language in the newFile, let’s pass
// it through to FileDiffMetadata.
if (newFile.lang != null) {
fileData.lang = newFile.lang;
}
Comment thread
amadeus marked this conversation as resolved.
return fileData;
}
Loading