Initial telemetry extension (#1067)

* initial telemetry extension

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* Fix preferences saving and default value

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>

Co-authored-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
Jari KolehmainenandLauri Nevala authored and GitHub committed 2020-10-13 12:57:38 +03:00
1 parent 4f98a01a8b
commit 45abc740e9
28 files changed
+3837 -48

No files matched your search

+2 -2
View File
@@ -59,7 +59,7 @@ export class LensExtension implements ExtensionModel {
async enable(runtime: LensExtensionRuntimeEnv) {
this.isEnabled = true;
this.runtime = runtime;
logger.info(`[EXTENSION]: enabled ${this.name}@${this.version}`, this.getMeta());
logger.info(`[EXTENSION]: enabled ${this.name}@${this.version}`);
this.onActivate();
}
@@ -69,7 +69,7 @@ export class LensExtension implements ExtensionModel {
this.runtime = null;
this.disposers.forEach(cleanUp => cleanUp());
this.disposers.length = 0;
logger.info(`[EXTENSION]: disabled ${this.name}@${this.version}`, this.getMeta());
logger.info(`[EXTENSION]: disabled ${this.name}@${this.version}`);
}
// todo: add more hooks