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 overtyping of the closing brace and additional formatting.
命名空间: Microsoft.VisualStudio.Text.BraceCompletion
程序集: Microsoft.VisualStudio.Text.UI(在 Microsoft.VisualStudio.Text.UI.dll 中)
语法
声明
Public Interface IBraceCompletionSessionProvider
public interface IBraceCompletionSessionProvider
public interface class IBraceCompletionSessionProvider
type IBraceCompletionSessionProvider = interface end
public interface IBraceCompletionSessionProvider
IBraceCompletionSessionProvider 类型公开以下成员。
方法
名称 | 说明 | |
---|---|---|
![]() |
TryCreateSession | If appropriate, creates an IBraceCompletionSession based on the language context at the openingPoint. |
页首
备注
Exports must include at least one [BracePair] attribute and at least one [ContentType] attribute.
示例
This is a MEF component part, and should be exported with the following attribute:
[Export(typeof(IBraceCompletionSessionProvider))]