registerOnTypeFormattingEditProvider method
Disposable
registerOnTypeFormattingEditProvider(
- Object selector,
- OnTypeFormattingEditProvider provider,
- String firstTriggerCharacter, [
- Iterable? moreTriggerCharacter,
Register a formatting provider that works on type. The provider is active when the user enables the setting editor.formatOnType
.
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 registerOnTypeFormattingEditProvider(
_i2.Object selector,
_i3.OnTypeFormattingEditProvider provider,
_i2.String firstTriggerCharacter, [
_i2.Iterable<_i2.dynamic>? moreTriggerCharacter,
]) =>
_i4.callMethod(
this,
'registerOnTypeFormattingEditProvider',
[
selector,
provider,
firstTriggerCharacter,
...?moreTriggerCharacter,
],
);