gmlewis / flutter-stylizer

Flutter Stylizer is a VSCode extension that organizes your Flutter classes and mixins in an opinionated and consistent manner.
https://marketplace.visualstudio.com/items?itemName=gmlewis-vscode.flutter-stylizer
Apache License 2.0
23 stars 3 forks source link

Support multi folder workspace #38

Open jibbers42 opened 2 years ago

jibbers42 commented 2 years ago

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.

image

jibbers42 commented 2 years ago

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.

gmlewis commented 2 years ago

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.