Enabling formatOnSave doesn't cause formatting provider to be invoked during save #13690
Labels
bug
Issue identified by VS Code Team member as probable bug
formatting
Source formatter issues
verified
Verification succeeded
Milestone
Steps to Reproduce:
"editor.formatOnSave": true
to user optionsAlt
+Shift
+F
and observe formatting workCtrl
+S
Formatting works fine when I invoke it directly, but
provideDocumentFormattingEdits
never gets called when I press Save.It works fine for JSON files, so I presume there's something specific about my extension, but I can't find anything in the docs suggesting I need to do anything specific to enable this?
I'm registering my formatter on activation like this:
I've got a breakpoint in the first line of
provideDocumentFormattingEdits
but it never seems to trigger (full code for this file is here).The text was updated successfully, but these errors were encountered: