fix(projects): doc version and lastModified is not updated after DocumentChangeEvent

This commit is contained in:
Akash Yadav
2023-03-29 12:40:19 +05:30
parent 8f6392ff55
commit cd55af5a19
2 changed files with 5 additions and 2 deletions
@@ -121,6 +121,9 @@ object FileManager : EventReceiver {
return
}
document.version = event.version
document.modified = Instant.now()
// document is already open
// patch the changes
document.patch(event)
@@ -33,8 +33,8 @@ import java.time.Instant
*/
open class ActiveDocument(
val file: Path,
val version: Int,
val modified: Instant,
var version: Int,
var modified: Instant,
content: String = ""
) : Closeable {