Skip to content

The IDE you know, rebuilt in Rust. IntelliJ IDEA–style keymap, tool windows and search-everywhere in a fast native app: editor, code insight, debugger, Git, terminal, database and HTTP clients for 60+ languages.

805 B
Raw Blame
package openidea:[email protected];

/// Optional export (world `plugin-diagnostics`): problems in the current,
/// possibly unsaved document, for the languages declared with the
/// `diagnostics` provider kind. Asked shortly after a document opens or
/// changes, under the editor-provider budget; it can't ask the user.
interface diagnostics-provider {
    use diagnostics.{diagnostic};

    /// The document to check (the editor's text, unsaved edits included).
    record document {
        /// Absolute path.
        path: string,
        language: string,
        version: u64,
        text: string,
    }

    /// The document's problems, at most 5,000; they replace what this
    /// provider reported before, and an empty list removes them.
    diagnostics: func(doc: document) -> list<diagnostic>;
}