Posted 16 years ago
by Kevin Bennett
I am looking at different ways for filtering the member lists that popup in the SyntaxEditor Intelliprompt. Mainly I am looking to do this for code in my parent application, as it is available to the user. However, I want to limit what they can see.
There seem to be 2 paths, unless I am mistaken...
1. Utilize EditorBrowsable (EditorBrowsableState.Never ) attribute on members I would like to hide
OR
2. Catch the SyntaxEditorIntelliPromptMemberListPreFilter event and manually filter the list.
Option 1 is not optimal, as it affects my own development in the parent application. I would like to see my members.
Option 2 I have no idea how to use. It looks like I get a VBContext object passed as an argument, but I'm not sure what to do with it.
My optimal solution would be to have a custom attribute, like BrowsableInSyntaxEditor(false), that I could append to my memebers. It would be nice if the SyntaxEditorSoftware namespace came with such an attribute that the .NET languages Add On was setup to look for.
So, assuming I create my own custom attribute to place on members I don't want the end user to see... how can I use Option 2 to get this information out of the VBContext that is passed?
Any help, or at least a nudge in the right direction would be very much appreciated.
KB
There seem to be 2 paths, unless I am mistaken...
1. Utilize EditorBrowsable (EditorBrowsableState.Never ) attribute on members I would like to hide
OR
2. Catch the SyntaxEditorIntelliPromptMemberListPreFilter event and manually filter the list.
Option 1 is not optimal, as it affects my own development in the parent application. I would like to see my members.
Option 2 I have no idea how to use. It looks like I get a VBContext object passed as an argument, but I'm not sure what to do with it.
My optimal solution would be to have a custom attribute, like BrowsableInSyntaxEditor(false), that I could append to my memebers. It would be nice if the SyntaxEditorSoftware namespace came with such an attribute that the .NET languages Add On was setup to look for.
So, assuming I create my own custom attribute to place on members I don't want the end user to see... how can I use Option 2 to get this information out of the VBContext that is passed?
Any help, or at least a nudge in the right direction would be very much appreciated.
KB