Share via


ProposalSourceBase.RequestProposalsAsync Method

Definition

Returns an ProposalCollectionBase with any proposals for what might follow the caret given the specified completionState, scenario and triggeringCharacter.

public abstract System.Threading.Tasks.Task<Microsoft.VisualStudio.Language.Proposals.ProposalCollectionBase?> RequestProposalsAsync (Microsoft.VisualStudio.Text.VirtualSnapshotPoint caret, Microsoft.VisualStudio.Language.Proposals.CompletionState? completionState, Microsoft.VisualStudio.Language.Proposals.ProposalScenario scenario, char triggeringCharacter, System.Threading.CancellationToken cancel);
abstract member RequestProposalsAsync : Microsoft.VisualStudio.Text.VirtualSnapshotPoint * Microsoft.VisualStudio.Language.Proposals.CompletionState * Microsoft.VisualStudio.Language.Proposals.ProposalScenario * char * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.Language.Proposals.ProposalCollectionBase>
Public MustOverride Function RequestProposalsAsync (caret As VirtualSnapshotPoint, completionState As CompletionState, scenario As ProposalScenario, triggeringCharacter As Char, cancel As CancellationToken) As Task(Of ProposalCollectionBase)

Parameters

completionState
CompletionState
scenario
ProposalScenario
triggeringCharacter
Char

Returns

The proposals for what the user might want. Can return null.

Remarks

Can also return an LazyProposalCollectionBase to allow additional proposals to be generated after the Proposals.

Applies to