fantomas-for-vs
fantomas-for-vs copied to clipboard
Formatting doesn't work with WSL2 hosted files in VS2022
Steps to reproduce:
- Create or open a solution/project hosted in WSL2;
- Open a .fs file you wish to format;
- Format the file with Edit > Advanced > Format Document.
Expected result:
The file is formatted according to the code style.
Actual result:
Nothing happens and no changes are introduced to the file.
Note:
Formatting works fine when I open projects in Windows host. Fantomas-tool is installed in both hosts and I can format files through both PowerShell in Windows and ZSH in WSL2 Debian.