Skip to content

Jump to a line number from @see doesn't work #3513

@pavlo-tk

Description

@pavlo-tk

Describe the bug
When you reference a file and a line number using @see, Ctrl + Click on the reference doesn't open the referenced file and results in an error originating from VS Code, for example: "Unable to open cart.php:191".

To Reproduce

    /**
     * Comment.
     * @see public/wp-content/plugins/woocommerce/templates/cart/cart.php:191
     */
    function showOnlyCheckoutButtonInCart(): void
    {
        //
    }

Expected behavior
Ctrl + Click should jump you to the referenced file and put the cursor at the referenced line number. Using VS Code's Ctrl + P interface to find files and pasting the same reference (public/wp-content/plugins/woocommerce/templates/cart/cart.php:191) successfully finds the file and the line in it, so the functionality is there.

Platform and version
Ubuntu, VS Code v1.108.0, PHP Intelephense v1.16.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions