Langium - v4.0.0
    Preparing search index...

    Interface CodeActionResult<T>

    interface CodeActionResult<T extends AstNode = AstNode> {
        action?: CodeAction;
        diagnosticRelevant: Diagnostic;
        diagnosticsAll: Diagnostic[];
        document: LangiumDocument<T>;
        dispose(): Promise<void>;
    }

    Type Parameters

    Hierarchy (View Summary)

    Index

    Properties

    action?: CodeAction

    the CodeAction to fix the found relevant problem, it is possible, that there is no such code action

    diagnosticRelevant: Diagnostic

    the relevant Diagnostic with the given diagnosticCode, it is expected that the given input has exactly one such diagnostic

    diagnosticsAll: Diagnostic[]

    all diagnostics of the validation

    document: LangiumDocument<T>

    the document containing the AST

    Methods