Open jaens opened 4 years ago
This is because dfmt
only looks for .editorconfig
if path to the file has been passed as as an argument. If it is used with stdin
, -c <project_root>
argument needs to be passed. Does workspace-d have some variable with project root?
no it's because dfmt is used as a library, this is not the application dfmt and I never load any .editorconfig, which is why it's not loaded.
It needs to be added as feature, so this is a feature request.
Sorry, I misunderstood what happens there in the code.
I have the following in the project folder's
.editorconfig
:Yet, when activating "Format Document" in code-d, it formats it using the default brace style...
(this can be worked around by setting
"dfmt.braceStyle": "otbs"
in VSCode, but it would be better if this respected project configs)