DiffFile
DiffFile =
object
Properties
Section titled “Properties”cacheKey?
Section titled “cacheKey?”
readonlyoptionalcacheKey?:string
changeType
Section titled “changeType”
readonlychangeType:DiffFileChangeType
readonlyhunks: readonlyDiffHunk[]
isPartial
Section titled “isPartial”
readonlyisPartial:boolean
languageId?
Section titled “languageId?”
readonlyoptionallanguageId?:EditorSyntaxLanguageId|null
newLines
Section titled “newLines”
readonlynewLines: readonlystring[]
newMode?
Section titled “newMode?”
readonlyoptionalnewMode?:string
newObjectId?
Section titled “newObjectId?”
readonlyoptionalnewObjectId?:string
newPath
Section titled “newPath”
readonlynewPath:string
oldLines
Section titled “oldLines”
readonlyoldLines: readonlystring[]
Git’s lines as splitTextLines holds them; hunk line text follows the same rule per side.
oldMode?
Section titled “oldMode?”
readonlyoptionaloldMode?:string
oldObjectId?
Section titled “oldObjectId?”
readonlyoptionaloldObjectId?:string
oldPath?
Section titled “oldPath?”
readonlyoptionaloldPath?:string
readonlypath:string