xsharp.eu • Intellisense: Why must add Using statement for same namespace we are in??
Page 1 of 1

Intellisense: Why must add Using statement for same namespace we are in??

Posted: Thu Apr 18, 2019 8:32 pm
by Anonymous
I've noticed that if I'm coding in Method or Function in a certain Namespace, that even though I have referenced the Type of the Local var, intellisense doesn't work, but it compiles just fine.

Code: Select all

Using System.Xml.Serialization
Using System.Collections.Generic  

Begin Namespace MyNamespace

    Function Start() As Void Strict

        Local oMyOb as MyOtherClass  // It's in the same namespace MyNamespace

        oMyObj := MyOtherClass{}
     
        oMyObj:   <-- Should get intellisense here...
   


To get Intellisense to work, I have to add a Using statement for this very same namespace that I am already coding in...

Code: Select all

Using MyNamespace
Like this:

Code: Select all

Using System.Xml.Serialization
Using System.Collections.Generic  
Using MyNamespace

Begin Namespace MyNamespace

    Function Start() As Void Strict

        Local oMyOb as MyOtherClass  // It's in the sane namespace MyNamespace

        oMyObj := MyOtherClass{}
     
        oMyObj:   <-- Now  intellisense will work here...
   


Intellisense: Why must add Using statement for same namespace we are in??

Posted: Thu Apr 18, 2019 9:01 pm
by Fabrice
Hi Matt,
thanks for the feedback...You should not have to... Will check that asap.

Fab