This page is available as Markdown at /api/selectors/functions/isactiveannotation.md. For the full documentation index, see /llms.txt, or the complete corpus at /llms-full.txt.
isActiveAnnotation
isActiveAnnotation(
annotation,options?):EditorSelector<boolean>
Defined in: selector.is-active-annotation.ts:13
Check whether an annotation is active in the given snapshot.
Parameters
Section titled “Parameters”annotation
Section titled “annotation”string
options?
Section titled “options?”"partial" | "full"
Choose whether the annotation has to cover the entire selection
('full') or whether the selection covering at least one character
of the annotation suffices ('partial'). With a collapsed
selection the modes agree: the annotation is active when the caret
sits inside it, not at its edges.
Defaults to 'full'
Returns
Section titled “Returns”EditorSelector<boolean>