Sdílet prostřednictvím


IBraceCompletionSessionProvider Interface

Definition

Represents an extension point used to create an IBraceCompletionSession for brace completion. A session tracks a set of braces and handles actions performed by the user within the braces to allow for over typing of the closing brace and additional formatting.

public interface class IBraceCompletionSessionProvider
public interface class IBraceCompletionSessionProvider
__interface IBraceCompletionSessionProvider
public interface IBraceCompletionSessionProvider
type IBraceCompletionSessionProvider = interface
Public Interface IBraceCompletionSessionProvider

Remarks

This is a MEF component part, and should be exported with the following attribute: [Export(typeof(IBraceCompletionSessionProvider))]

Exports must include at least one [BracePair] attribute and at least one [ContentType] attribute.

Methods

TryCreateSession(ITextView, SnapshotPoint, Char, Char, IBraceCompletionSession)

If appropriate, creates an IBraceCompletionSession based on the language context at the openingPoint.

Applies to