@codingame/monaco-vscode-telemetry-service-override 28.4.1 → 29.0.0

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": "28.4.1",
3
+ "version": "29.0.0",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - telemetry service-override",
6
6
  "keywords": [],
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-api": "28.4.1",
18
+ "@codingame/monaco-vscode-api": "29.0.0",
19
19
  "@microsoft/1ds-core-js": "3.2.18",
20
20
  "@microsoft/1ds-post-js": "3.2.18"
21
21
  },
@@ -19,7 +19,7 @@ let TelemetryLogAppender = class TelemetryLogAppender extends Disposable {
19
19
  const justLoggingAndNotSending = isLoggingOnly(productService, environmentService);
20
20
  const logSuffix = justLoggingAndNotSending ? " (Not Sent)" : "";
21
21
  this.logger = this._register(loggerService.createLogger(id, {
22
- name: ( localize(2102, "Telemetry{0}", logSuffix)),
22
+ name: ( localize(2108, "Telemetry{0}", logSuffix)),
23
23
  group: TelemetryLogGroup,
24
24
  hidden: true
25
25
  }));
@@ -155,28 +155,28 @@ let TelemetryService = class TelemetryService {
155
155
  TelemetryService = TelemetryService_1 = ( __decorate([( __param(1, IConfigurationService)), ( __param(2, IProductService))], TelemetryService));
156
156
  function getTelemetryLevelSettingDescription() {
157
157
  const telemetryText = ( localize(
158
- 2103,
158
+ 2109,
159
159
  "Controls {0} telemetry, first-party extension telemetry, and participating third-party extension telemetry. Some third party extensions might not respect this setting. Consult the specific extension's documentation to be sure. Telemetry helps us better understand how {0} is performing, where improvements need to be made, and how features are being used.",
160
160
  product.nameLong
161
161
  ));
162
162
  const externalLinksStatement = !product.privacyStatementUrl ? ( localize(
163
- 2104,
163
+ 2110,
164
164
  "Read more about the [data we collect]({0}).",
165
165
  "https://aka.ms/vscode-telemetry"
166
166
  )) : ( localize(
167
- 2105,
167
+ 2111,
168
168
  "Read more about the [data we collect]({0}) and our [privacy statement]({1}).",
169
169
  "https://aka.ms/vscode-telemetry",
170
170
  product.privacyStatementUrl
171
171
  ));
172
172
  const restartString = !isWeb ? ( localize(
173
- 2106,
173
+ 2112,
174
174
  "A full restart of the application is necessary for crash reporting changes to take effect."
175
175
  )) : "";
176
- const crashReportsHeader = ( localize(2107, "Crash Reports"));
177
- const errorsHeader = ( localize(2108, "Error Telemetry"));
178
- const usageHeader = ( localize(2109, "Usage Data"));
179
- const telemetryTableDescription = ( localize(2110, "The following table outlines the data sent with each setting:"));
176
+ const crashReportsHeader = ( localize(2113, "Crash Reports"));
177
+ const errorsHeader = ( localize(2114, "Error Telemetry"));
178
+ const usageHeader = ( localize(2115, "Usage Data"));
179
+ const telemetryTableDescription = ( localize(2116, "The following table outlines the data sent with each setting:"));
180
180
  const telemetryTable = `
181
181
  | | ${crashReportsHeader} | ${errorsHeader} | ${usageHeader} |
182
182
  |:------|:-------------:|:---------------:|:----------:|
@@ -186,7 +186,7 @@ function getTelemetryLevelSettingDescription() {
186
186
  | off | - | - | - |
187
187
  `;
188
188
  const deprecatedSettingNote = ( localize(
189
- 2111,
189
+ 2117,
190
190
  "****Note:*** If this setting is 'off', no telemetry will be sent regardless of other telemetry settings. If this setting is set to anything except 'off' and telemetry is disabled with deprecated settings, no telemetry will be sent.*"
191
191
  ));
192
192
  const telemetryDescription = `
@@ -208,7 +208,7 @@ configurationRegistry.registerConfiguration({
208
208
  "id": TELEMETRY_SECTION_ID,
209
209
  "order": 1,
210
210
  "type": "object",
211
- "title": ( localize(2112, "Telemetry")),
211
+ "title": ( localize(2118, "Telemetry")),
212
212
  "properties": {
213
213
  [TELEMETRY_SETTING_ID]: {
214
214
  "type": "string",
@@ -218,7 +218,7 @@ configurationRegistry.registerConfiguration({
218
218
  TelemetryConfiguration.CRASH,
219
219
  TelemetryConfiguration.OFF
220
220
  ],
221
- "enumDescriptions": [( localize(2113, "Sends usage data, errors, and crash reports.")), ( localize(2114, "Sends general error telemetry and crash reports.")), ( localize(2115, "Sends OS level crash reports.")), ( localize(2116, "Disables all product telemetry."))],
221
+ "enumDescriptions": [( localize(2119, "Sends usage data, errors, and crash reports.")), ( localize(2120, "Sends general error telemetry and crash reports.")), ( localize(2121, "Sends OS level crash reports.")), ( localize(2122, "Disables all product telemetry."))],
222
222
  "markdownDescription": getTelemetryLevelSettingDescription(),
223
223
  "default": TelemetryConfiguration.ON,
224
224
  "restricted": true,
@@ -231,20 +231,20 @@ configurationRegistry.registerConfiguration({
231
231
  localization: {
232
232
  description: {
233
233
  key: "telemetry.telemetryLevel.policyDescription",
234
- value: ( localize(2117, "Controls the level of telemetry."))
234
+ value: ( localize(2123, "Controls the level of telemetry."))
235
235
  },
236
236
  enumDescriptions: [{
237
237
  key: "telemetry.telemetryLevel.default",
238
- value: ( localize(2113, "Sends usage data, errors, and crash reports."))
238
+ value: ( localize(2119, "Sends usage data, errors, and crash reports."))
239
239
  }, {
240
240
  key: "telemetry.telemetryLevel.error",
241
- value: ( localize(2114, "Sends general error telemetry and crash reports."))
241
+ value: ( localize(2120, "Sends general error telemetry and crash reports."))
242
242
  }, {
243
243
  key: "telemetry.telemetryLevel.crash",
244
- value: ( localize(2115, "Sends OS level crash reports."))
244
+ value: ( localize(2121, "Sends OS level crash reports."))
245
245
  }, {
246
246
  key: "telemetry.telemetryLevel.off",
247
- value: ( localize(2116, "Disables all product telemetry."))
247
+ value: ( localize(2122, "Disables all product telemetry."))
248
248
  }]
249
249
  }
250
250
  }
@@ -253,7 +253,7 @@ configurationRegistry.registerConfiguration({
253
253
  type: "boolean",
254
254
  default: true,
255
255
  description: ( localize(
256
- 2118,
256
+ 2124,
257
257
  "Enable feedback mechanisms such as the issue reporter, surveys, and other feedback options."
258
258
  )),
259
259
  policy: {
@@ -264,7 +264,7 @@ configurationRegistry.registerConfiguration({
264
264
  description: {
265
265
  key: "telemetry.feedback.enabled",
266
266
  value: ( localize(
267
- 2118,
267
+ 2124,
268
268
  "Enable feedback mechanisms such as the issue reporter, surveys, and other feedback options."
269
269
  ))
270
270
  }
@@ -274,11 +274,11 @@ configurationRegistry.registerConfiguration({
274
274
  [TELEMETRY_OLD_SETTING_ID]: {
275
275
  "type": "boolean",
276
276
  "markdownDescription": !product.privacyStatementUrl ? ( localize(
277
- 2119,
277
+ 2125,
278
278
  "Enable diagnostic data to be collected. This helps us to better understand how {0} is performing and where improvements need to be made.",
279
279
  product.nameLong
280
280
  )) : ( localize(
281
- 2120,
281
+ 2126,
282
282
  "Enable diagnostic data to be collected. This helps us to better understand how {0} is performing and where improvements need to be made. [Read more]({1}) about what we collect and our privacy statement.",
283
283
  product.nameLong,
284
284
  product.privacyStatementUrl
@@ -286,7 +286,7 @@ configurationRegistry.registerConfiguration({
286
286
  "default": true,
287
287
  "restricted": true,
288
288
  "markdownDeprecationMessage": ( localize(
289
- 2121,
289
+ 2127,
290
290
  "If this setting is false, no telemetry will be sent regardless of the new setting's value. Deprecated in favor of the {0} setting.",
291
291
  `\`#${TELEMETRY_SETTING_ID}#\``
292
292
  )),
@@ -176,7 +176,7 @@ let TelemetryContribution = class TelemetryContribution extends Disposable {
176
176
  constructor() {
177
177
  super({
178
178
  id: "workbench.action.showTelemetry",
179
- title: ( localize2(13013, "Show Telemetry")),
179
+ title: ( localize2(13262, "Show Telemetry")),
180
180
  category: Categories.Developer,
181
181
  f1: true
182
182
  });
@@ -9,6 +9,7 @@ import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platfo
9
9
  import { IBrowserWorkbenchEnvironmentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/browser/environmentService.service";
10
10
  import { IRemoteAgentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/remote/common/remoteAgentService.service";
11
11
  import { IMeteredConnectionService } from "@codingame/monaco-vscode-api/vscode/vs/platform/meteredConnection/common/meteredConnection.service";
12
+ import { IRequestService } from "@codingame/monaco-vscode-api/vscode/vs/platform/request/common/request.service";
12
13
  export declare class TelemetryService extends Disposable implements ITelemetryService {
13
14
  readonly _serviceBrand: undefined;
14
15
  private impl;
@@ -19,7 +20,7 @@ export declare class TelemetryService extends Disposable implements ITelemetrySe
19
20
  get devDeviceId(): string;
20
21
  get firstSessionDate(): string;
21
22
  get msftInternal(): boolean | undefined;
22
- constructor(environmentService: IBrowserWorkbenchEnvironmentService, loggerService: ILoggerService, configurationService: IConfigurationService, storageService: IStorageService, productService: IProductService, remoteAgentService: IRemoteAgentService, meteredConnectionService: IMeteredConnectionService);
23
+ constructor(environmentService: IBrowserWorkbenchEnvironmentService, loggerService: ILoggerService, configurationService: IConfigurationService, storageService: IStorageService, productService: IProductService, remoteAgentService: IRemoteAgentService, meteredConnectionService: IMeteredConnectionService, requestService: IRequestService);
23
24
  /**
24
25
  * Initializes the telemetry service to be a full fledged service.
25
26
  * This is only done once and only when telemetry is enabled as this will also ping the endpoint to
@@ -15,8 +15,11 @@ import { NullTelemetryService, supportsTelemetry, getTelemetryLevel, isInternalT
15
15
  import { IBrowserWorkbenchEnvironmentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/browser/environmentService.service';
16
16
  import { IRemoteAgentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/remote/common/remoteAgentService.service';
17
17
  import { IMeteredConnectionService } from '@codingame/monaco-vscode-api/vscode/vs/platform/meteredConnection/common/meteredConnection.service';
18
+ import { mainWindow } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/window';
18
19
  import { resolveWorkbenchCommonProperties } from './workbenchCommonProperties.js';
19
20
  import { experimentsEnabled } from '../common/workbenchTelemetryUtils.js';
21
+ import { NO_FETCH_TELEMETRY } from '@codingame/monaco-vscode-api/vscode/vs/platform/request/common/request';
22
+ import { IRequestService } from '@codingame/monaco-vscode-api/vscode/vs/platform/request/common/request.service';
20
23
 
21
24
  let TelemetryService = class TelemetryService extends Disposable {
22
25
  get sessionId() {
@@ -44,7 +47,8 @@ let TelemetryService = class TelemetryService extends Disposable {
44
47
  storageService,
45
48
  productService,
46
49
  remoteAgentService,
47
- meteredConnectionService
50
+ meteredConnectionService,
51
+ requestService
48
52
  ) {
49
53
  super();
50
54
  this.impl = NullTelemetryService;
@@ -71,6 +75,16 @@ let TelemetryService = class TelemetryService extends Disposable {
71
75
  );
72
76
  }
73
77
  }));
78
+ this._register(requestService.onDidCompleteRequest(e => {
79
+ if (e.callSite === NO_FETCH_TELEMETRY || productService.quality === "stable") {
80
+ return;
81
+ }
82
+ this.publicLog2("fetchCall", {
83
+ callSite: e.callSite,
84
+ latency: e.latency,
85
+ statusCode: e.statusCode
86
+ });
87
+ }));
74
88
  }
75
89
  initializeService(
76
90
  environmentService,
@@ -106,6 +120,7 @@ let TelemetryService = class TelemetryService extends Disposable {
106
120
  environmentService.remoteAuthority,
107
121
  environmentService.options && environmentService.options.resolveCommonTelemetryProperties
108
122
  ),
123
+ piiPaths: [mainWindow.location.origin],
109
124
  sendErrorTelemetry: this.sendErrorTelemetry,
110
125
  waitForExperimentProperties: experimentsEnabled(configurationService, productService, environmentService),
111
126
  meteredConnectionService
@@ -133,6 +148,6 @@ let TelemetryService = class TelemetryService extends Disposable {
133
148
  this.publicLogError(eventName, data);
134
149
  }
135
150
  };
136
- TelemetryService = ( __decorate([( __param(0, IBrowserWorkbenchEnvironmentService)), ( __param(1, ILoggerService)), ( __param(2, IConfigurationService)), ( __param(3, IStorageService)), ( __param(4, IProductService)), ( __param(5, IRemoteAgentService)), ( __param(6, IMeteredConnectionService))], TelemetryService));
151
+ TelemetryService = ( __decorate([( __param(0, IBrowserWorkbenchEnvironmentService)), ( __param(1, ILoggerService)), ( __param(2, IConfigurationService)), ( __param(3, IStorageService)), ( __param(4, IProductService)), ( __param(5, IRemoteAgentService)), ( __param(6, IMeteredConnectionService)), ( __param(7, IRequestService))], TelemetryService));
137
152
 
138
153
  export { TelemetryService };