Bitmark source text.
0-based line / character in positionEncoding units.
positionEncoding ("utf-16", the default, or "utf-8"),
includeDeprecated, and triggerCharacter — the character the editor
sent as the trigger (LSP CompletionContext.triggerCharacter), omitted
when invoked explicitly. A trigger that opens nothing where the cursor
is — a . or a - typed in prose — answers an empty list; [ opens a
tag anywhere, and = / - / + at a line start narrow the list to the
structural lines they begin.
A CompletionList; context says where the query resolved.
UnsupportedFeatureError on a variant built without editor;
an error when position.line is past the end of the text, or when the
input is a JSON document (there is no bitmark source to resolve a
position in).
The constructs valid at
positionin bitmark source, as an LSPCompletionList(PLAN-196): every bit type after[., the body formats and the bit's allowed resource types in the header, the tags valid in the scope at the cursor (the bit body, a card variant, a chain — the same set the validator enforces, minus tags already at their maximum, the required ones the scope still lacks first), a tag's enum / boolean values, the inline attribute keys and closed values, and the structural lines the card config allows at a line start. Every candidate for the context is returned; the editor filters by the typed prefix. Half-typed constructs ([@wi,[.art,==x==|bo) resolve as if closed.