@codingame/monaco-vscode-telemetry-service-override 20.1.1 → 20.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-telemetry-service-override",
3
- "version": "20.1.1",
3
+ "version": "20.2.1",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - telemetry service-override",
6
6
  "keywords": [],
@@ -15,8 +15,8 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-34a0ffd3-b9f5-5699-b43b-38af5732f38a-common": "20.1.1",
19
- "@codingame/monaco-vscode-api": "20.1.1",
18
+ "@codingame/monaco-vscode-34a0ffd3-b9f5-5699-b43b-38af5732f38a-common": "20.2.1",
19
+ "@codingame/monaco-vscode-api": "20.2.1",
20
20
  "@microsoft/1ds-core-js": "3.2.18",
21
21
  "@microsoft/1ds-post-js": "3.2.18"
22
22
  },
@@ -17,7 +17,8 @@ export declare abstract class AbstractOneDataSystemAppender implements ITelemetr
17
17
  protected readonly endPointHealthUrl = "https://mobile.events.data.microsoft.com/ping";
18
18
  constructor(_isInternalTelemetry: boolean, _eventPrefix: string, _defaultData: {
19
19
  [key: string]: any;
20
- } | null, iKeyOrClientFactory: string | (() => IAppInsightsCore), _xhrOverride?: IXHROverride | undefined);
20
+ } | null, iKeyOrClientFactory: string | (() => IAppInsightsCore), // allow factory function for testing
21
+ _xhrOverride?: IXHROverride | undefined);
21
22
  private _withAIClient;
22
23
  log(eventName: string, data?: any): void;
23
24
  flush(): Promise<void>;
@@ -20,6 +20,11 @@ export declare class TelemetryService extends Disposable implements ITelemetrySe
20
20
  get firstSessionDate(): string;
21
21
  get msftInternal(): boolean | undefined;
22
22
  constructor(environmentService: IBrowserWorkbenchEnvironmentService, logService: ILogService, loggerService: ILoggerService, configurationService: IConfigurationService, storageService: IStorageService, productService: IProductService, remoteAgentService: IRemoteAgentService);
23
+ /**
24
+ * Initializes the telemetry service to be a full fledged service.
25
+ * This is only done once and only when telemetry is enabled as this will also ping the endpoint to
26
+ * ensure its not adblocked and we can send telemetry
27
+ */
23
28
  private initializeService;
24
29
  setExperimentProperty(name: string, value: string): void;
25
30
  get telemetryLevel(): TelemetryLevel;