Minga.Extension.Diagnostics (minga_sdk v0.1.0)

Copy Markdown View Source

Sanctioned diagnostics surface for extensions.

Publish line-level findings (linters, analyzers, advisory agents) through Minga's diagnostics pipeline (gutter signs, hover, navigation, picker) without importing core internals. Findings are namespaced under the extension's own source and clamped to :hint severity; they render as a distinct amber ? sign so users don't confuse advice with compiler output.

uri accepts either a file:// URI or an absolute path.

This is a compile-time stub. At runtime, the real module in Minga's BEAM VM provides the implementation.

Summary

Types

A line-level finding: a zero-indexed line and the concern text to show.

Types

finding()

@type finding() :: %{line: non_neg_integer(), concern: String.t()}

A line-level finding: a zero-indexed line and the concern text to show.

Functions

clear(extension_name, uri)

@spec clear(atom(), String.t()) :: :ok

clear_all(extension_name)

@spec clear_all(atom()) :: :ok

publish(extension_name, uri, findings)

@spec publish(atom(), String.t(), [finding()]) :: :ok