vs-editor-api icon indicating copy to clipboard operation
vs-editor-api copied to clipboard

Possible error in documentation of ITextViewModelProvider

Open ymassad opened this issue 4 years ago • 1 comments

In the following file:

https://github.com/microsoft/vs-editor-api/blob/master/src/Editor/Text/Def/TextUI/Editor/ITextViewModelProvider.cs

It is written that we need to use the Export attribute like this:

[Export(NameSource=typeof(ITextViewModelProvider))]

Where is this Export attribute that has a NameSource property?

ymassad avatar Jul 02 '20 18:07 ymassad

Wow, that's a very old doc comment. I'll update it. All you need is [Export(typeof(ITextViewModelProvider))] and also [ContentType] attribute for your content type

olegtk avatar Jul 07 '20 18:07 olegtk