fsprojects / fantomas

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

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

Open ratsclub opened 5 months ago

ratsclub commented 5 months 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 5 months 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

nojaf commented 3 months ago

Maybe having https://github.com/fsprojects/fantomas/issues/3104 would resolve your problem as well.