Foundry.DiagnosticProvider¶
- Subclasses:
Methods¶
- Inherited:
Foundry.Contextual (4), GObject.Object (37), Json.Serializable (8)
- Structs:
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/co |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class Foundry.DiagnosticProvider(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
Abstract base class for plugins to provide diagnostics.
- diagnose(file, contents, language)¶
- Parameters:
- Returns:
a
Dex.Futurethat resolves to aGio.ListModelofFoundry.Diagnostic.- Return type:
Processes file to extract diagnostics.
- dup_name()¶
- Returns:
the name of the provider
- Return type:
Gets a name for the provider that is expected to be displayed to users such as “Flatpak”.
- dup_plugin_info()¶
- Return type:
- list_all()¶
- Returns:
a [class`Dex`.Future] that resolves to a [iface`Gio`.ListModel] of [class`Foundry`.Diagnostic].
- Return type:
Lists all diagnostics known to the provider for the project.
This is useful for applications which want to show a project-wide list of diagnostics. Providers are encouraged to have this information cached rather than try to scan the whole project when requested.
For example, diagnostics for a build may include results from the most recent build request.
It is encouraged that providers update the listmodel as new diagnostics are made available.
New in version 1.1.
- do_diagnose(file, contents, language) virtual¶
- Parameters:
- Returns:
a
Dex.Futurethat resolves to aGio.ListModelofFoundry.Diagnostic.- Return type:
Processes file to extract diagnostics.
- do_dup_name() virtual¶
- Returns:
the name of the provider
- Return type:
Gets a name for the provider that is expected to be displayed to users such as “Flatpak”.
- do_list_all() virtual¶
- Returns:
a [class`Dex`.Future] that resolves to a [iface`Gio`.ListModel] of [class`Foundry`.Diagnostic].
- Return type:
Lists all diagnostics known to the provider for the project.
This is useful for applications which want to show a project-wide list of diagnostics. Providers are encouraged to have this information cached rather than try to scan the whole project when requested.
For example, diagnostics for a build may include results from the most recent build request.
It is encouraged that providers update the listmodel as new diagnostics are made available.
New in version 1.1.
Property Details¶
- Foundry.DiagnosticProvider.props.plugin_info¶
- Name:
plugin-info- Type:
- Default Value:
- Flags: