Interface CodeActionResult<T>

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

Type Parameters

Hierarchy (view full)

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