Share via


SuggestionSessionBase.DisplayProposalAsync Method

Definition

Display content to the user. Can be null (to hide the suggestion).

public abstract System.Threading.Tasks.Task DisplayProposalAsync (Microsoft.VisualStudio.Language.Proposals.ProposalBase? content, System.Threading.CancellationToken cancel);
abstract member DisplayProposalAsync : Microsoft.VisualStudio.Language.Proposals.ProposalBase * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public MustOverride Function DisplayProposalAsync (content As ProposalBase, cancel As CancellationToken) As Task

Parameters

content
ProposalBase

Returns

Remarks

OnProposalUpdatedAsync(SuggestionSessionBase, ProposalBase, ProposalBase, ReasonForUpdate, VirtualSnapshotPoint, CompletionState, CancellationToken) will be called with DivergedDueToInvalidProposal if the proposal cannot be reconcilled with the current state of the view and text buffer.

Applies to