reasonml-editor / vscode-reasonml

OCaml & Reason support for Visual Studio Code
Apache License 2.0
491 stars 62 forks source link

Lag when formatting a file via VS Code (Windows 10 WSL) #221

Open guico33 opened 6 years ago

guico33 commented 6 years ago

Hi,

The environment has been set up following the instruction at https://github.com/reasonml/reasonml.github.io/issues/195. Everything else seems to be working fine.

Formatting .re files via VS Code (either on save or via the Format Document command) takes significantly longer than it should (around 3 seconds in my case). refmt --in-place from the command line is normally fast.

A consequence of this is when 'formatting on save' is enabled, saving is delayed as well.

The same problem happens on a fresh project. Only reason files are affected, formatting a .js file for example would be near instant as usual.