Diff

@Serializable
data class Diff(val filePath: Path, val oldContent: String?, val newContent: String) : UiBlock(source)

文件变更的新旧内容,应完整,便于适配器显示正确的行号。

对于创建的全新文件,oldContent 将为 null。

Constructors

Link copied to clipboard
constructor(filePath: Path, oldContent: String?, newContent: String)

Properties

Link copied to clipboard
@Serializable(with = PathSerializer::class)
val filePath: Path
Link copied to clipboard
Link copied to clipboard