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
In VS Code there is special API for integrating formatters. Take a look at
registerDocumentFormattingEditProvider
andregisterDocumentRangeFormattingEditProvider
. 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