PersistedDocument

@Serializable
data class PersistedDocument(val displayName: String, val text: String, val originProviderId: String? = null, val originReference: String? = null, val dirty: Boolean = false, val isScratch: Boolean = false, val query: String = "", val queryHistory: List<String> = emptyList(), val fontSize: Int? = null, val resolutions: List<PersistedResolution> = emptyList())

One page's persisted state: the document it holds (or scratch text), its query/history, and its resolutions - everything restoreWorkspace needs to recreate the page without re-running anything.

Constructors

Link copied to clipboard
constructor(displayName: String, text: String, originProviderId: String? = null, originReference: String? = null, dirty: Boolean = false, isScratch: Boolean = false, query: String = "", queryHistory: List<String> = emptyList(), fontSize: Int? = null, resolutions: List<PersistedResolution> = emptyList())

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

This page's own editor zoom level, where the frontend supports per-page zoom; null elsewhere, or to restore it at the workspace-wide default instead.

Link copied to clipboard

Whether this was a page-local scratch buffer rather than a (possibly still-untitled) document.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The page's last (possibly not yet solved) query text.

Link copied to clipboard

Past queries submitted on this page, oldest first - restores the Up/Down query-history navigation.

Link copied to clipboard

Past (concluded) resolutions - restores the Solutions tree's content without re-running anything.

Link copied to clipboard