-
Notifications
You must be signed in to change notification settings - Fork 8
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
[Feature] Multi-Root support #55
Comments
Hmm I'm not really sure how this would look. The
Could you maybe enter a path to the workspace you want phpstan-linted and save that in the (multi-root) workspace settings? That way it'll only lint a single workspace but will (I think) work. |
Sure! I'd be fine for a setting to set the folder path to the one that'll be "stanned", that would be great. |
You should be able to do that by setting |
Nope. It sets whatever I put in there relative to the first workspace. It should be relative to the directory of the workspace root if anything? Ultimately if you supported ${workspace folder:name} would be great too. :) |
I'm not against supporting It's indeed correct that it sets whatever is in there relative to the first workspace if it's a relative path, because otherwise it's kind of hard to say "to what" it is relative. It should work with an absolute path though. |
I definitely wanna stay away from absolute paths. If the rootDir could be fixed to be relative to the multi-root workspace folder I'm sure that would work too, then I could just put a relative path to the right folder. In a {
"folders": [
{
"path": "path1"
},
{
"path": "path2"
},
{
"path": "path3"
}
],
} And using ${workspaceFolder:path1} uses the folder for path1 in the folders. :) As for more information on the topic, going here: https://code.visualstudio.com/docs/editor/variables-reference#_variables-scoped-per-workspace-folder You can see that:
There's also a little more located at: https://code.visualstudio.com/docs/editor/multi-root-workspaces If you wanna know about the "folders" setting. Thanks for all the help. |
|
Beautiful! Thanks man. <3 |
Hi there, I do appreciate the warning of multiple workspaces, but, it would be nice if we could configure the path and rootDir ourselves and use "${workspaceFolder:name}", and binPath would be "${workspaceFolder:name}/vendor/bin/phpstan" etc. But instead when I set rootDir, it shows "/home/user/some/folder/${workspaceFolder:name}" does not exist, and I'm also guessing binPath doesn't scan for the workspace folder either?
The text was updated successfully, but these errors were encountered: