Skip to content

Conversation

@shanto
Copy link

@shanto shanto commented Nov 10, 2025

On top of my previous commits for Docker Environment (#483), these commits fix some of remaining issues with running the Laravel VS Code extension directly on top of Windows.

In particular, f3461be fixes the attempt to execute ./vendor/bin/pint by the IDE integrated formatter. When on Windows, it is properly prefixed by the active PHP command derived from the detected php Environment.

83e413c fixes Unexpected string constant echo... on execution of php -r 'echo PHP_BINARY;' when detecting local php on Windows. Using double quotes fixes that.

Support for Docker based PHP environment configurable with config keys:

{
    "Laravel.dockerService": "php", // from `docker compose config --services`
    "Laravel.dockerBase": "/app", // from `docker compose exec {dockerService} pwd`
}

This plugin does not auto boot Docker container(s) although it can be implemented in later revisions. For now, ensure that Docker container is running with configured dockerService name and dockerBase path as working directory before attempting to use the plugin with Docker support.
@N1ebieski
Copy link
Contributor

N1ebieski commented Nov 10, 2025

Related to #469 and #478

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants