@codingame/monaco-vscode-telemetry-service-override 13.1.7 → 14.0.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": "
|
|
3
|
+
"version": "14.0.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - telemetry service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,11 +15,9 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-411e0589-fa79-504b-b32c-80a88847b23a-common": "
|
|
19
|
-
"@codingame/monaco-vscode-7443a901-21f6-577a-9674-42893b997ee0-common": "
|
|
20
|
-
"@codingame/monaco-vscode-
|
|
21
|
-
"@codingame/monaco-vscode-api": "13.1.7",
|
|
22
|
-
"@codingame/monaco-vscode-e7080bda-ce3e-5243-9a35-98cd9634dbda-common": "13.1.7",
|
|
18
|
+
"@codingame/monaco-vscode-411e0589-fa79-504b-b32c-80a88847b23a-common": "14.0.1",
|
|
19
|
+
"@codingame/monaco-vscode-7443a901-21f6-577a-9674-42893b997ee0-common": "14.0.1",
|
|
20
|
+
"@codingame/monaco-vscode-api": "14.0.1",
|
|
23
21
|
"@microsoft/1ds-core-js": "3.2.18",
|
|
24
22
|
"@microsoft/1ds-post-js": "3.2.18"
|
|
25
23
|
},
|
|
@@ -6,7 +6,7 @@ import { IEnvironmentService } from '@codingame/monaco-vscode-api/vscode/vs/plat
|
|
|
6
6
|
import { LogLevel } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log';
|
|
7
7
|
import { ILogService, ILoggerService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
8
8
|
import { IProductService } from '@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service';
|
|
9
|
-
import { telemetryLogId, isLoggingOnly, supportsTelemetry, validateTelemetryData } from '@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetryUtils';
|
|
9
|
+
import { telemetryLogId, isLoggingOnly, supportsTelemetry, TelemetryLogGroup, validateTelemetryData } from '@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetryUtils';
|
|
10
10
|
|
|
11
11
|
let TelemetryLogAppender = class TelemetryLogAppender extends Disposable {
|
|
12
12
|
constructor(logService, loggerService, environmentService, productService, prefix = '') {
|
|
@@ -20,10 +20,12 @@ let TelemetryLogAppender = class TelemetryLogAppender extends Disposable {
|
|
|
20
20
|
const justLoggingAndNotSending = isLoggingOnly(productService, environmentService);
|
|
21
21
|
const logSuffix = justLoggingAndNotSending ? ' (Not Sent)' : '';
|
|
22
22
|
const isVisible = () => supportsTelemetry(productService, environmentService) && logService.getLevel() === LogLevel.Trace;
|
|
23
|
-
this.logger = this._register(loggerService.createLogger(telemetryLogId, {
|
|
23
|
+
this.logger = this._register(loggerService.createLogger(telemetryLogId, {
|
|
24
|
+
name: ( localize(1910, "Telemetry{0}", logSuffix)),
|
|
25
|
+
hidden: !isVisible(),
|
|
26
|
+
group: TelemetryLogGroup
|
|
27
|
+
}));
|
|
24
28
|
this._register(logService.onDidChangeLogLevel(() => loggerService.setVisibility(telemetryLogId, isVisible())));
|
|
25
|
-
this.logger.info('Below are logs for every telemetry event sent from VS Code once the log level is set to trace.');
|
|
26
|
-
this.logger.info('===========================================================');
|
|
27
29
|
}
|
|
28
30
|
}
|
|
29
31
|
flush() {
|
|
@@ -103,30 +103,30 @@ TelemetryService = ( __decorate([
|
|
|
103
103
|
], TelemetryService));
|
|
104
104
|
function getTelemetryLevelSettingDescription() {
|
|
105
105
|
const telemetryText = ( localize(
|
|
106
|
-
|
|
106
|
+
1911,
|
|
107
107
|
"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.",
|
|
108
108
|
product.nameLong
|
|
109
109
|
));
|
|
110
110
|
const externalLinksStatement = !product.privacyStatementUrl ?
|
|
111
111
|
( localize(
|
|
112
|
-
|
|
112
|
+
1912,
|
|
113
113
|
"Read more about the [data we collect]({0}).",
|
|
114
114
|
'https://aka.ms/vscode-telemetry'
|
|
115
115
|
)) :
|
|
116
116
|
( localize(
|
|
117
|
-
|
|
117
|
+
1913,
|
|
118
118
|
"Read more about the [data we collect]({0}) and our [privacy statement]({1}).",
|
|
119
119
|
'https://aka.ms/vscode-telemetry',
|
|
120
120
|
product.privacyStatementUrl
|
|
121
121
|
));
|
|
122
122
|
const restartString = !isWeb ? ( localize(
|
|
123
|
-
|
|
123
|
+
1914,
|
|
124
124
|
'A full restart of the application is necessary for crash reporting changes to take effect.'
|
|
125
125
|
)) : '';
|
|
126
|
-
const crashReportsHeader = ( localize(
|
|
127
|
-
const errorsHeader = ( localize(
|
|
128
|
-
const usageHeader = ( localize(
|
|
129
|
-
const telemetryTableDescription = ( localize(
|
|
126
|
+
const crashReportsHeader = ( localize(1915, "Crash Reports"));
|
|
127
|
+
const errorsHeader = ( localize(1916, "Error Telemetry"));
|
|
128
|
+
const usageHeader = ( localize(1917, "Usage Data"));
|
|
129
|
+
const telemetryTableDescription = ( localize(1918, "The following table outlines the data sent with each setting:"));
|
|
130
130
|
const telemetryTable = `
|
|
131
131
|
| | ${crashReportsHeader} | ${errorsHeader} | ${usageHeader} |
|
|
132
132
|
|:------|:---------------------:|:---------------:|:--------------:|
|
|
@@ -136,7 +136,7 @@ function getTelemetryLevelSettingDescription() {
|
|
|
136
136
|
| off | - | - | - |
|
|
137
137
|
`;
|
|
138
138
|
const deprecatedSettingNote = ( localize(
|
|
139
|
-
|
|
139
|
+
1919,
|
|
140
140
|
"****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.*"
|
|
141
141
|
));
|
|
142
142
|
const telemetryDescription = `
|
|
@@ -157,16 +157,16 @@ ${deprecatedSettingNote}
|
|
|
157
157
|
'id': TELEMETRY_SECTION_ID,
|
|
158
158
|
'order': 1,
|
|
159
159
|
'type': 'object',
|
|
160
|
-
'title': ( localize(
|
|
160
|
+
'title': ( localize(1920, "Telemetry")),
|
|
161
161
|
'properties': {
|
|
162
162
|
[TELEMETRY_SETTING_ID]: {
|
|
163
163
|
'type': 'string',
|
|
164
164
|
'enum': [TelemetryConfiguration.ON, TelemetryConfiguration.ERROR, TelemetryConfiguration.CRASH, TelemetryConfiguration.OFF],
|
|
165
165
|
'enumDescriptions': [
|
|
166
|
-
( localize(
|
|
167
|
-
( localize(
|
|
168
|
-
( localize(
|
|
169
|
-
( localize(
|
|
166
|
+
( localize(1921, "Sends usage data, errors, and crash reports.")),
|
|
167
|
+
( localize(1922, "Sends general error telemetry and crash reports.")),
|
|
168
|
+
( localize(1923, "Sends OS level crash reports.")),
|
|
169
|
+
( localize(1924, "Disables all product telemetry."))
|
|
170
170
|
],
|
|
171
171
|
'markdownDescription': getTelemetryLevelSettingDescription(),
|
|
172
172
|
'default': TelemetryConfiguration.ON,
|
|
@@ -180,18 +180,18 @@ ${deprecatedSettingNote}
|
|
|
180
180
|
'id': TELEMETRY_SECTION_ID,
|
|
181
181
|
'order': 110,
|
|
182
182
|
'type': 'object',
|
|
183
|
-
'title': ( localize(
|
|
183
|
+
'title': ( localize(1920, "Telemetry")),
|
|
184
184
|
'properties': {
|
|
185
185
|
[TELEMETRY_OLD_SETTING_ID]: {
|
|
186
186
|
'type': 'boolean',
|
|
187
187
|
'markdownDescription': !product.privacyStatementUrl ?
|
|
188
188
|
( localize(
|
|
189
|
-
|
|
189
|
+
1925,
|
|
190
190
|
"Enable diagnostic data to be collected. This helps us to better understand how {0} is performing and where improvements need to be made.",
|
|
191
191
|
product.nameLong
|
|
192
192
|
)) :
|
|
193
193
|
( localize(
|
|
194
|
-
|
|
194
|
+
1926,
|
|
195
195
|
"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.",
|
|
196
196
|
product.nameLong,
|
|
197
197
|
product.privacyStatementUrl
|
|
@@ -199,7 +199,7 @@ ${deprecatedSettingNote}
|
|
|
199
199
|
'default': true,
|
|
200
200
|
'restricted': true,
|
|
201
201
|
'markdownDeprecationMessage': ( localize(
|
|
202
|
-
|
|
202
|
+
1927,
|
|
203
203
|
"If this setting is false, no telemetry will be sent regardless of the new setting's value. Deprecated in favor of the {0} setting.",
|
|
204
204
|
`\`#${TELEMETRY_SETTING_ID}#\``
|
|
205
205
|
)),
|
|
@@ -19,7 +19,6 @@ import { ConfigurationTarget, ConfigurationTargetToString } from '@codingame/mon
|
|
|
19
19
|
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
20
20
|
import { ITextFileService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/textfile/common/textfiles.service';
|
|
21
21
|
import { extname, isEqual, isEqualOrParent, basename } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
|
|
22
|
-
import { Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
23
22
|
import { Schemas } from '@codingame/monaco-vscode-api/vscode/vs/base/common/network';
|
|
24
23
|
import { getMimeTypes } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/languagesAssociations';
|
|
25
24
|
import { hash } from '@codingame/monaco-vscode-api/vscode/vs/base/common/hash';
|
|
@@ -29,9 +28,8 @@ import { IUserDataProfileService } from '@codingame/monaco-vscode-api/vscode/vs/
|
|
|
29
28
|
import { mainWindow } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/window';
|
|
30
29
|
import { Extensions } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
31
30
|
import { isNumber, isBoolean, isString } from '@codingame/monaco-vscode-api/vscode/vs/base/common/types';
|
|
32
|
-
import { LayoutSettings } from '@codingame/monaco-vscode-
|
|
33
|
-
import { AutoRestartConfigurationKey, AutoUpdateConfigurationKey } from '@codingame/monaco-vscode-
|
|
34
|
-
import { KEYWORD_ACTIVIATION_SETTING_ID } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService';
|
|
31
|
+
import { LayoutSettings } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/layout/browser/layoutService';
|
|
32
|
+
import { AutoRestartConfigurationKey, AutoUpdateConfigurationKey } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/extensions/common/extensions';
|
|
35
33
|
import { IUserDataProfilesService } from '@codingame/monaco-vscode-api/vscode/vs/platform/userDataProfile/common/userDataProfile.service';
|
|
36
34
|
|
|
37
35
|
var TelemetryContribution_1;
|
|
@@ -145,18 +143,6 @@ let ConfigurationTelemetryContribution = class ConfigurationTelemetryContributio
|
|
|
145
143
|
this.userDataProfilesService = userDataProfilesService;
|
|
146
144
|
this.telemetryService = telemetryService;
|
|
147
145
|
this.configurationRegistry = ( Registry.as(Extensions.Configuration));
|
|
148
|
-
const debouncedConfigService = Event.debounce(configurationService.onDidChangeConfiguration, (last, cur) => {
|
|
149
|
-
const newAffectedKeys = last ? ( new Set([...last.affectedKeys, ...cur.affectedKeys])) : cur.affectedKeys;
|
|
150
|
-
return { ...cur, affectedKeys: newAffectedKeys };
|
|
151
|
-
}, 1000, true);
|
|
152
|
-
this._register(debouncedConfigService(event => {
|
|
153
|
-
if (event.source !== ConfigurationTarget.DEFAULT) {
|
|
154
|
-
telemetryService.publicLog2('updateConfiguration', {
|
|
155
|
-
configurationSource: ConfigurationTargetToString(event.source),
|
|
156
|
-
configurationKeys: Array.from(event.affectedKeys)
|
|
157
|
-
});
|
|
158
|
-
}
|
|
159
|
-
}));
|
|
160
146
|
const { user, workspace } = ( configurationService.keys());
|
|
161
147
|
for (const setting of user) {
|
|
162
148
|
this.reportTelemetry(setting, ConfigurationTarget.USER_LOCAL);
|
|
@@ -194,30 +180,12 @@ let ConfigurationTelemetryContribution = class ConfigurationTelemetryContributio
|
|
|
194
180
|
case AutoUpdateConfigurationKey:
|
|
195
181
|
this.telemetryService.publicLog2('extensions.autoUpdate', { settingValue: this.getValueToReport(key, target), source });
|
|
196
182
|
return;
|
|
197
|
-
case 'files.autoSave':
|
|
198
|
-
this.telemetryService.publicLog2('files.autoSave', { settingValue: this.getValueToReport(key, target), source });
|
|
199
|
-
return;
|
|
200
183
|
case 'editor.stickyScroll.enabled':
|
|
201
184
|
this.telemetryService.publicLog2('editor.stickyScroll.enabled', { settingValue: this.getValueToReport(key, target), source });
|
|
202
185
|
return;
|
|
203
|
-
case KEYWORD_ACTIVIATION_SETTING_ID:
|
|
204
|
-
this.telemetryService.publicLog2('accessibility.voice.keywordActivation', { settingValue: this.getValueToReport(key, target), source });
|
|
205
|
-
return;
|
|
206
|
-
case 'window.zoomLevel':
|
|
207
|
-
this.telemetryService.publicLog2('window.zoomLevel', { settingValue: this.getValueToReport(key, target), source });
|
|
208
|
-
return;
|
|
209
|
-
case 'window.zoomPerWindow':
|
|
210
|
-
this.telemetryService.publicLog2('window.zoomPerWindow', { settingValue: this.getValueToReport(key, target), source });
|
|
211
|
-
return;
|
|
212
186
|
case 'window.titleBarStyle':
|
|
213
187
|
this.telemetryService.publicLog2('window.titleBarStyle', { settingValue: this.getValueToReport(key, target), source });
|
|
214
188
|
return;
|
|
215
|
-
case 'window.commandCenter':
|
|
216
|
-
this.telemetryService.publicLog2('window.commandCenter', { settingValue: this.getValueToReport(key, target), source });
|
|
217
|
-
return;
|
|
218
|
-
case 'chat.commandCenter.enabled':
|
|
219
|
-
this.telemetryService.publicLog2('chat.commandCenter.enabled', { settingValue: this.getValueToReport(key, target), source });
|
|
220
|
-
return;
|
|
221
189
|
case 'window.customTitleBarVisibility':
|
|
222
190
|
this.telemetryService.publicLog2('window.customTitleBarVisibility', { settingValue: this.getValueToReport(key, target), source });
|
|
223
191
|
return;
|
|
@@ -227,9 +195,6 @@ let ConfigurationTelemetryContribution = class ConfigurationTelemetryContributio
|
|
|
227
195
|
case 'extensions.verifySignature':
|
|
228
196
|
this.telemetryService.publicLog2('extensions.verifySignature', { settingValue: this.getValueToReport(key, target), source });
|
|
229
197
|
return;
|
|
230
|
-
case 'window.systemColorTheme':
|
|
231
|
-
this.telemetryService.publicLog2('window.systemColorTheme', { settingValue: this.getValueToReport(key, target), source });
|
|
232
|
-
return;
|
|
233
198
|
case 'window.newWindowProfile':
|
|
234
199
|
{
|
|
235
200
|
const valueToReport = this.getValueToReport(key, target);
|