
I need to add an assembly to be known by IntelliPromt, but I also need to exclude some types and/or namespaces from showing by IntelliPromt. Is it possible?
[Modified at 02/14/2012 12:14 PM]
language.RegisterService<CSharpCompletionProvider>(new MyCSharpCompletionProvider());
Hi
I read above
You can add/remove completion session list items there.
Could you explain the best way to create these items for a given namespace or type?
Thank you
William
Hi William,
Per the post that mentioned that, you can override the OnSessionOpening method. That method is passed the session instance. In your override, update the session.Items collection by adding items. You'll have to manually create the items though. Some of our IntelliPrompt completion QuickStarts show how to do that. After that, call the base.OnSessionOpening method. Then be sure to register your custom completion provider as indicated in our post above.
Thank you for the quick reply.
Actually I mentioned to do it. I did only need to filter out items.
I have another question., The ICompletionItem items have a Tag property.
It looks like ActiPro automatically populates this with interesting and useful information about the types, namespaces, etc. that are automatically populated into the item collection.
However the Tag types have been obfuscated and Reflection is needed to access them. This seems bizarre - am I missing something?
Thank you
William
Hi William,
I believe in general those will all be IResolverResult and its derivative types in the ActiproSoftware.Text.Languages.DotNet.Resolution namespace. So by looking at those you can get info such as the type definition for ITypeResolverResult's, etc.