Provide formatting edits for a whole document.
The document in which the command was invoked.
Options controlling formatting.
A cancellation token.
A set of text edits or a thenable that resolves to such. The lack of a result can be
signaled by returning undefined
, null
, or an empty array.
The document formatting provider interface defines the contract between extensions and the formatting-feature.