bessey / vscode-rufo

VS Code extension for rufo (the ruby formatter)
https://marketplace.visualstudio.com/items?itemName=mbessey.vscode-rufo
MIT License
19 stars 6 forks source link

Slow to format #6

Open garyking opened 6 years ago

garyking commented 6 years ago

This is a nice extension. But, when I run it, even on a very small document, it's very slow to run. The default timeout for onSave formatters in VS Code is 750 ms, and this ext needs about 2500 ms for a file that has 3 lines, in order to run.

Any reason why it's so slow? Running rufo from the CLI on the same file takes much less time, about 300 ms.