fsprojects / fantomas

FSharp source code formatter
https://fsprojects.github.io/fantomas
Other
760 stars 190 forks source link

[Feature request] Set custom fantomas path on Fantomas.Client #3099

Open ratsclub opened 1 week ago

ratsclub commented 1 week ago

I propose we add a way to provide a custom path for fantomas on Fantomas.Client.

As explained on Ionide's discussion, we can't currently have an option to set a custom path for fantomas on VSCode.

Pros and Cons

Pros

The advantages of making this adjustment to Fantomas are ...

The disadvantages of making this adjustment to Fantomas are ...

Affidavit (please submit!)

Please tick this by placing a cross in the box:

Please tick all that apply:

nojaf commented 1 week ago

Is it possible to use a version of fantomas specified on the path with your nix thing?

See

https://github.com/fsprojects/fantomas/blob/09635e55f71fc834c4ac2c33381a80f349f472c4/src/Fantomas.Client/FantomasToolLocator.fs#L126-L148