codingyu / laravel-goto-view

vscode extension
MIT License
46 stars 28 forks source link

Go to view quick jump not working #67

Open murugappanrm opened 1 year ago

murugappanrm commented 1 year ago

In my controller, i define the return as:

return view('welcome');

When i ctrl + click or alt + click on the "welcome", it does not jump to the view file. All it does is position the cursor.

codingyu commented 1 year ago

If the view name string is not underlined, it cannot jump. Confirm configuration: image

Hover image

murugappanrm commented 1 year ago

The setting is correct. There is no underline for the link. Same problem for both Laravel 8 and 9. After some testing, i found that the extension did not work if the app was located in a sub-folder. E.g Does not work if the app laravelapp was located laravel->laravelapp. After loading vscode in the laravelapp folder, it worked fine.

I found another extension "ctf0.laravel-goto-view" which stated that it was forked from your extension. This extension works better in that it provides additional feature to create the view if it does not exist.