vendredi 23 août 2019

Go to definition in VScode works for inherited classes but why it is not working for for the classes which are included or imported?

I have a problem with 'go to definition' feature for Laravel development in VsCode. I installed PHP intelephense for easy navigation to function definitions. The problem is I could navigate only to the function definitions which are defined inside the class, functions of the parent class and not to the imported or included classes. Is there any solution available like in sublime text where we could navigate to all possible function definitions being in any file ?.

use App\Classes\Test; // => included/imported class 
class Child extends Parent{
    public function __construct(){
        $this->test_class = new Test();
    }

    public function child_function_1(){
        $this->child_function_2();// =>  Ctrl + Click go to definition (same class) working !
        $this->parent_function_1(); // =>  Ctrl + Click go to definition (parent class) working !
        $this->test_class->test_function_1(); // Ctrl + Click go to definition (included/imported class) not working !
    }

    public function child_function_2(){

    }
}



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire