ProposalSourceBase.RequestProposalsAsync 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.
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
- caret
- VirtualSnapshotPoint
- completionState
- CompletionState
- scenario
- ProposalScenario
- triggeringCharacter
- Char
- cancel
- CancellationToken
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.