Closed aeschli closed 8 years ago
Instead of adding a new commend, better add yourself as a formatter provider
vscode.languages.registerDocumentFormattingEditProvider('xml', ...) vscode.languages.registerDocumentRangeFormattingEditProvider('xml', ...)
Yes then get invoked on the built-in Format command.
You can have a look at my css formatter extension: https://github.com/aeschli/vscode-css-formatter/
Thanks for the hint 👍 Added.
Instead of adding a new commend, better add yourself as a formatter provider
Yes then get invoked on the built-in Format command.
You can have a look at my css formatter extension: https://github.com/aeschli/vscode-css-formatter/