registerDocumentRangeFormattingEditProvider method
Disposable
registerDocumentRangeFormattingEditProvider(
- Object selector,
- DocumentRangeFormattingEditProvider provider
Register a formatting provider for a document range.
Note: A document range provider is also a {@link DocumentFormattingEditProviderdocument formatter} which means there is no need to {@link languages.registerDocumentFormattingEditProviderregister} a document formatter when also registering a range provider.
Multiple providers can be registered for a language. In that case providers are sorted by their {@link languages.matchscore} and the best-matching provider is used. Failure of the selected provider will cause a failure of the whole operation.
Implementation
_i3.Disposable registerDocumentRangeFormattingEditProvider(
_i2.Object selector,
_i3.DocumentRangeFormattingEditProvider provider,
) =>
_i4.callMethod(
this,
'registerDocumentRangeFormattingEditProvider',
[
selector,
provider,
],
);