As this issue for Visualforce extension suggests, the Visualforce Lanaguage Server fails to format Visualforce page/component only if the code contains <style> . . . . </style>
tag(s).
Not an answer to your question, unfortunately, but I am unable to add this as a comment (not enough reputation on this particular StackOverflow site).