IAsyncCompletionUniversalSource.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
,
given selectedItem
which was supplied by this IAsyncCompletionUniversalSource.
Called instead of ShouldCommitCompletion(IAsyncCompletionSession, SnapshotPoint, Char, CancellationToken) and instead of HandleTypedChar(IAsyncCompletionSession, SnapshotPoint, Char, CancellationToken) if selected item's Source is IAsyncCompletionUniversalSource.
Called on UI thread.
public:
Microsoft::VisualStudio::Language::Intellisense::AsyncCompletion::CompletionContinuation HandleTypedChar(Microsoft::VisualStudio::Language::Intellisense::AsyncCompletion::IAsyncCompletionSession ^ session, Microsoft::VisualStudio::Language::Intellisense::AsyncCompletion::Data::CompletionItem ^ selectedItem, 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.Language.Intellisense.AsyncCompletion.Data.CompletionItem selectedItem, Microsoft.VisualStudio.Text.SnapshotPoint location, char typedChar, System.Threading.CancellationToken token);
abstract member HandleTypedChar : Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.IAsyncCompletionSession * Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionItem * Microsoft.VisualStudio.Text.SnapshotPoint * char * System.Threading.CancellationToken -> Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.CompletionContinuation
Public Function HandleTypedChar (session As IAsyncCompletionSession, selectedItem As CompletionItem, location As SnapshotPoint, typedChar As Char, token As CancellationToken) As CompletionContinuation
Parameters
- session
- IAsyncCompletionSession
The active IAsyncCompletionSession
- selectedItem
- CompletionItem
The selected CompletionItem, guaranteed that Source is this instance of IAsyncCompletionUniversalSource
- 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