Skip to main content

Module workspace

Module workspace 

Source
Expand description

Workspace and multi-document model.

editor-core is intentionally UI-agnostic, but a full-featured editor typically needs a kernel-level model for managing multiple open documents/buffers.

This module provides a small Workspace type that owns multiple EditorStateManager instances and provides:

  • stable, opaque document ids
  • optional URI->document lookup for integrations (e.g. LSP)
  • an “active document” convenience slot (host-driven)

Structs§

DocumentId
Opaque identifier for an open document in a Workspace.
DocumentMetadata
Metadata attached to a workspace document.
Workspace
A collection of open documents/buffers and their state.

Enums§

WorkspaceError
Workspace-level errors.