SanderRonde / phpstan-vscode

PHPStan plugin for VSCode
https://marketplace.visualstudio.com/items?itemName=SanderRonde.phpstan-vscode
MIT License
37 stars 7 forks source link

Multiroot Workspaces Support #48

Closed muuvmuuv closed 5 months ago

muuvmuuv commented 5 months ago

I have a VS Code Workspace setup, but phpstan can only be used in the first project in a workspace.

https://code.visualstudio.com/docs/editor/workspaces#_multiroot-workspaces

SanderRonde commented 5 months ago

This is a bit of a tough one. It's quite hard to implement multi-workspace support for something like this and it'll add a whole lot of complexity. Every instance of a thing now needs a bunch of workspaces and needs to know which files it concerns and which files it should ignore. All in all: definitely not impossible but I think it's not worth the whole lot of added complexity for the relatively small demand.

I know this sucks as a solution but the best solution might be to just not use a multi-root workspace for this.