MCPcopy Create free account
hub / github.com/deepnote/vscode-deepnote / isTelemetrySupported

Function isTelemetrySupported

src/platform/telemetry/index.ts:26–33  ·  view source on GitHub ↗

* Checks whether telemetry is supported. * Its possible this function gets called within Debug Adapter, vscode isn't available in there. * Within DA, there's a completely different way to send telemetry.

()

Source from the content-addressed store, hash-verified

24 * Within DA, there's a completely different way to send telemetry.
25 */
26function isTelemetrySupported(): boolean {
27 try {
28 // In ESM, vscode is already imported at the top, so we just need to check if telemetry reporter is available
29 return getTelemetryReporter() !== undefined;
30 } catch {
31 return false;
32 }
33}
34
35/**
36 * Checks if the telemetry is disabled in user settings

Callers 1

sendTelemetryEventFunction · 0.85

Calls 1

getTelemetryReporterFunction · 0.85

Tested by

no test coverage detected