mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[terminal] IJPL-182482 Ignore read time during serialization
We need this `readTime` only locally on the backend and put it to the event object only for simplicity. It is not a good design, but for now there is no suitable alternative. Ideally, we need to have the separate serializable DTO classes hierarchy for RPC. Or switch to plain longs for measuring the time. GitOrigin-RevId: f8e20acdfe0d856c73750711d1a14917fc9b5973
This commit is contained in:
committed by
intellij-monorepo-bot
parent
3868836dd4
commit
569ecdccd0
@@ -6,6 +6,7 @@ import com.intellij.terminal.session.dto.TerminalBlocksModelStateDto
|
||||
import com.intellij.terminal.session.dto.TerminalOutputModelStateDto
|
||||
import com.intellij.terminal.session.dto.TerminalStateDto
|
||||
import kotlinx.serialization.Serializable
|
||||
import kotlinx.serialization.Transient
|
||||
import org.jetbrains.annotations.ApiStatus
|
||||
import kotlin.time.TimeMark
|
||||
|
||||
@@ -20,7 +21,9 @@ data class TerminalContentUpdatedEvent(
|
||||
val text: String,
|
||||
val styles: List<StyleRangeDto>,
|
||||
val startLineLogicalIndex: Long,
|
||||
val readTime: TimeMark?,
|
||||
/** This value is used only on Backend. It is always null on the Frontend. */
|
||||
@Transient
|
||||
val readTime: TimeMark? = null,
|
||||
) : TerminalOutputEvent
|
||||
|
||||
@ApiStatus.Internal
|
||||
|
||||
Reference in New Issue
Block a user