Theia API Documentation v1.65.0
    Preparing search index...

    Describes a rule to be evaluated when pressing Enter.

    interface OnEnterRule {
        action: EnterAction;
        afterText?: RegExp;
        beforeText: RegExp;
        previousLineText?: RegExp;
    }
    Index

    Properties

    action: EnterAction

    The action to execute.

    afterText?: RegExp

    This rule will only execute if the text after the cursor matches this regular expression.

    beforeText: RegExp

    This rule will only execute if the text before the cursor matches this regular expression.

    previousLineText?: RegExp

    This rule will only execute if the text above the current line matches this regular expression.