1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/packages/legacy-extension-example/renderer.tsx
Sebastian Malton 6e15f68c4f Fix bundled extensions not being loaded (#7359)
* 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>
Signed-off-by: Gabriel <gaccettola@mirantis.com>
2023-03-21 09:07:59 +01:00

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");
}
}