mike7515 / code-beautifier

MIT License
19 stars 5 forks source link

Use formatter integration API #2

Closed jrieken closed 8 years ago

jrieken commented 8 years ago

In VS Code there is special API for integrating formatters. Take a look at registerDocumentFormattingEditProvider and registerDocumentRangeFormattingEditProvider. When using these functions to register a formatter, it will be called from the context menu format actions, the default keybindings, and they will automatically be part of the format on save feature. Migrating to that API should be simple and I there to answer questions

mike7515 commented 8 years ago

Fixed it. Thanks so much.