Hi, For ElixirLS (with our current architecture) we need to support formatting of a file with varying CWD. So I'd like to propose a change to `Mix.Tasks.Format.formatter_opts_for_file/2` to support not relying on the current working directory. This is the line that would be changed:
https://github.com/elixir-lang/elixir/blob/36d12b4bd4d26533c216e935903206cc3502200f/lib/mix/lib/mix/tasks/format.ex#L162 My first thought on how to change it is to pass a directory as an option, say `relative_to`. So if `:relative_to` is passed as an option then the formatter options are found relative to that file, but if it is not passed then the current behavior of using the CWD as the `relative_to` path would be kept. I'm open to other approaches as well. Thanks, Jason -- You received this message because you are subscribed to the Google Groups "elixir-lang-core" group. To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-core+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/CAHMz6kzW8BHiELiEYjZT3Y3ky-9gRhjJp0REeHmj%3DLH138p9GA%40mail.gmail.com.