mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
* Fix bundled extensions not being loaded - Also show that this fixes it by added an example bundled extension to 'open-lens' Signed-off-by: Sebastian Malton <sebastian@malton.name> * Fix build Signed-off-by: Sebastian Malton <sebastian@malton.name> * Add explanatory comment for inline require Signed-off-by: Sebastian Malton <sebastian@malton.name> --------- Signed-off-by: Sebastian Malton <sebastian@malton.name>
12 lines
373 B
TypeScript
12 lines
373 B
TypeScript
import { Common, Renderer } from "@k8slens/extensions";
|
|
|
|
export default class ExampleLensExtension extends Renderer.LensExtension {
|
|
protected onActivate(): void | Promise<void> {
|
|
Common.logger.info("Activating bundled extension example");
|
|
}
|
|
|
|
protected onDeactivate(): void | Promise<void> {
|
|
Common.logger.info("Deactivating bundled extension example");
|
|
}
|
|
}
|