pub enum ProcessingEdit {
ReplaceStyleLayer {
layer: StyleLayerId,
intervals: Vec<Interval>,
},
ClearStyleLayer {
layer: StyleLayerId,
},
ReplaceFoldingRegions {
regions: Vec<FoldRegion>,
preserve_collapsed: bool,
},
ClearFoldingRegions,
ReplaceDiagnostics {
diagnostics: Vec<Diagnostic>,
},
ClearDiagnostics,
ReplaceDecorations {
layer: DecorationLayerId,
decorations: Vec<Decoration>,
},
ClearDecorations {
layer: DecorationLayerId,
},
ReplaceDocumentSymbols {
symbols: DocumentOutline,
},
ClearDocumentSymbols,
}Expand description
A change to derived editor state (highlighting, folding, etc.).
Variants§
ReplaceStyleLayer
Replace an entire style layer with the given intervals (char offsets).
Fields
layer: StyleLayerIdThe style layer being replaced.
ClearStyleLayer
Clear a style layer.
Fields
layer: StyleLayerIdThe style layer being cleared.
ReplaceFoldingRegions
Replace folding regions.
This affects the derived fold set (from external providers), leaving user-created folds intact.
If preserve_collapsed is true, regions that match an existing collapsed region
(start_line, end_line) will remain collapsed after replacement.
Fields
regions: Vec<FoldRegion>The complete set of folding regions.
ClearFoldingRegions
Clear all derived folding regions (leaves user-created folds intact).
ReplaceDiagnostics
Replace the current diagnostic list (character offsets).
Fields
diagnostics: Vec<Diagnostic>Full diagnostic list for the document.
ClearDiagnostics
Clear all diagnostics.
ReplaceDecorations
Replace a decoration layer wholesale.
Fields
layer: DecorationLayerIdDecoration layer being replaced.
decorations: Vec<Decoration>Full decoration list for the layer (character offsets).
ClearDecorations
Clear a decoration layer.
Fields
layer: DecorationLayerIdDecoration layer being cleared.
ReplaceDocumentSymbols
Replace the document outline / symbol tree wholesale.
Fields
symbols: DocumentOutlineThe full document outline.
ClearDocumentSymbols
Clear the current document symbol set.
Trait Implementations§
Source§impl Clone for ProcessingEdit
impl Clone for ProcessingEdit
Source§fn clone(&self) -> ProcessingEdit
fn clone(&self) -> ProcessingEdit
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more