CompletionItem
Object Hierarchy:
Description:
public interface CompletionItem : Object, ContainerHashable, Object
All known implementing classes:
Content:
Properties:
- public abstract Container additional_text_edits { get; set; }
An optional array of additional text edits that are applied when
selecting this completion. Edits must not overlap (including the same insert position) with the main edit nor with themselves.
- public abstract Command? command { get; set; }
An optional command that is executed *after* inserting this
completion. *Note* that additional modifications to the current document should be described with the additionalTextEdits-property.
- public abstract Container commit_characters { get; set; }
An optional set of characters that when pressed while this completion
is active will accept it first and then type that character. *Note* that all commit characters should have `length=1` and that
superfluous characters will be ignored.
- public abstract Variant data { get; set; }
An data entry field that is preserved on a completion item between a
completion and a completion resolve request.
- public abstract Boolean deprecated { get; set; }
Indicates if this item is deprecated.
- public abstract string? detail { get; set; }
A human-readable string with additional information about this item,
like type or symbol information.
- public abstract MarkupContent? documentation { get; set; }
A human-readable string that represents a doc-comment.
- public abstract string? filter_text { get; set; }
A string that should be used when filtering a set of completion items.
When `falsy` the label is used.
- public abstract string? insert_text { get; set; }
A string that should be inserted into a document when selecting this
completion. When `falsy` the label is used.
- public abstract InsertTextFormatObject? insert_text_format { get; set; }
The format of the insert text. The format applies to both the
`insertText` property and the `newText` property of a provided `textEdit`.
- public abstract CompletionItemKind kind { get; set; }
The kind of this completion item. Based of the kind an icon is chosen
by the editor.
- public abstract string label { get; set; }
The label of this completion item. By default also the text that is
inserted when selecting this completion.
- public abstract Boolean preselect { get; set; }
Select this item when showing.
- public abstract string? sort_text { get; set; }
A string that should be used when comparing this item with other
items. When `falsy` the label is used.
- public abstract Container tags { get; set; }
Tags for this completion item.
- public abstract TextEdit? text_edit { get; set; }
An edit which is applied to a document when selecting this completion.
When an edit is provided the value of `insertText` is ignored.
Methods:
- public string? get_id ()
Get item's id contained in
data
- public void set_id (string id)
Set string as an id to
data
Inherited Members:
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref
All known members inherited from interface GVo.ContainerHashable
All known members inherited from interface GVo.Object
- can_be_parsed_by
- can_be_parsed_to
- create_from_variant
- generic_variant_types_parseable
- generics_create_from_variant
- generics_variant_types_supported
- is_parseable
- parse_variant
- suggest_parser
- to_variant
- variant_types_parseable