Closed
Description
- VSCode Version: 1.19
- OS Version: Mac OS 10.12.6
I am having some trouble with editor.formatOnSave=true
when using the Ruby extension. It isn't formatting on save. This is strange, because a manual Format Document
works fine. How is that possible?
I assumed this was user error or an extension bug. So I modified the extension locally and added some debug output to this file:
https://github.com/rubyide/vscode-ruby/blob/master/src/format/rubyFormat.ts
I verified that the correct edits were being returned from provideDocumentFormattingEdits
. This makes sense since a manual Format Document
works fine. What am I missing? Could this be a vscode bug? Not sure how to debug further.