Class
IdeCompletionContext
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
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_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
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