IntelliSense Namespaces problem

SyntaxEditor for Windows Forms Forum

Posted 15 years ago by Radventure B.V
Avatar
When the user has typed "using" namespace followed by a point (for example "using System."), I want to show only the subnamespaces from the entered namespace.

I thought I could use the flag IntelliPromptNamespaceAndTypeFlags.Namespaces for that purpose, but when I use that flag the memberlist doesn't get filled
when calling AddReflectionForAssemblyNamespacesAndTypes. I'm probably forgetting something...

This is very easy to reproduce by changing the line:
flags[index] = IntelliPromptNamespaceAndTypeFlags.NamespacesAndTypes | IntelliPromptNamespaceAndTypeFlags.Public;

into:

flags[index] = IntelliPromptNamespaceAndTypeFlags.Namespaces;

Erik Pepping

Comments (2)

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

In the sample app, change the line:
flags[index] = IntelliPromptNamespaceAndTypeFlags.NamespacesAndTypes | IntelliPromptNamespaceAndTypeFlags.Public;

to:
flags[index] = IntelliPromptNamespaceAndTypeFlags.Namespaces | IntelliPromptNamespaceAndTypeFlags.Public;

That works like what you want.


Actipro Software Support

Posted 15 years ago by Radventure B.V
Avatar
Thanks! That works perfect.

Erik Pepping
The latest build of this product (v2018.1 build 0342) was released 11 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.