Skip to main content

Module study_editor

Module study_editor 

Source
Expand description

Study editor panel: an editing surface for host-owned study source.

The panel holds a document title and its text, tells whether the text changed since it was opened or saved, lists the host’s diagnostics and sends open, save and apply requests. The host owns the language, the files and the study: it compiles the text, answers with set_diagnostics and apply_result, and the edits stay in the panel whatever it answers. The panel needs no other part of the library and can sit in any layout.

Structs§

Diagnostic
A host message about a span of the document.
StudyEditor
The study editor panel.

Enums§

Severity
How serious a Diagnostic is.
StudyEditorAction
What the user asked of the host.