I have a library that I only want to expose a sub set of the available methods to the editor's intelisense. Is there an attribute I can adorn my methods with to either exclude or include them into the list? If not how else can this be accomplished?
I have a library that I only want to expose a sub set of the available methods to the editor's intelisense. Is there an attribute I can adorn my methods with to either exclude or include them into the list? If not how else can this be accomplished?
Hello, yes you can use the [EditorBrowsable(EditorBrowsableState.Never)] attribute to prevent methods from showing.
Yes but that makes them not appear in Visual Studio too. I have a need for all members to show in VS but only some make sense in the context of the SyntaxEditor control.
The other thing you could do is make your own class that inherits CSharp/VBCompletionProvider and register it on your CSharp/VBSyntaxLanguage as the original CSharp/VBCompletionProvider type (so that it overrides the default one). Then override that class' OnSessionOpening method. It fires before the completion session displays. So you are able to remove items if you want. Each session item's Tag will contain data related to what it is (ITypeDefinition, ITypeMemberDefinition, etc).
Please log in to a validated account to post comments.