Page 1 of 1

Showing private members outside the class

PostPosted: February 22nd, 2013, 11:52 pm
by fantasticjamieburns
Hi,

May I ask why private members are shown in the intellisense outside the class (when they are not accessible)?

Intellisense.png


It is not this way in C# for example.

Jamie.

Re: Showing private members outside the class

PostPosted: February 23rd, 2013, 12:36 am
by Jakub Misek
You are right, currently private members are shown in any context. We'll improve this in some future version.

Thanks!

Re: Showing private members outside the class

PostPosted: February 25th, 2013, 7:29 am
by CFI
I was wondering that too and it would improve usability a lot as I have many private stuff which unnecessarly fills up the list...

Re: Showing private members outside the class

PostPosted: February 25th, 2013, 10:27 am
by Miloslav Beno
Agreed, this will move up with the priority.

Thanks for suggestions!

Re: Showing private members outside the class

PostPosted: March 24th, 2013, 7:47 pm
by Jakub Misek
Latest update improves IntelliSense in this way so private members are not shown outside its class. Download at http://visualstudiogallery.msdn.microso ... 5f50c95fb5

See http://www.devsense.com/products/php-to ... /changelog for details or follow as at http://www.facebook.com/pages/PHP-Tools ... 0130137834

Re: Showing private members outside the class

PostPosted: March 25th, 2013, 4:10 pm
by fantasticjamieburns
Hi,

I have upgraded to 1.6.4160 and observe the following:

private_static_member_visible.png


The member variable $application is defined as:

private_static_member_declaration.png


Jamie.

Re: Showing private members outside the class

PostPosted: March 26th, 2013, 10:21 am
by Jakub Misek
fantasticjamieburns wrote:Hi,

I have upgraded to 1.6.4160 and observe the following:

Thanks, I see static members are another case that should be handled... will be fixed.

Re: Showing private members outside the class

PostPosted: March 26th, 2013, 4:14 pm
by fantasticjamieburns
FWIW, I think it maybe members in general (non-methods)...

The following private non-static member:

private_member_declaration.png


Is visible outside of the class as:

private_member.png

Re: Showing private members outside the class

PostPosted: March 26th, 2013, 4:16 pm
by Jakub Misek
It does not seem to be private, since it has normal public icon. We'll check it again.

Re: Showing private members outside the class

PostPosted: May 19th, 2013, 9:13 am
by Jakub Misek
Hi,

Hiding of private members out of its class context in IntelliSense has been implemented.

You can expect this feature in the next update.

Thank You,