### Class

# Ide CompletionContext

#### Description

    final class Ide.CompletionContext : GObject.Object {
      /* No available fields */
    }

No description available.

#### Ancestors

- GObject

#### Implements

- GListModel

#### Instance methods

###### ide_completion_context_get_activation

Gets the mode for which the context was activated.

Available since: 3.32

###### ide_completion_context_get_bounds

Gets the bounds for the completion, which is the beginning of the current word (taking break characters into account) to the current insertion cursor.

Available since: 3.32

###### ide_completion_context_get_buffer

Gets the underlying buffer used by the context.

Available since: 3.32

###### ide_completion_context_get_busy

Gets the “busy” property. This is set to `TRUE` while the completion context is actively fetching proposals from the `IdeCompletionProvider` that were registered with ide_completion_context_add_provider().

Available since: 3.32

###### ide_completion_context_get_completion

Gets the `IdeCompletion` that created the context.

Available since: 3.32

###### ide_completion_context_get_item_full

No description available.

###### ide_completion_context_get_language

Gets the language identifier which can be useful for providers that support multiple languages.

Available since: 3.32

###### ide_completion_context_get_line_text

This is a convenience helper to get the line text up until the insertion cursor for the current completion.

Available since: 3.32

###### ide_completion_context_get_start_iter

Gets the iter for the start of the completion.

Available since: 3.32

###### ide_completion_context_get_view

Gets the text view for the context.

Available since: 3.32

###### ide_completion_context_get_word

Gets the word that is being completed up to the position of the insert mark.

Available since: 3.32

###### ide_completion_context_is_empty

Checks if any proposals have been provided to the context.

Available since: 3.32

###### ide_completion_context_is_language

Helper to check the language of the underlying buffer.

Available since: 3.32

###### ide_completion_context_set_proposals_for_provider

This function allows providers to update their results for a context outside of a call to ide_completion_provider_populate_async(). This can be used to immediately return results for a provider while it does additional asynchronous work. Doing so will allow the completions to update while the operation is in progress.

Available since: 3.32

##### Methods inherited from GObject (43)

Please see GObject for a full list of methods.

##### Methods inherited from GListModel (5)

###### g_list_model_get_item

Get the item at `position`.

Available since: 2.44

###### g_list_model_get_item_type

Gets the type of the items in `list`.

Available since: 2.44

###### g_list_model_get_n_items

Gets the number of items in `list`.

Available since: 2.44

###### g_list_model_get_object

Get the item at `position`.

Available since: 2.44

###### g_list_model_items_changed

Emits the `GListModel::items-changed` signal on `list`.

Available since: 2.44

#### Properties

###### Ide.CompletionContext:busy

The “busy” property is `TRUE` while the completion context is populating completion proposals.

Available since: 3.32

###### Ide.CompletionContext:completion

The “completion” is the `IdeCompletion` that was used to create the context.

Available since: 3.32

###### Ide.CompletionContext:empty

The “empty” property is `TRUE` when there are no results.

Available since: 3.32

#### Signals

##### Signals inherited from GObject (1)

###### GObject.Object::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.

##### Signals inherited from GListModel (1)

###### Gio.ListModel::items-changed

This signal is emitted whenever items were added to or removed from `list`. At `position`, `removed` items were removed and `added` items were added in their place.

Available since: 2.44

#### Class structure

    struct IdeCompletionContextClass {
      GObjectClass parent_class;

    }

###### Class members

`parent_class` |
    GObjectClass
| No description available.