Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Possible error in documentation of ITextViewModelProvider #24

Open
ymassad opened this issue Jul 2, 2020 · 1 comment
Open

Possible error in documentation of ITextViewModelProvider #24

ymassad opened this issue Jul 2, 2020 · 1 comment

Comments

@ymassad
Copy link

ymassad commented Jul 2, 2020

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?

@olegtk
Copy link
Member

olegtk commented Jul 7, 2020

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants