Trevixal API
    Preparing search index...

    Interface WritingAssistant

    interface WritingAssistant {
        applySuggestion(issue: WritingIssue): boolean;
        clearIgnored(): void;
        destroy(): void;
        goTo(issue: WritingIssue): void;
        ignore(issue: WritingIssue): void;
        isEnabled(kind: WritingIssueKind): boolean;
        issue(id: string): WritingIssue | null;
        refresh(): WritingReport;
        report(): WritingReport;
        setEnabled(kind: WritingIssueKind, enabled: boolean): void;
    }
    Index
    • Replace the issue's range with its suggestion, keeping the marks at the start of the range. False when the issue has no suggestion or the text has moved on since the report.

      Parameters

      Returns boolean

    • Flag everything again.

      Returns void

    • Returns void

    • Select the issue's range (and focus the view, when there is one).

      Parameters

      Returns void

    • Stop flagging this wording: the kind, the rule and the exact text, so "their" accepted in one sentence is accepted in all of them. Dismissing only the one occurrence would put the warning straight back the next time anything before it in the block was edited, because the range has moved.

      Parameters

      Returns void

    • The issue with this id in the latest report, or null once it is gone, which is the answer a popover opened over a span wants when the text has since been fixed or edited away.

      Parameters

      • id: string

      Returns WritingIssue | null