diff options
author | Aaron Bockover <abock@microsoft.com> | 2019-03-23 01:28:58 +0300 |
---|---|---|
committer | Aaron Bockover <abock@microsoft.com> | 2019-04-01 20:06:52 +0300 |
commit | 0c7d77be28c9e2c204de9d3b60ebb9c79cfc7988 (patch) | |
tree | f525873b6a68ef826e9c586c8e703d18ff531483 /src/Editor/Text/Def/TextUI/Commanding/ICommandingTextBufferResolverProvider.cs | |
parent | 6f37e7f7eb79a9df8ebed2223fa7bf286c8cc866 (diff) |
Mirror the src/Editor folder structure from VS-Platform
Diffstat (limited to 'src/Editor/Text/Def/TextUI/Commanding/ICommandingTextBufferResolverProvider.cs')
-rw-r--r-- | src/Editor/Text/Def/TextUI/Commanding/ICommandingTextBufferResolverProvider.cs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/Editor/Text/Def/TextUI/Commanding/ICommandingTextBufferResolverProvider.cs b/src/Editor/Text/Def/TextUI/Commanding/ICommandingTextBufferResolverProvider.cs new file mode 100644 index 0000000..eef5914 --- /dev/null +++ b/src/Editor/Text/Def/TextUI/Commanding/ICommandingTextBufferResolverProvider.cs @@ -0,0 +1,23 @@ +namespace Microsoft.VisualStudio.Text.Editor.Commanding +{ + /// <summary> + /// Provides a <see cref="ICommandingTextBufferResolver"/> for a given + /// <see cref="ITextView"/> and content type. + /// </summary> + /// <remarks>This is a MEF component and should be exported as + /// + /// Export(typeof(ICommandingTextBufferResolverProvider))] + /// [ContentType("MyContentType")] + /// internal class MyBufferResolverProvider : ICommandingTextBufferResolverProvider + /// </remarks> + public interface ICommandingTextBufferResolverProvider + { + /// <summary> + /// Creates a <see cref="ICommandingTextBufferResolver"/> for a given + /// <see cref="ITextView"/>. + /// </summary> + /// <param name="textView">A <see cref="ITextView"/> to create a text buffer resolver for.</param> + /// <returns>A new instance of <see cref="ICommandingTextBufferResolver"/>.</returns> + ICommandingTextBufferResolver CreateResolver(ITextView textView); + } +} |