@codingame/monaco-vscode-telemetry-service-override 37.3.3 → 37.3.4
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 +2 -2
- package/vscode/src/vs/workbench/contrib/editTelemetry/browser/editStats/aiStatsChart.js +1 -1
- package/vscode/src/vs/workbench/contrib/editTelemetry/browser/editStats/aiStatsStatusBar.js +8 -8
- package/vscode/src/vs/workbench/contrib/editTelemetry/browser/editTelemetry.contribution.js +6 -6
- package/vscode/src/vs/workbench/contrib/telemetry/browser/telemetry.contribution.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-telemetry-service-override",
|
|
3
|
-
"version": "37.3.
|
|
3
|
+
"version": "37.3.4",
|
|
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": "37.3.
|
|
18
|
+
"@codingame/monaco-vscode-api": "37.3.4",
|
|
19
19
|
"@microsoft/1ds-core-js": "3.2.18",
|
|
20
20
|
"@microsoft/1ds-post-js": "3.2.18"
|
|
21
21
|
},
|
|
@@ -82,7 +82,7 @@ function createAiStatsChart(options) {
|
|
|
82
82
|
text.setAttribute("text-anchor", "middle");
|
|
83
83
|
text.setAttribute("fill", asCssVariable(chartsForeground));
|
|
84
84
|
text.setAttribute("font-size", "11px");
|
|
85
|
-
text.textContent = ( localize(
|
|
85
|
+
text.textContent = ( localize(14394, "No data yet"));
|
|
86
86
|
g.appendChild(text);
|
|
87
87
|
return container;
|
|
88
88
|
}
|
|
@@ -36,8 +36,8 @@ let AiStatsStatusBar = class AiStatsStatusBar extends Disposable {
|
|
|
36
36
|
const statusBarItem = this._createStatusBar().keepUpdated(reader.store);
|
|
37
37
|
const store = this._register(( new DisposableStore()));
|
|
38
38
|
reader.store.add(this._statusbarService.addEntry({
|
|
39
|
-
name: ( localize(
|
|
40
|
-
ariaLabel: ( localize(
|
|
39
|
+
name: ( localize(14395, "Inline Suggestions")),
|
|
40
|
+
ariaLabel: ( localize(14396, "Inline suggestions status bar")),
|
|
41
41
|
text: "",
|
|
42
42
|
tooltip: {
|
|
43
43
|
element: async _token => {
|
|
@@ -140,7 +140,7 @@ function createAiStatsHover(options) {
|
|
|
140
140
|
style: {
|
|
141
141
|
flex: 1
|
|
142
142
|
}
|
|
143
|
-
}, [( localize(
|
|
143
|
+
}, [( localize(14397, "AI Usage Statistics"))]), n.div({
|
|
144
144
|
style: {
|
|
145
145
|
marginLeft: "auto"
|
|
146
146
|
}
|
|
@@ -151,7 +151,7 @@ function createAiStatsHover(options) {
|
|
|
151
151
|
enabled: true,
|
|
152
152
|
run: options.onOpenSettings,
|
|
153
153
|
class: ThemeIcon.asClassName(Codicon.gear),
|
|
154
|
-
tooltip: ( localize(
|
|
154
|
+
tooltip: ( localize(14398, "Configure"))
|
|
155
155
|
},
|
|
156
156
|
options: {
|
|
157
157
|
icon: true,
|
|
@@ -167,13 +167,13 @@ function createAiStatsHover(options) {
|
|
|
167
167
|
flex: 1,
|
|
168
168
|
paddingRight: "4px"
|
|
169
169
|
}
|
|
170
|
-
}, [( localize(
|
|
170
|
+
}, [( localize(14399, "AI vs Typing Average: {0}", aiRatePercent.get()))])]), n.div({
|
|
171
171
|
style: {
|
|
172
172
|
flex: 1,
|
|
173
173
|
paddingRight: "4px"
|
|
174
174
|
}
|
|
175
175
|
}, [( localize(
|
|
176
|
-
|
|
176
|
+
14400,
|
|
177
177
|
"Accepted inline suggestions today: {0}",
|
|
178
178
|
options.data.acceptedInlineSuggestionsToday.get()
|
|
179
179
|
))]),
|
|
@@ -195,14 +195,14 @@ function createAiStatsHover(options) {
|
|
|
195
195
|
style: {
|
|
196
196
|
flex: 1
|
|
197
197
|
}
|
|
198
|
-
}, [chartViewMode.map(mode => mode === "days" ? ( localize(
|
|
198
|
+
}, [chartViewMode.map(mode => mode === "days" ? ( localize(14401, "AI Rate by Day")) : ( localize(14402, "AI Rate by Session")))]), n.div({
|
|
199
199
|
class: "chart-view-toggle",
|
|
200
200
|
style: {
|
|
201
201
|
marginLeft: "auto",
|
|
202
202
|
display: "flex",
|
|
203
203
|
gap: "2px"
|
|
204
204
|
}
|
|
205
|
-
}, [createToggleButton("days", ( localize(
|
|
205
|
+
}, [createToggleButton("days", ( localize(14403, "Days")), Codicon.calendar), createToggleButton("sessions", ( localize(14404, "Sessions")), Codicon.listFlat)])]),
|
|
206
206
|
derived(reader => {
|
|
207
207
|
const sessions = options.data.sessions.read(reader);
|
|
208
208
|
const viewMode = chartViewMode.read(reader);
|
|
@@ -22,12 +22,12 @@ const configurationRegistry = ( Registry.as(Extensions.Configuration));
|
|
|
22
22
|
configurationRegistry.registerConfiguration({
|
|
23
23
|
id: "task",
|
|
24
24
|
order: 100,
|
|
25
|
-
title: ( localize(
|
|
25
|
+
title: ( localize(14405, "Edit Telemetry")),
|
|
26
26
|
type: "object",
|
|
27
27
|
properties: {
|
|
28
28
|
[EDIT_TELEMETRY_SETTING_ID]: {
|
|
29
29
|
markdownDescription: ( localize(
|
|
30
|
-
|
|
30
|
+
14406,
|
|
31
31
|
"Controls whether to enable telemetry for edit statistics (only sends statistics if general telemetry is enabled)."
|
|
32
32
|
)),
|
|
33
33
|
type: "boolean",
|
|
@@ -42,7 +42,7 @@ configurationRegistry.registerConfiguration({
|
|
|
42
42
|
},
|
|
43
43
|
[AI_STATS_SETTING_ID]: {
|
|
44
44
|
markdownDescription: ( localize(
|
|
45
|
-
|
|
45
|
+
14407,
|
|
46
46
|
"Controls whether to enable AI statistics in the editor. The gauge shows the average AI rate across 5-minute sessions, where each session's rate is calculated as AI-inserted characters divided by total inserted characters."
|
|
47
47
|
)),
|
|
48
48
|
type: "boolean",
|
|
@@ -54,7 +54,7 @@ configurationRegistry.registerConfiguration({
|
|
|
54
54
|
},
|
|
55
55
|
[EDIT_TELEMETRY_DETAILS_SETTING_ID]: {
|
|
56
56
|
markdownDescription: ( localize(
|
|
57
|
-
|
|
57
|
+
14408,
|
|
58
58
|
"Controls whether to enable telemetry for detailed edit statistics (only sends statistics if general telemetry is enabled)."
|
|
59
59
|
)),
|
|
60
60
|
type: "boolean",
|
|
@@ -65,13 +65,13 @@ configurationRegistry.registerConfiguration({
|
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
67
|
[EDIT_TELEMETRY_SHOW_STATUS_BAR]: {
|
|
68
|
-
markdownDescription: ( localize(
|
|
68
|
+
markdownDescription: ( localize(14409, "Controls whether to show the status bar for edit telemetry.")),
|
|
69
69
|
type: "boolean",
|
|
70
70
|
default: false,
|
|
71
71
|
tags: ["experimental"]
|
|
72
72
|
},
|
|
73
73
|
[EDIT_TELEMETRY_SHOW_DECORATIONS]: {
|
|
74
|
-
markdownDescription: ( localize(
|
|
74
|
+
markdownDescription: ( localize(14410, "Controls whether to show decorations for edit telemetry.")),
|
|
75
75
|
type: "boolean",
|
|
76
76
|
default: false,
|
|
77
77
|
tags: ["experimental"]
|
|
@@ -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(
|
|
179
|
+
title: ( localize2(19065, "Show Telemetry")),
|
|
180
180
|
category: Categories.Developer,
|
|
181
181
|
f1: true
|
|
182
182
|
});
|