@gmb/bitmark-parser - v7.2.0
    Preparing search index...

    Function complete

    • The constructs valid at position in bitmark source, as an LSP CompletionList (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.

      Parameters

      • input: string

        Bitmark source text.

      • position: Position

        0-based line / character in positionEncoding units.

      • options: CompleteOptions = {}

        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.

      Returns CompletionList

      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).