-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Folder level settings #268
base: master
Are you sure you want to change the base?
Conversation
3343b68
to
b0a390f
Compare
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 #269 because it was getting tough to read, and also I don't have any actual tests yet. |
vimeo/psalm#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 |
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 defaultwindow
, 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