IAsyncCompletionSession.Commit(Char, CancellationToken) 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.
Commits the currently selected CompletionItem. Must be called on UI thread.
public:
Microsoft::VisualStudio::Language::Intellisense::AsyncCompletion::Data::CommitBehavior Commit(char typedChar, System::Threading::CancellationToken token);
public Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CommitBehavior Commit (char typedChar, System.Threading.CancellationToken token);
abstract member Commit : char * System.Threading.CancellationToken -> Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CommitBehavior
Public Function Commit (typedChar As Char, token As CancellationToken) As CommitBehavior
Parameters
- typedChar
- Char
The text edit which caused this action. May be default(char) when commit was requested by an explcit command (e.g. hitting Tab, Enter or clicking)
- token
- CancellationToken
Token used to cancel this operation
Returns
Instruction for the editor how to proceed after invoking this method