Partager via


IAsyncCompletionUniversalSource.GetCompletionContextAsync Method

Definition

Called to fetch set of all completion items available at a given location, without pre-existing completion session. Called on a background thread.

public:
 System::Threading::Tasks::Task<Microsoft::VisualStudio::Language::Intellisense::AsyncCompletion::Data::CompletionContext ^> ^ GetCompletionContextAsync(Microsoft::VisualStudio::Language::Intellisense::AsyncCompletion::Data::CompletionTrigger trigger, Microsoft::VisualStudio::Text::SnapshotPoint triggerLocation, System::Threading::CancellationToken token);
public System.Threading.Tasks.Task<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionContext> GetCompletionContextAsync (Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionTrigger trigger, Microsoft.VisualStudio.Text.SnapshotPoint triggerLocation, System.Threading.CancellationToken token);
abstract member GetCompletionContextAsync : Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionTrigger * Microsoft.VisualStudio.Text.SnapshotPoint * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionContext>
Public Function GetCompletionContextAsync (trigger As CompletionTrigger, triggerLocation As SnapshotPoint, token As CancellationToken) As Task(Of CompletionContext)

Parameters

trigger
CompletionTrigger

What caused the completion

triggerLocation
SnapshotPoint

Location where completion was triggered, on the subject buffer that matches this IAsyncCompletionSource's content type

token
CancellationToken

Cancellation token that may interrupt this operation

Returns

CompletionContext used to start IAsyncCompletionSession or Empty

Applies to