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

This forum is meant for questions and discussions about the X# language and tools
Post Reply
Anonymous

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

Post 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...
   

User avatar
Fabrice
Posts: 405
Joined: Thu Oct 08, 2015 7:47 am
Location: France

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

Post by Fabrice »

Hi Matt,
thanks for the feedback...You should not have to... Will check that asap.

Fab
XSharp Development Team
fabrice(at)xsharp.eu
Post Reply