Register an Event listener that is called when a plugin is registered.
Register an Event listener that is called when a plugin is unregistered.
Register a new provider, which can handles the inversion of conditions. It is recommended to register your provider for each type, to prevent conflicts with other extensions.
Your extension should call unregisterConditionProvider
in deactivate
.
The provider that will be used to invert conditions.
The document selector that selects for languages supported by your extension.
Register a new provider, which can handles the resolving of embedded language sections. Your provider will be called based on the document selector and the sections will then be passed on to the providers corresponding to the embedded language.
Your extension should call unregisterEmbeddedLanguageProvider
in deactivate
.
The provider that will be used to resolve embedded language sections.
The document selector that selects for languages supported by your extension.
Register a new provider, which can handles the creation of guard clauses. It is recommended to register your provider for each type, to prevent conflicts with other extensions.
Your extension should call unregisterGuardClauseProvider
in deactivate
.
The provider that will be used to create guard clauses.
The document selector that selects for languages supported by your extension.
Register a new provider, which can handles the inversion of if-else statements. It is recommended to register your provider for each type, to prevent conflicts with other extensions.
Your extension should call unregisterIfElseProvider
in deactivate
.
The provider that will be used to invert if-else statements.
The document selector that selects for languages supported by your extension.
Unregister a provider, which can handles the inversion of if-else statements.
The provider that will be unregistered.
Unregister a provider, which can handles the resolving of embedded language sections.
The provider that will be unregistered.
Unregister a provider, which can handles the inversion of conditions.
The provider that will be unregistered.
Unregister a provider, which can handles the creation of guard clauses.
The provider that will be unregistered.
The interface that is provided by the
1nVitr0.invert-if
extension.Example: Example usage in an extension adding language support for JavaScript: