amir9480/vscode-laravel-extra-intellisense

How to use this extension with docker?

naka-kai opened this issue · 1 comments

I use docker, not SAIL.
I have the following configuration, but it does not complete when {{route('')}}.

{
  "LaravelExtraIntellisense.basePath": "./src",
  "LaravelExtraIntellisense.basePathForCode": "/workspace",
  "LaravelExtraIntellisense.phpCommand": "docker-compose exec app php -r \"{code}\""
}

WORKDIR /workspace

I also get the following error when I hit the following command

docker exec -w /var/www/html -u laravel app-SkillVista php -r \"{code}\"

PHP Parse error:  syntax error, unexpected end of file in Command line code on line 1

Parse error: syntax error, unexpected end of file in Command line code on line 1

Sorry for my bad English.
We look forward to your response!

スクリーンショット 2023-12-09 13 13 10

It worked by restarting vscode!