SuggestionServiceBase Class
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.
MEF export for registering SuggestionProviderBases for an ITextView.
public abstract class SuggestionServiceBase
type SuggestionServiceBase = class
Public MustInherit Class SuggestionServiceBase
- Inheritance
-
SuggestionServiceBase
Remarks
This is a MEF export.
This is a singleton that is implemented by Visual Studio.
Constructors
SuggestionServiceBase() |
Methods
DismissProposalAsync(ITextView, ReasonForDismiss, CancellationToken) |
Dismiss any proposal displayed in |
GetDisplayedProposal(ITextView) |
Gets the proposal being displayed in |
TryRegisterProviderAsync(SuggestionProviderBase, ITextView, String, CancellationToken) |
Register a |
TryUpdateProposal(ITextView, ProposalBase) |
Try to update a |
Events
ProposalDisplayed |
Raised whenever a proposal is displayed to the user. |
ProposalRejected |
Raised whenever a proposal is no longer displayed (though another proposal may be displayed without the suggestion being dismissed). |
SuggestionAccepted |
Raised whenever the user accepts a proposal (causing the suggestion session to end). |
SuggestionDismissed |
Raised whenever a suggestion session is dismissed without accepting a proposal. |