Showing private members outside the class

PHP Tools [?] extends Visual Studio with set of advanced features to work more efficiently with PHP code.

Showing private members outside the class

Postby fantasticjamieburns » February 22nd, 2013, 11:52 pm

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.
You do not have the required permissions to view the files attached to this post.
fantasticjamieburns
 
Posts: 44
Joined: September 10th, 2012, 10:33 am

Re: Showing private members outside the class

Postby Jakub Misek » February 23rd, 2013, 12:36 am

You are right, currently private members are shown in any context. We'll improve this in some future version.

Thanks!
Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague

Re: Showing private members outside the class

Postby CFI » February 25th, 2013, 7:29 am

I was wondering that too and it would improve usability a lot as I have many private stuff which unnecessarly fills up the list...
CFI
 
Posts: 66
Joined: December 13th, 2012, 1:29 pm

Re: Showing private members outside the class

Postby Miloslav Beno » February 25th, 2013, 10:27 am

Agreed, this will move up with the priority.

Thanks for suggestions!
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1252
Joined: January 7th, 2012, 8:36 pm

Re: Showing private members outside the class

Postby Jakub Misek » March 24th, 2013, 7:47 pm

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
Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague

Re: Showing private members outside the class

Postby fantasticjamieburns » March 25th, 2013, 4:10 pm

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.
You do not have the required permissions to view the files attached to this post.
fantasticjamieburns
 
Posts: 44
Joined: September 10th, 2012, 10:33 am

Re: Showing private members outside the class

Postby Jakub Misek » March 26th, 2013, 10:21 am

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.
Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague

Re: Showing private members outside the class

Postby fantasticjamieburns » March 26th, 2013, 4:14 pm

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
You do not have the required permissions to view the files attached to this post.
fantasticjamieburns
 
Posts: 44
Joined: September 10th, 2012, 10:33 am

Re: Showing private members outside the class

Postby Jakub Misek » March 26th, 2013, 4:16 pm

It does not seem to be private, since it has normal public icon. We'll check it again.
Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague

Re: Showing private members outside the class

Postby Jakub Misek » May 19th, 2013, 9:13 am

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,
Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague


Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 24 guests

cron

User Control Panel

Login

Who is online

In total there are 24 users online :: 0 registered, 0 hidden and 24 guests (based on users active over the past 5 minutes)
Most users ever online was 256 on March 28th, 2024, 9:42 am

Users browsing this forum: No registered users and 24 guests