Closed tiborrr closed 5 months ago
@tiborrr Are you using *.code-workspace
to define the various project roots? VS code will treat each folder added in .code-workspace
as a project root and only then it can use the .vscode/setting.json
if you have multiple projects in the same workspace.
What I recommend is using black
config like this https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.html#configuration-via-a-file , and set the black-formatter.cwd
to ${fileDirname}
this will allow black to automatically pick up the settings. This way it will work in your CI and in VS code the same way. If you use the other approach you will have to handle it separately in CI.
Lastly, the initial part of the Black formatter logs shows you the settings the extension sees.
Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on then we will be happy to re-open this issue to pick up where we left off.
I have a project in which I have a top level
.vscode/settings.json
with only some basic settings.I have a folder to which I want to apply custom black settings. To do so I have created:
src/main/xml_generators/.vscode/settings.json
with the following settings:
This however does not work. Looking at the log. I see that setting are not applied: