phptools-docs
phptools-docs copied to clipboard
Navigation to Overrited Methods and Variables in Classes & Identification
Hello there!
I would like to suggest navigation to Overrited Methods & Variables in Classes. Actually this worked for me one time, and never worked again (or maybe I was dreaming).
Additionally, a visual identification that the method or variable overrides something. This is a nice help to know visually what has been overrited.
Exemples:
Overrrides Trait property
Overrrides Interface method
And when overrides something in extended class
It doesn't need to be an icon actually, but it's an nice idea how PHPStorm does.
Hi @jakubmisek, about this idea/request. Do you think it would be useful and is there any chance it could be included?
@trollfalgar, it is a good idea; in VSCode, we can place an icon inside the text (for example, before the function name) (not sure we can place it inside the left editor margin)
FYI we already have code lens prototype when function overrides something:
@trollfalgar, it is a good idea; in VSCode, we can place an icon inside the text (for example, before the function name) (not sure we can place it inside the left editor margin)
FYI we already have code lens
prototypewhen function overrides something:
@jakubmisek The prototype option doesn't appear for me, and the overrides option, which in my opinion would be interesting, is not showed in properties and in functions appears as zero.
@trollfalgar, this looks like you have _ide_helper? It breaks the functionality (because it adds bogus class declarations).
I'll try to make it work, though.
And you're right, we don't have it for properties (yet).
The icon would be nicest anyway. Maybe we can add it somehow in VSCode.