vscode-intelephense icon indicating copy to clipboard operation
vscode-intelephense copied to clipboard

@see @uses Jump to definition does not work

Open tianyiw2013 opened this issue 4 years ago • 6 comments

Describe the bug @see and @uses Jump to definition does not work

To Reproduce

/**
 * @see Obj No problem
 * @see Obj::func() Don't work
 * @uses Obj Don't work
 * @uses Obj::func() Don't work
 */

class Obj
{
    static function func()
    {
        
    }
}

Expected behavior ctrl + click @see @uses Jump to definition.

Screenshots N/A

Platform and version Intelephense 1.7.1

tianyiw2013 avatar May 16 '21 10:05 tianyiw2013

@bmewburn Can you add to @see or @link jump to a project file?

/**
 * @see database/migrations/2021_05_28_085014_delete_calculator_contract_table.php
 * @link database/migrations/2021_05_28_085014_delete_calculator_contract_table.php
 */

They are in the project catalog.

Thank you.

dmitrach avatar May 28 '21 09:05 dmitrach

+1 for both features. Feature 1, I need to add a space after Obj to at least jump to the class:

/**
 * @see Obj ::func()
 */

For feature 2 @link, it is especially useful for .pthml files, which do not contain class definitions.

kiatng avatar Jun 14 '21 01:06 kiatng

+1 for this

MangoMarcus avatar Feb 06 '22 16:02 MangoMarcus

+1 too

marinaglancy avatar Feb 08 '23 10:02 marinaglancy

One more case. The BClass case in an array doesn't work, but AClass without an array works.

    /**
     * @see AClass
     */
    private function method()
    {
        return [
            'value' => 'value', /** @see BClass */
        ]; 
    }

dmitrach avatar Mar 06 '23 13:03 dmitrach

Bumplease.

AnrDaemon avatar Jan 31 '24 21:01 AnrDaemon

tracking in #1316

bmewburn avatar Mar 19 '24 01:03 bmewburn