phptools-docs icon indicating copy to clipboard operation
phptools-docs copied to clipboard

Navigation to Overrited Methods and Variables in Classes & Identification

Open trollfalgar opened this issue 10 months ago • 4 comments

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 image

Overrrides Interface method image

And when overrides something in extended class image

It doesn't need to be an icon actually, but it's an nice idea how PHPStorm does.

trollfalgar avatar Jan 09 '25 13:01 trollfalgar

Hi @jakubmisek, about this idea/request. Do you think it would be useful and is there any chance it could be included?

trollfalgar avatar Apr 24 '25 15:04 trollfalgar

@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:

Image

jakubmisek avatar Apr 25 '25 15:04 jakubmisek

@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:

Image

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

Image Image

trollfalgar avatar Apr 28 '25 14:04 trollfalgar

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

jakubmisek avatar May 04 '25 16:05 jakubmisek