MCPcopy Create free account
hub / github.com/Marus/cortex-debug / activate

Function activate

src/reporting.ts:58–67  ·  view source on GitHub ↗
(context: vscode.ExtensionContext)

Source from the content-addressed store, hash-verified

56}
57
58function activate(context: vscode.ExtensionContext) {
59 if (!telemetryEnabled()) { return; }
60
61 analytics = ua(trackingId, getUUID());
62 analytics.set(EXTENSION_VERSION_DIMENSION, extensionVersion);
63 analytics.set(VSCODE_VERSION_DIMENSION, vscode.version);
64 analytics.set(PLATFORM_TYPE_DIMENSION, os.platform());
65 analytics.set(PLATFORM_RELEASE_DIMENSION, os.release());
66 analytics.set(NODE_VERSION_DIMENSION, process.versions.node);
67}
68
69function deactivate() {
70 if (!telemetryEnabled()) { return; }

Callers

nothing calls this directly

Calls 2

telemetryEnabledFunction · 0.85
getUUIDFunction · 0.85

Tested by

no test coverage detected