Share via


SuggestionServiceBase Class

Definition

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 view for the indicated reason.

GetDisplayedProposal(ITextView)

Gets the proposal being displayed in view, if any.

TryRegisterProviderAsync(SuggestionProviderBase, ITextView, String, CancellationToken)

Register a provider for a specific view.

TryUpdateProposal(ITextView, ProposalBase)

Try to update a proposal given any changes to the view and underlying buffer.

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.

Applies to