VSCode taking a very long time to format saved file

Maybe it’s taking a while to load everytime the language server has to restart. What setting are you using to format files on save?