CompletionContext.setProposalsForProvider

This function allows providers to update their results for a context outside of a call to gtksource.completion_provider.CompletionProvider.populateAsync.

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.

class CompletionContext
void
setProposalsForProvider

Parameters

provider gtksource.completion_provider.CompletionProvider

an #GtkSourceCompletionProvider

results gio.list_model.ListModel

a #GListModel or null