Can XmlCompletionSession and CSharpCompletionSession be made public?

SyntaxEditor .NET Languages Add-on for WPF Forum

Posted 7 years ago by Craig - Varigence, Inc.
Version: 12.2.0570
Avatar

We're implementing custom C# and Xml CompletionProviders and would like to instanciate the CSharpCompletionSesison and XmlCompletionSession objects that Actipro uses. Unfortunately, our older copy of the blueprint source indicates that both classes are private.

While we could simply copy the classes into our projects, that means we'll lose any updates made to the classes in future versions. And even if we did have the current source, which we don't, that'd still be a bad maintenence practice. We could also workaround this using reflection but that'd also be a bad practice as we'd be relying on an implementation detail that could change. The XmlCompletionSession class is particularly important for us since it solves a problem we've been experiencing when inserting attributes via auto-complete. 

Thus, could XmlCompletionSession and CSharpCompletionSession be made public in an upcoming release, perferably the next one?

Thanks,

-Craig

Comments (5)

Posted 7 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Craig,

How about if we made them protected so that only inheriting classes of the providers could see them?


Actipro Software Support

Posted 7 years ago by Craig - Varigence, Inc.
Avatar

Unfortunately, that doesn't help us. Because our custom language uses XML with embedded C#, we use a custom completion provider that controls the completion session for either language. Since we're not extending the XmlCompletionProvider, making XmlCompletionSession protected won't help us.

Would it be possible to make the classes public? That way, other developers doing custom work could leverage them too.

-Craig

Answer - Posted 7 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Craig,

Yes we'll make them public for the next maintenance release.


Actipro Software Support

Posted 7 years ago by Craig - Varigence, Inc.
Avatar

That's great news - thanks again

Posted 7 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Craig,

FYI, we're just going to remove CSharpCompletionSession and VBCompletionSession since they are empty classes.  We're using regular CompletionSession in their completion providers instead.

But the XmlCompletionSession will be public for the upcoming maintenance release.


Actipro Software Support

The latest build of this product (v2019.1 build 0683) was released 19 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.