IAsyncCompletionCommitManager2.HandleTypedChar Method

Definition

Returns how typedChar should influence the session.

Called instead of ShouldCommitCompletion(IAsyncCompletionSession, SnapshotPoint, Char, CancellationToken)

Called on UI thread.

public:
 Microsoft::VisualStudio::Language::Intellisense::AsyncCompletion::CompletionContinuation HandleTypedChar(Microsoft::VisualStudio::Language::Intellisense::AsyncCompletion::IAsyncCompletionSession ^ session, Microsoft::VisualStudio::Text::SnapshotPoint location, char typedChar, System::Threading::CancellationToken token);
public Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.CompletionContinuation HandleTypedChar (Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.IAsyncCompletionSession session, Microsoft.VisualStudio.Text.SnapshotPoint location, char typedChar, System.Threading.CancellationToken token);
abstract member HandleTypedChar : Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.IAsyncCompletionSession * Microsoft.VisualStudio.Text.SnapshotPoint * char * System.Threading.CancellationToken -> Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.CompletionContinuation
Public Function HandleTypedChar (session As IAsyncCompletionSession, location As SnapshotPoint, typedChar As Char, token As CancellationToken) As CompletionContinuation

Parameters

location
SnapshotPoint

Location in the snapshot of the view's topmost buffer. The character is not inserted into this snapshot

typedChar
Char

Character typed by the user

token
CancellationToken

Token used to cancel this operation

Returns

True if this character should commit the active session

Applies to