SuggestionSessionBase.DisplayProposalAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- cancel
- CancellationToken
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.