Class

FoundryTextDocument

Description [src]

final class Foundry.TextDocument : Foundry.Contextual
  implements Json.Serializable {
  /* No available fields */
}

Represents a text document in the development environment with editing capabilities.

FoundryTextDocument manages the lifecycle of text documents including loading, saving, and modification tracking. It integrates with the text buffer system and provides document-level services such as diagnostics, settings, and extension management for enhanced editing functionality.

Hierarchy

hierarchy this FoundryTextDocument implements_0 JsonSerializable this--implements_0 ancestor_0 FoundryContextual ancestor_0--this ancestor_1 GObject ancestor_1--ancestor_0

Implements

Instance methods

foundry_text_document_apply_edit
No description available.

foundry_text_document_apply_edits
No description available.

foundry_text_document_diagnose

Queries FoundryDiagnosticProvider for diagnostics that are relevant to the document.

foundry_text_document_dup_buffer

Gets the underlying FoundryTextBuffer.

foundry_text_document_dup_file

Gets the underlying GFile.

foundry_text_document_dup_icon
No description available.

foundry_text_document_dup_title

Gets the title for the document.

foundry_text_document_dup_uri

Convenience function to get the URI of a file.

foundry_text_document_find_addin

Gets a FoundryTextDocumentAddin using the name of the plugin. This is the value for “Module=” in the .plugin file.

foundry_text_document_list_addins
No description available.

foundry_text_document_list_code_actions

Queries FoundryTextDocumentAddin for actions that are relevant to the document based on the current diagnostics.

foundry_text_document_list_symbols

Queries FoundrySymbolProvider for symbols that are relevant to the document.

foundry_text_document_load_settings

Loads the settings for the document.

foundry_text_document_save
No description available.

foundry_text_document_save_as
No description available.

foundry_text_document_watch_diagnostics

Watches the document for changes and updates diagnostics in the resulting FoundryOnTypeDiagnostics which is a GListModel.

foundry_text_document_when_changed

This function will resolve a new DexFuture when the underlying FoundryTextBuffer has changed.

Methods inherited from FoundryContextual (4)
foundry_contextual_acquire

This method provides a checked way to get a context for the contextual.

unstable since: 1.1

foundry_contextual_dup_context

Gets the FoundryContext that self is a part of while safely increasing the reference count of the resulting FoundryContext by 1.

foundry_contextual_inhibit

Creates a new FoundryInhibitor that will keep the FoundryContext alive and prevent shutdown until foundry_inhibitor_uninhibit() is called or the FoundryInhibitor is finalized, whichever comes first.

foundry_contextual_log
No description available.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Methods inherited from JsonSerializable (8)
json_serializable_default_deserialize_property

Calls the default implementation of the Json.SerializableIface.deserialize_property virtual function.

json_serializable_default_serialize_property

Calls the default implementation of the Json.SerializableIface.serialize_property virtual function.

json_serializable_deserialize_property

Asks a JsonSerializable implementation to deserialize the property contained inside property_node and place its value into value.

json_serializable_find_property

Calls the Json.SerializableIface.find_property implementation on the JsonSerializable instance, which will return the property description for the given name.

json_serializable_get_property

Calls the Json.SerializableIface.get_property implementation on the JsonSerializable instance, which will get the value of the given property.

json_serializable_list_properties

Calls the Json.SerializableIface.list_properties implementation on the JsonSerializable instance, which will return the list of serializable properties.

json_serializable_serialize_property

Asks a JsonSerializable implementation to serialize an object property into a JSON node.

json_serializable_set_property

Calls the Json.SerializableIface.set_property implementation on the JsonSerializable instance, which will set the property with the given value.

Properties

Foundry.TextDocument:addins
No description available.

Foundry.TextDocument:buffer
No description available.

Foundry.TextDocument:draft-id
No description available.

Foundry.TextDocument:file
No description available.

Foundry.TextDocument:icon
No description available.

Foundry.TextDocument:title
No description available.

Properties inherited from FoundryContextual (1)
Foundry.Contextual:context
No description available.

Signals

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct FoundryTextDocumentClass {
  FoundryContextualClass parent_class;
  
}

No description available.

Class members
parent_class: FoundryContextualClass

No description available.