Visual Studio Code plugin for Psalm. This extension allows for the Psalm server to run inside the docker container. It works by having a docker-compose run the psalm server. Next, it translates the file paths between the host OS and the docker container. This extension is based on the official Psalm VS Code Extension extension.
- Runs Psalm's analysis when opening and saving files using the Language Server Protocol for communication.
- Have a working docker container with docker-compose. It is important for the project code which the Psalm will analyze to be accessible inside the docker.
- Inside the docker container with the code install psalm:
composer require --dev vimeo/psalm
and generate the psalm.xml file./vendor/bin/psalm --init
- Configure this extension accordingly.
You can build and test locally in Visual Studio this locally using npm
:
npm install
npm run build