-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathmain.ts
23 lines (22 loc) · 908 Bytes
/
main.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { Main } from "@k8slens/extensions";
import { sternPreferenceStore } from "./src/preference/stern-preference/stern-preference-store";
/**
* Main.LensExtension api allows you to access, configure, and customize Lens data add
* custom application menu items, and generally run custom code in Lens'
* main process.
*
* See more details: <https://docs.k8slens.dev/>
*/
export default class MultiPodLogsMain extends Main.LensExtension {
/**
* onActivate is called when your extension has been successfully enabled.
*/
onActivate() {
// !! Note that the console statements in MainExtension is NOT visible in the
// !! DevTools console in Lens
// To see console statements, start the Lens app from a Terminal
console.log("lens-multi-pod-logs main | activating...");
sternPreferenceStore.loadExtension(this);
console.log("lens-multi-pod-logs main | activated");
}
}