@codingame/monaco-vscode-telemetry-service-override 15.0.3 → 16.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": "16.0.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - telemetry service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-411e0589-fa79-504b-b32c-80a88847b23a-common": "
|
|
19
|
-
"@codingame/monaco-vscode-7ba0af96-90c2-5e11-ad7f-befdbbf246c8-common": "
|
|
20
|
-
"@codingame/monaco-vscode-
|
|
21
|
-
"@codingame/monaco-vscode-
|
|
18
|
+
"@codingame/monaco-vscode-411e0589-fa79-504b-b32c-80a88847b23a-common": "16.0.1",
|
|
19
|
+
"@codingame/monaco-vscode-7ba0af96-90c2-5e11-ad7f-befdbbf246c8-common": "16.0.1",
|
|
20
|
+
"@codingame/monaco-vscode-api": "16.0.1",
|
|
21
|
+
"@codingame/monaco-vscode-b1110435-a331-5549-ab1e-aa3d763c3a1f-common": "16.0.1",
|
|
22
22
|
"@microsoft/1ds-core-js": "3.2.18",
|
|
23
23
|
"@microsoft/1ds-post-js": "3.2.18"
|
|
24
24
|
},
|
|
@@ -29,6 +29,9 @@
|
|
|
29
29
|
".": {
|
|
30
30
|
"default": "./index.js"
|
|
31
31
|
},
|
|
32
|
+
"./vscode/*.css": {
|
|
33
|
+
"default": "./vscode/src/*.css"
|
|
34
|
+
},
|
|
32
35
|
"./vscode/*": {
|
|
33
36
|
"types": "./vscode/src/*.d.ts",
|
|
34
37
|
"default": "./vscode/src/*.js"
|
|
@@ -20,7 +20,7 @@ let TelemetryLogAppender = class TelemetryLogAppender extends Disposable {
|
|
|
20
20
|
const justLoggingAndNotSending = isLoggingOnly(productService, environmentService);
|
|
21
21
|
const logSuffix = justLoggingAndNotSending ? ' (Not Sent)' : '';
|
|
22
22
|
this.logger = this._register(loggerService.createLogger(id, {
|
|
23
|
-
name: ( localize(
|
|
23
|
+
name: ( localize(1969, "Telemetry{0}", logSuffix)),
|
|
24
24
|
group: TelemetryLogGroup,
|
|
25
25
|
hidden: true
|
|
26
26
|
}));
|
|
@@ -103,40 +103,40 @@ TelemetryService = ( __decorate([
|
|
|
103
103
|
], TelemetryService));
|
|
104
104
|
function getTelemetryLevelSettingDescription() {
|
|
105
105
|
const telemetryText = ( localize(
|
|
106
|
-
|
|
106
|
+
1970,
|
|
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
|
+
1971,
|
|
113
113
|
"Read more about the [data we collect]({0}).",
|
|
114
114
|
'https://aka.ms/vscode-telemetry'
|
|
115
115
|
)) :
|
|
116
116
|
( localize(
|
|
117
|
-
|
|
117
|
+
1972,
|
|
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
|
+
1973,
|
|
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(1974, "Crash Reports"));
|
|
127
|
+
const errorsHeader = ( localize(1975, "Error Telemetry"));
|
|
128
|
+
const usageHeader = ( localize(1976, "Usage Data"));
|
|
129
|
+
const telemetryTableDescription = ( localize(1977, "The following table outlines the data sent with each setting:"));
|
|
130
130
|
const telemetryTable = `
|
|
131
131
|
| | ${crashReportsHeader} | ${errorsHeader} | ${usageHeader} |
|
|
132
|
-
|
|
133
|
-
| all |
|
|
134
|
-
| error |
|
|
135
|
-
| crash |
|
|
136
|
-
| off |
|
|
132
|
+
|:------|:-------------:|:---------------:|:----------:|
|
|
133
|
+
| all | ✓ | ✓ | ✓ |
|
|
134
|
+
| error | ✓ | ✓ | - |
|
|
135
|
+
| crash | ✓ | - | - |
|
|
136
|
+
| off | - | - | - |
|
|
137
137
|
`;
|
|
138
138
|
const deprecatedSettingNote = ( localize(
|
|
139
|
-
|
|
139
|
+
1978,
|
|
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 = `
|
|
@@ -153,45 +153,55 @@ ${deprecatedSettingNote}
|
|
|
153
153
|
`;
|
|
154
154
|
return telemetryDescription;
|
|
155
155
|
}
|
|
156
|
-
( Registry.as(Extensions.Configuration))
|
|
156
|
+
const configurationRegistry = ( Registry.as(Extensions.Configuration));
|
|
157
|
+
configurationRegistry.registerConfiguration({
|
|
157
158
|
'id': TELEMETRY_SECTION_ID,
|
|
158
159
|
'order': 1,
|
|
159
160
|
'type': 'object',
|
|
160
|
-
'title': ( localize(
|
|
161
|
+
'title': ( localize(1979, "Telemetry")),
|
|
161
162
|
'properties': {
|
|
162
163
|
[TELEMETRY_SETTING_ID]: {
|
|
163
164
|
'type': 'string',
|
|
164
165
|
'enum': [TelemetryConfiguration.ON, TelemetryConfiguration.ERROR, TelemetryConfiguration.CRASH, TelemetryConfiguration.OFF],
|
|
165
166
|
'enumDescriptions': [
|
|
166
|
-
( localize(
|
|
167
|
-
( localize(
|
|
168
|
-
( localize(
|
|
169
|
-
( localize(
|
|
167
|
+
( localize(1980, "Sends usage data, errors, and crash reports.")),
|
|
168
|
+
( localize(1981, "Sends general error telemetry and crash reports.")),
|
|
169
|
+
( localize(1982, "Sends OS level crash reports.")),
|
|
170
|
+
( localize(1983, "Disables all product telemetry."))
|
|
170
171
|
],
|
|
171
172
|
'markdownDescription': getTelemetryLevelSettingDescription(),
|
|
172
173
|
'default': TelemetryConfiguration.ON,
|
|
173
174
|
'restricted': true,
|
|
174
175
|
'scope': ConfigurationScope.APPLICATION,
|
|
175
|
-
'tags': ['usesOnlineServices', 'telemetry']
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
(
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
176
|
+
'tags': ['usesOnlineServices', 'telemetry'],
|
|
177
|
+
'policy': {
|
|
178
|
+
name: 'TelemetryLevel',
|
|
179
|
+
minimumVersion: '1.99',
|
|
180
|
+
description: ( localize(1984, "Controls the level of telemetry.")),
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
'telemetry.feedback.enabled': {
|
|
184
|
+
type: 'boolean',
|
|
185
|
+
default: true,
|
|
186
|
+
description: ( localize(
|
|
187
|
+
1985,
|
|
188
|
+
"Enable feedback mechanisms such as the issue reporter, surveys, and feedback options in features like Copilot Chat."
|
|
189
|
+
)),
|
|
190
|
+
policy: {
|
|
191
|
+
name: 'EnableFeedback',
|
|
192
|
+
minimumVersion: '1.99',
|
|
193
|
+
}
|
|
194
|
+
},
|
|
185
195
|
[TELEMETRY_OLD_SETTING_ID]: {
|
|
186
196
|
'type': 'boolean',
|
|
187
197
|
'markdownDescription': !product.privacyStatementUrl ?
|
|
188
198
|
( localize(
|
|
189
|
-
|
|
199
|
+
1986,
|
|
190
200
|
"Enable diagnostic data to be collected. This helps us to better understand how {0} is performing and where improvements need to be made.",
|
|
191
201
|
product.nameLong
|
|
192
202
|
)) :
|
|
193
203
|
( localize(
|
|
194
|
-
|
|
204
|
+
1987,
|
|
195
205
|
"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
206
|
product.nameLong,
|
|
197
207
|
product.privacyStatementUrl
|
|
@@ -199,14 +209,14 @@ ${deprecatedSettingNote}
|
|
|
199
209
|
'default': true,
|
|
200
210
|
'restricted': true,
|
|
201
211
|
'markdownDeprecationMessage': ( localize(
|
|
202
|
-
|
|
212
|
+
1988,
|
|
203
213
|
"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
214
|
`\`#${TELEMETRY_SETTING_ID}#\``
|
|
205
215
|
)),
|
|
206
216
|
'scope': ConfigurationScope.APPLICATION,
|
|
207
217
|
'tags': ['usesOnlineServices', 'telemetry']
|
|
208
218
|
}
|
|
209
|
-
}
|
|
219
|
+
},
|
|
210
220
|
});
|
|
211
221
|
|
|
212
222
|
export { TelemetryService };
|
|
@@ -29,7 +29,7 @@ import { IUserDataProfileService } from '@codingame/monaco-vscode-api/vscode/vs/
|
|
|
29
29
|
import { mainWindow } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/window';
|
|
30
30
|
import { Extensions } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
31
31
|
import { isNumber, isBoolean, isString } from '@codingame/monaco-vscode-api/vscode/vs/base/common/types';
|
|
32
|
-
import { LayoutSettings } from '@codingame/monaco-vscode-
|
|
32
|
+
import { LayoutSettings } from '@codingame/monaco-vscode-b1110435-a331-5549-ab1e-aa3d763c3a1f-common/vscode/vs/workbench/services/layout/browser/layoutService';
|
|
33
33
|
import { AutoRestartConfigurationKey, AutoUpdateConfigurationKey } from '@codingame/monaco-vscode-7ba0af96-90c2-5e11-ad7f-befdbbf246c8-common/vscode/vs/workbench/contrib/extensions/common/extensions';
|
|
34
34
|
import { IUserDataProfilesService } from '@codingame/monaco-vscode-api/vscode/vs/platform/userDataProfile/common/userDataProfile.service';
|
|
35
35
|
import { IProductService } from '@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service';
|
|
@@ -78,19 +78,13 @@ let TelemetryContribution = class TelemetryContribution extends Disposable {
|
|
|
78
78
|
}
|
|
79
79
|
onTextFileModelResolved(e) {
|
|
80
80
|
const settingsType = this.getTypeIfSettings(e.model.resource);
|
|
81
|
-
if (settingsType) {
|
|
82
|
-
this.telemetryService.publicLog2('settingsRead', { settingsType });
|
|
83
|
-
}
|
|
84
|
-
else {
|
|
81
|
+
if (!settingsType) {
|
|
85
82
|
this.telemetryService.publicLog2('fileGet', this.getTelemetryData(e.model.resource, e.reason));
|
|
86
83
|
}
|
|
87
84
|
}
|
|
88
85
|
onTextFileModelSaved(e) {
|
|
89
86
|
const settingsType = this.getTypeIfSettings(e.model.resource);
|
|
90
|
-
if (settingsType) {
|
|
91
|
-
this.telemetryService.publicLog2('settingsWritten', { settingsType });
|
|
92
|
-
}
|
|
93
|
-
else {
|
|
87
|
+
if (!settingsType) {
|
|
94
88
|
this.telemetryService.publicLog2('filePUT', this.getTelemetryData(e.model.resource, e.reason));
|
|
95
89
|
}
|
|
96
90
|
}
|
|
@@ -142,7 +136,7 @@ let TelemetryContribution = class TelemetryContribution extends Disposable {
|
|
|
142
136
|
constructor() {
|
|
143
137
|
super({
|
|
144
138
|
id: 'workbench.action.showTelemetry',
|
|
145
|
-
title: ( localize2(
|
|
139
|
+
title: ( localize2(9967, "Show Telemetry")),
|
|
146
140
|
category: Categories.Developer,
|
|
147
141
|
f1: true
|
|
148
142
|
});
|