Skip to main content

Module diagnose

Module diagnose 

Source
Expand description

The diagnose export: Hammer sends paragraphs of a scene, and the plugin replies with the issues in them, which the editor underlines. A check’s manifest scope says which paragraphs: paragraph, the default, sends only those whose text the check has not seen; scene sends every paragraph of the scene each time, blank ones included, for issues that depend on other paragraphs.

Structs§

Diagnostic
An issue in one paragraph, from start to end as UTF-8 byte offsets into it.
Reply
Request

Enums§

Fix
A replacement for a Diagnostic’s range, shown to the user as itself, or as a label where the replacement alone would not say what it does, such as removing a word.
Severity