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

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