
In the documentation, it states that to register a TokenTaggerProvider, we should use a line similar to
We register the service inside of the XxxLanguageWithParser class
When we run this code, our token tagger is never instantiated. If we update the code to include removal of the generated TokenTaggerProvider which is automatically registered in the XxxSyntaxLangage ctor, our implementation is used.
XxxSyntaxLanguage:
XxxSyntaxLanguageWithParser:
The XxxTokenTaggerProvider does not derive from TokenTaggerProvider{T}.
- Why do we have to remove the underlying provider to use our own when they are different implementations?
- Are we supposed to implement all of our token tagging in the supplied XxxClassificationTypeProvider via a partial class?
- As far as we can see, we are doing what the documentation says for registration. Are we doing something wrong?