pub fn toggle_annotation_resolution(
document: &Document,
position: Position,
resolved: bool,
) -> Option<AnnotationEdit>Expand description
Toggles the resolution status of the annotation at the given position.
When resolved is true, adds or updates status=resolved in the annotation header.
When resolved is false, removes the status parameter if present.
Returns None if:
- No annotation exists at the position
- The annotation already has the requested status (no change needed)
The returned AnnotationEdit contains the header range and new text, which
the editor should apply as a text replacement.