flutter-stylizer
flutter-stylizer copied to clipboard
Support multi folder workspace
Please forgive any errors in terminology for vscode workspaces, roots, folders, etc.
I created stylizer settings in a folder root in my multi folder workspace, but as can be seen in the screenshot, stylizer won't use the settings. I have another dart project open in a second folder root that my code depends on, but may or may not have it's own stylizer rules. I would like for stylizer to use each folder root's .vscode/settings.json file when in a multi folder workspace.
Of course I can open just my code, but being able to look at and even edit the code in the other project as another folder root is very helpful.

I just realized I can put the settings in my *.code-workspace folder and it seems to apply them. I'm guessing that means those settings apply to all roots. I still think it would nice if it's possible to have them apply to each root independently, but now I can use my settings for my code at least.
(as you can tell, I'm not too familiar with how exactly multi folder workspaces work)
Edit: I just realized one issue with this is that the *.code-workspace file isn't checked into git since it points to where I keep the other project on my machine. So this solution isn't quite as good I thought.
Ah, very interesting, @jibbers42 - I'm not sure how to get VSCode to handle this either. I'll leave this issue open in case anyone else has any ideas on how to address this properly.