fantomas-for-vs icon indicating copy to clipboard operation
fantomas-for-vs copied to clipboard

Formatting doesn't work with WSL2 hosted files in VS2022

Open Nekroido opened this issue 2 years ago • 31 comments

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.

Nekroido avatar Apr 21 '22 17:04 Nekroido