@codingame/monaco-vscode-telemetry-service-override 31.0.1 → 32.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": "31.0.1",
3
+ "version": "32.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": "31.0.1",
18
+ "@codingame/monaco-vscode-api": "32.0.0",
19
19
  "@microsoft/1ds-core-js": "3.2.18",
20
20
  "@microsoft/1ds-post-js": "3.2.18"
21
21
  },
@@ -1,5 +1,6 @@
1
1
 
2
2
  import { mainWindow } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/window';
3
+ import { getRecentDisposableResizeObserverAttributionForLoopError } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
3
4
  import { ErrorNoTelemetry } from '@codingame/monaco-vscode-api/vscode/vs/base/common/errors';
4
5
  import { toDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
5
6
  import BaseErrorTelemetry from '@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/errorTelemetry';
@@ -44,6 +45,11 @@ class ErrorTelemetry extends BaseErrorTelemetry {
44
45
  : err.stack;
45
46
  }
46
47
  }
48
+ const resizeObserverAttribution = getRecentDisposableResizeObserverAttributionForLoopError(msg);
49
+ if (resizeObserverAttribution) {
50
+ data.msg = resizeObserverAttribution;
51
+ data.callstack = resizeObserverAttribution;
52
+ }
47
53
  this._enqueue(data);
48
54
  }
49
55
  }
@@ -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(2111, "Telemetry{0}", logSuffix)),
22
+ name: ( localize(2123, "Telemetry{0}", logSuffix)),
23
23
  group: TelemetryLogGroup,
24
24
  hidden: true
25
25
  }));
@@ -164,28 +164,28 @@ let TelemetryService = class TelemetryService {
164
164
  TelemetryService = TelemetryService_1 = ( __decorate([( __param(1, IConfigurationService)), ( __param(2, IProductService))], TelemetryService));
165
165
  function getTelemetryLevelSettingDescription() {
166
166
  const telemetryText = ( localize(
167
- 2112,
167
+ 2124,
168
168
  "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.",
169
169
  product.nameLong
170
170
  ));
171
171
  const externalLinksStatement = !product.privacyStatementUrl ? ( localize(
172
- 2113,
172
+ 2125,
173
173
  "Read more about the [data we collect]({0}).",
174
174
  "https://aka.ms/vscode-telemetry"
175
175
  )) : ( localize(
176
- 2114,
176
+ 2126,
177
177
  "Read more about the [data we collect]({0}) and our [privacy statement]({1}).",
178
178
  "https://aka.ms/vscode-telemetry",
179
179
  product.privacyStatementUrl
180
180
  ));
181
181
  const restartString = !isWeb ? ( localize(
182
- 2115,
182
+ 2127,
183
183
  "A full restart of the application is necessary for crash reporting changes to take effect."
184
184
  )) : "";
185
- const crashReportsHeader = ( localize(2116, "Crash Reports"));
186
- const errorsHeader = ( localize(2117, "Error Telemetry"));
187
- const usageHeader = ( localize(2118, "Usage Data"));
188
- const telemetryTableDescription = ( localize(2119, "The following table outlines the data sent with each setting:"));
185
+ const crashReportsHeader = ( localize(2128, "Crash Reports"));
186
+ const errorsHeader = ( localize(2129, "Error Telemetry"));
187
+ const usageHeader = ( localize(2130, "Usage Data"));
188
+ const telemetryTableDescription = ( localize(2131, "The following table outlines the data sent with each setting:"));
189
189
  const telemetryTable = `
190
190
  | | ${crashReportsHeader} | ${errorsHeader} | ${usageHeader} |
191
191
  |:------|:-------------:|:---------------:|:----------:|
@@ -195,7 +195,7 @@ function getTelemetryLevelSettingDescription() {
195
195
  | off | - | - | - |
196
196
  `;
197
197
  const deprecatedSettingNote = ( localize(
198
- 2120,
198
+ 2132,
199
199
  "****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.*"
200
200
  ));
201
201
  const telemetryDescription = `
@@ -217,7 +217,7 @@ configurationRegistry.registerConfiguration({
217
217
  "id": TELEMETRY_SECTION_ID,
218
218
  "order": 1,
219
219
  "type": "object",
220
- "title": ( localize(2121, "Telemetry")),
220
+ "title": ( localize(2133, "Telemetry")),
221
221
  "properties": {
222
222
  [TELEMETRY_SETTING_ID]: {
223
223
  "type": "string",
@@ -227,7 +227,7 @@ configurationRegistry.registerConfiguration({
227
227
  TelemetryConfiguration.CRASH,
228
228
  TelemetryConfiguration.OFF
229
229
  ],
230
- "enumDescriptions": [( localize(2122, "Sends usage data, errors, and crash reports.")), ( localize(2123, "Sends general error telemetry and crash reports.")), ( localize(2124, "Sends OS level crash reports.")), ( localize(2125, "Disables all product telemetry."))],
230
+ "enumDescriptions": [( localize(2134, "Sends usage data, errors, and crash reports.")), ( localize(2135, "Sends general error telemetry and crash reports.")), ( localize(2136, "Sends OS level crash reports.")), ( localize(2137, "Disables all product telemetry."))],
231
231
  "markdownDescription": getTelemetryLevelSettingDescription(),
232
232
  "default": TelemetryConfiguration.ON,
233
233
  "restricted": true,
@@ -240,20 +240,20 @@ configurationRegistry.registerConfiguration({
240
240
  localization: {
241
241
  description: {
242
242
  key: "telemetry.telemetryLevel.policyDescription",
243
- value: ( localize(2126, "Controls the level of telemetry."))
243
+ value: ( localize(2138, "Controls the level of telemetry."))
244
244
  },
245
245
  enumDescriptions: [{
246
246
  key: "telemetry.telemetryLevel.default",
247
- value: ( localize(2122, "Sends usage data, errors, and crash reports."))
247
+ value: ( localize(2134, "Sends usage data, errors, and crash reports."))
248
248
  }, {
249
249
  key: "telemetry.telemetryLevel.error",
250
- value: ( localize(2123, "Sends general error telemetry and crash reports."))
250
+ value: ( localize(2135, "Sends general error telemetry and crash reports."))
251
251
  }, {
252
252
  key: "telemetry.telemetryLevel.crash",
253
- value: ( localize(2124, "Sends OS level crash reports."))
253
+ value: ( localize(2136, "Sends OS level crash reports."))
254
254
  }, {
255
255
  key: "telemetry.telemetryLevel.off",
256
- value: ( localize(2125, "Disables all product telemetry."))
256
+ value: ( localize(2137, "Disables all product telemetry."))
257
257
  }]
258
258
  }
259
259
  }
@@ -262,7 +262,7 @@ configurationRegistry.registerConfiguration({
262
262
  type: "boolean",
263
263
  default: true,
264
264
  description: ( localize(
265
- 2127,
265
+ 2139,
266
266
  "Enable feedback mechanisms such as the issue reporter, surveys, and other feedback options."
267
267
  )),
268
268
  policy: {
@@ -273,7 +273,7 @@ configurationRegistry.registerConfiguration({
273
273
  description: {
274
274
  key: "telemetry.feedback.enabled",
275
275
  value: ( localize(
276
- 2127,
276
+ 2139,
277
277
  "Enable feedback mechanisms such as the issue reporter, surveys, and other feedback options."
278
278
  ))
279
279
  }
@@ -283,11 +283,11 @@ configurationRegistry.registerConfiguration({
283
283
  [TELEMETRY_OLD_SETTING_ID]: {
284
284
  "type": "boolean",
285
285
  "markdownDescription": !product.privacyStatementUrl ? ( localize(
286
- 2128,
286
+ 2140,
287
287
  "Enable diagnostic data to be collected. This helps us to better understand how {0} is performing and where improvements need to be made.",
288
288
  product.nameLong
289
289
  )) : ( localize(
290
- 2129,
290
+ 2141,
291
291
  "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.",
292
292
  product.nameLong,
293
293
  product.privacyStatementUrl
@@ -295,7 +295,7 @@ configurationRegistry.registerConfiguration({
295
295
  "default": true,
296
296
  "restricted": true,
297
297
  "markdownDeprecationMessage": ( localize(
298
- 2130,
298
+ 2142,
299
299
  "If this setting is false, no telemetry will be sent regardless of the new setting's value. Deprecated in favor of the {0} setting.",
300
300
  `\`#${TELEMETRY_SETTING_ID}#\``
301
301
  )),
@@ -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(13462, "Show Telemetry")),
179
+ title: ( localize2(13751, "Show Telemetry")),
180
180
  category: Categories.Developer,
181
181
  f1: true
182
182
  });
@@ -116,8 +116,8 @@ let TelemetryService = class TelemetryService extends Disposable {
116
116
  commonProperties: resolveWorkbenchCommonProperties(
117
117
  storageService,
118
118
  productService,
119
+ environmentService,
119
120
  isInternal,
120
- environmentService.remoteAuthority,
121
121
  environmentService.options && environmentService.options.resolveCommonTelemetryProperties
122
122
  ),
123
123
  piiPaths: [mainWindow.location.origin],
@@ -1,6 +1,7 @@
1
1
  import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service";
2
2
  import { ICommonProperties } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry";
3
3
  import { IProductService } from "@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service";
4
- export declare function resolveWorkbenchCommonProperties(storageService: IStorageService, productService: IProductService, isInternalTelemetry: boolean, remoteAuthority?: string, resolveAdditionalProperties?: () => {
4
+ import { IWorkbenchEnvironmentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service";
5
+ export declare function resolveWorkbenchCommonProperties(storageService: IStorageService, productService: IProductService, environmentService: IWorkbenchEnvironmentService, isInternalTelemetry: boolean, resolveAdditionalProperties?: () => {
5
6
  [key: string]: unknown;
6
7
  }): ICommonProperties;
@@ -13,8 +13,8 @@ function cleanUserAgent(userAgent) {
13
13
  function resolveWorkbenchCommonProperties(
14
14
  storageService,
15
15
  productService,
16
+ environmentService,
16
17
  isInternalTelemetry,
17
- remoteAuthority,
18
18
  resolveAdditionalProperties
19
19
  ) {
20
20
  const {
@@ -39,7 +39,7 @@ function resolveWorkbenchCommonProperties(
39
39
  result["common.firstSessionDate"] = firstSessionDate;
40
40
  result["common.lastSessionDate"] = lastSessionDate || "";
41
41
  result["common.isNewSession"] = !lastSessionDate ? "1" : "0";
42
- result["common.remoteAuthority"] = cleanRemoteAuthority(remoteAuthority, productService);
42
+ result["common.remoteAuthority"] = cleanRemoteAuthority(environmentService.remoteAuthority, productService);
43
43
  result["common.machineId"] = machineId;
44
44
  result["sessionID"] = generateUuid() + Date.now();
45
45
  result["commitHash"] = commit;
@@ -70,6 +70,9 @@ function resolveWorkbenchCommonProperties(
70
70
  if (resolveAdditionalProperties) {
71
71
  mixin(result, resolveAdditionalProperties());
72
72
  }
73
+ if (environmentService.isSessionsWindow) {
74
+ result["common.isAgentsWindow"] = true;
75
+ }
73
76
  return result;
74
77
  }
75
78