psalm-vscode-plugin
psalm-vscode-plugin copied to clipboard
Folder level settings
The goal of this PR is to support multi-root workspaces, by changing the scope of configuration setting contribution points to resource
instead of the default window
, and fully supporting those changes in behavior.
This should allow the user to configure unique psalm language server settings for each workspace folder in a multi-root workspace. Such a configuration should spawn a separate php psalm process for each workspace folder, allowing each workspace to operate using different php versions, different psalm.xml files, etc.
Note: the fixtures folder contains a sample multi-root workspace setup
This looks great. Just need to play with it.
I'm currently writing a test runner extension for php for vscode and I've switched to using resource as well so I agree with this overall
I moved all the testing stuff to https://github.com/psalm/psalm-vscode-plugin/pull/269 because it was getting tough to read, and also I don't have any actual tests yet.
https://github.com/vimeo/psalm/issues/10094 prevents multiple LSP instances currently
You can start a codespace in https://github.com/limarkxx/psalm-vscode-plugin/tree/test-folder-level-settings to test with a sample project