Module CustomDocumentStateDTO

Module CustomDocumentStateDTO 

Source
Expand description

§CustomDocumentStateDTO

§RESPONSIBILITY

  • Data transfer object for custom editor document state
  • Serializable format for gRPC/IPC transmission
  • Used by Mountain to track custom document lifecycle

§FIELDS

  • URI: Resource identifier for the document
  • ViewType: Custom editor type identifier
  • SideCarIdentifier: Sidecar process hosting the provider
  • IsEditable: User edit permission flag
  • BackupIdentifier: Optional backup file reference
  • Edits: Version tracking and edit history map

Structs§

CustomDocumentStateDTO
A struct that holds the state for a document being handled by a custom editor. This is stored in ApplicationState to track the lifecycle of custom documents.

Constants§

MAX_EDITS_PER_DOCUMENT 🔒
Maximum number of edits to track per document
MAX_SIDECAR_IDENTIFIER_LENGTH 🔒
Maximum length for SideCarIdentifier string
MAX_VIEW_TYPE_LENGTH 🔒
Maximum length for ViewType string to prevent allocation attacks