Delen via


SuggestionManagerBase.CommitProposalAsync Method

Definition

Commit all edits associated with the proposal as if the proposal had been displayed by the suggestion service.

public virtual System.Threading.Tasks.Task<bool> CommitProposalAsync (Microsoft.VisualStudio.Language.Proposals.ProposalBase proposal, System.Threading.CancellationToken cancel);
abstract member CommitProposalAsync : Microsoft.VisualStudio.Language.Proposals.ProposalBase * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
override this.CommitProposalAsync : Microsoft.VisualStudio.Language.Proposals.ProposalBase * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Overridable Function CommitProposalAsync (proposal As ProposalBase, cancel As CancellationToken) As Task(Of Boolean)

Parameters

proposal
ProposalBase

Returns

true if the edits were applied. Otherwise, no changes were made.

Applies to