IAsyncCompletionCommitManager2.HandleTypedChar 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 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
- session
- IAsyncCompletionSession
The active IAsyncCompletionSession
- 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