-
Notifications
You must be signed in to change notification settings - Fork 12
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 request: Add an option to configure a custom location for .dprint.json #56
Comments
Is your configuration in a sub directory and called either “dprint.json” or “.dprint.json”? If so, it should just work for that sub directory. |
Thanks for the quick response. Our |
I think it should just automatically pick that up in that case and use that config. You can see in "View > Output" then select "dprint" in the drop down of the output window. It should show all the folders it got initialized in. |
Oh wait, I think I misunderstood. You want it to use the configuration in I'm not sure I want to support having configurations in non-standard sub directories because it adds more complexity and maintenance overhead (ex. need to define "use this config for this folder and this config for that folder") and I'm not sure about the benefit. Plus it makes it so you can't just run |
I have a similar and yet somewhat different need: I use a The CLI is happy with it as long as I point to it via the The VSCode extension however does not automatically look for that file extension, and that's why I was also looking for an option to set the path (but really the name) of the configuration file. Is that something that might happen in the future -- that or adding |
Many thanks @dsherret! |
dprint
supports a--config
CLI parameter allowing for a custom configuration path to be specified. However, the VSCode plugin expects.dprint.json
to be in the root of the workspace. It would be great if a configuration property could be added to the plugin, for example,"dprint.configurationFile": "path/to/my/dprint.json"
.The text was updated successfully, but these errors were encountered: