Foundry.DiagnosticManager¶
- Subclasses:
None
Methods¶
- Inherited:
Foundry.Service (8), Foundry.Contextual (4), GObject.Object (37), Json.Serializable (8)
- Structs:
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Foundry.DiagnosticManager(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Manages diagnostic information and error reporting.
Foundry.DiagnosticManagercoordinates diagnostic providers and aggregates diagnostic information from various sources such as compilers, linters, and language servers. It provides a unified interface for error reporting and maintains diagnostic state.- diagnose(file, contents, language)¶
- Parameters:
contents (
GLib.BytesorNone) – optionalGLib.Bytesfor file contents
- Returns:
a [class`Dex`.Future] that resolves to a [iface`Gio`.ListModel] of [class`Foundry`.Diagnostic].
- Return type:
Diagnoses file using the loaded diagnostic providers and produces a
Dex.Futurethat will resolve to a [iface`Gio`.ListModel] of [class`Foundry`.Diagnostic].The resulting [iface`Gio`.ListModel] may be awaited for population to complete using [func`Foundry`.list_model_await].
- diagnose_file(file)¶
- Parameters:
file (
Gio.File) – a [iface`Gio`.File]- Returns:
a [class`Dex`.Future] that resolves to a [iface`Gio`.ListModel] which may be awaited on for final completion of all diagnostics using [func`Foundry`.list_model_await].
- Return type:
- diagnose_files(files)¶
- list_all()¶
- Returns:
a [class`Dex`.Future] that resolves to a [iface`Gio`.ListModel] of [class`Foundry`.Diagnostic].
- Return type:
Lists all known diagnostics from all providers.
This will call [method`Foundry`.DiagnosticProvider.list_all] for every available diagnostic provider.
The list may update after the future resolves if providers implement live updating of models.