@codingame/monaco-vscode-update-service-override 32.0.0 → 32.0.2
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/markdown/browser/markdownSettingRenderer.js +14 -14
- package/vscode/src/vs/workbench/contrib/update/browser/postUpdateWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/update/browser/releaseNotesEditor.js +3 -3
- package/vscode/src/vs/workbench/contrib/update/browser/update.contribution.js +17 -17
- package/vscode/src/vs/workbench/contrib/update/browser/update.js +24 -24
- package/vscode/src/vs/workbench/contrib/update/browser/updateTitleBarEntry.js +9 -9
- package/vscode/src/vs/workbench/contrib/update/browser/updateTooltip.js +44 -44
- package/vscode/src/vs/workbench/contrib/update/common/updateUtils.js +8 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-update-service-override",
|
|
3
|
-
"version": "32.0.
|
|
3
|
+
"version": "32.0.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - update service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "32.0.
|
|
18
|
+
"@codingame/monaco-vscode-api": "32.0.2"
|
|
19
19
|
},
|
|
20
20
|
"main": "index.js",
|
|
21
21
|
"module": "index.js",
|
|
@@ -123,11 +123,11 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
|
|
|
123
123
|
}
|
|
124
124
|
viewInSettingsMessage(settingId, alreadyDisplayed) {
|
|
125
125
|
if (alreadyDisplayed) {
|
|
126
|
-
return localize(
|
|
126
|
+
return localize(10691, "View in Settings");
|
|
127
127
|
} else {
|
|
128
128
|
const displayName = settingKeyToDisplayFormat(settingId);
|
|
129
129
|
return localize(
|
|
130
|
-
|
|
130
|
+
10692,
|
|
131
131
|
"View \"{0}: {1}\" in Settings",
|
|
132
132
|
displayName.category,
|
|
133
133
|
displayName.label
|
|
@@ -137,7 +137,7 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
|
|
|
137
137
|
restorePreviousSettingMessage(settingId) {
|
|
138
138
|
const displayName = settingKeyToDisplayFormat(settingId);
|
|
139
139
|
return localize(
|
|
140
|
-
|
|
140
|
+
10693,
|
|
141
141
|
"Restore value of \"{0}: {1}\"",
|
|
142
142
|
displayName.category,
|
|
143
143
|
displayName.label
|
|
@@ -152,14 +152,14 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
|
|
|
152
152
|
if (this.isAlreadySet(setting, booleanValue)) {
|
|
153
153
|
if (booleanValue) {
|
|
154
154
|
return localize(
|
|
155
|
-
|
|
155
|
+
10694,
|
|
156
156
|
"\"{0}: {1}\" is already enabled",
|
|
157
157
|
displayName.category,
|
|
158
158
|
displayName.label
|
|
159
159
|
);
|
|
160
160
|
} else {
|
|
161
161
|
return localize(
|
|
162
|
-
|
|
162
|
+
10695,
|
|
163
163
|
"\"{0}: {1}\" is already disabled",
|
|
164
164
|
displayName.category,
|
|
165
165
|
displayName.label
|
|
@@ -167,16 +167,16 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
|
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
if (booleanValue) {
|
|
170
|
-
return localize(
|
|
170
|
+
return localize(10696, "Enable \"{0}: {1}\"", displayName.category, displayName.label);
|
|
171
171
|
} else {
|
|
172
|
-
return localize(
|
|
172
|
+
return localize(10697, "Disable \"{0}: {1}\"", displayName.category, displayName.label);
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
stringSettingMessage(setting, stringValue) {
|
|
176
176
|
const displayName = settingKeyToDisplayFormat(setting.key);
|
|
177
177
|
if (this.isAlreadySet(setting, stringValue)) {
|
|
178
178
|
return localize(
|
|
179
|
-
|
|
179
|
+
10698,
|
|
180
180
|
"\"{0}: {1}\" is already set to \"{2}\"",
|
|
181
181
|
displayName.category,
|
|
182
182
|
displayName.label,
|
|
@@ -184,7 +184,7 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
|
|
|
184
184
|
);
|
|
185
185
|
}
|
|
186
186
|
return localize(
|
|
187
|
-
|
|
187
|
+
10699,
|
|
188
188
|
"Set \"{0}: {1}\" to \"{2}\"",
|
|
189
189
|
displayName.category,
|
|
190
190
|
displayName.label,
|
|
@@ -195,7 +195,7 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
|
|
|
195
195
|
const displayName = settingKeyToDisplayFormat(setting.key);
|
|
196
196
|
if (this.isAlreadySet(setting, numberValue)) {
|
|
197
197
|
return localize(
|
|
198
|
-
|
|
198
|
+
10700,
|
|
199
199
|
"\"{0}: {1}\" is already set to {2}",
|
|
200
200
|
displayName.category,
|
|
201
201
|
displayName.label,
|
|
@@ -203,7 +203,7 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
|
|
|
203
203
|
);
|
|
204
204
|
}
|
|
205
205
|
return localize(
|
|
206
|
-
|
|
206
|
+
10701,
|
|
207
207
|
"Set \"{0}: {1}\" to {2}",
|
|
208
208
|
displayName.category,
|
|
209
209
|
displayName.label,
|
|
@@ -212,7 +212,7 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
|
|
|
212
212
|
}
|
|
213
213
|
renderSetting(setting, newValue) {
|
|
214
214
|
const href = this.settingToUriString(setting.key, newValue);
|
|
215
|
-
const title = ( localize(
|
|
215
|
+
const title = ( localize(10702, "View or change setting"));
|
|
216
216
|
return `<code tabindex="0"><a href="${href}" class="codesetting" title="${title}" aria-role="button"><svg width="14" height="14" viewBox="0 0 15 15" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path d="M9.1 4.4L8.6 2H7.4l-.5 2.4-.7.3-2-1.3-.9.8 1.3 2-.2.7-2.4.5v1.2l2.4.5.3.8-1.3 2 .8.8 2-1.3.8.3.4 2.3h1.2l.5-2.4.8-.3 2 1.3.8-.8-1.3-2 .3-.8 2.3-.4V7.4l-2.4-.5-.3-.8 1.3-2-.8-.8-2 1.3-.7-.2zM9.4 1l.5 2.4L12 2.1l2 2-1.4 2.1 2.4.4v2.8l-2.4.5L14 12l-2 2-2.1-1.4-.5 2.4H6.6l-.5-2.4L4 13.9l-2-2 1.4-2.1L1 9.4V6.6l2.4-.5L2.1 4l2-2 2.1 1.4.4-2.4h2.8zm.6 7c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zM8 9c.6 0 1-.4 1-1s-.4-1-1-1-1 .4-1 1 .4 1 1 1z"/></svg>
|
|
217
217
|
<span class="separator"></span>
|
|
218
218
|
<span class="setting-name">${setting.key}</span>
|
|
@@ -290,8 +290,8 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
|
|
|
290
290
|
class: undefined,
|
|
291
291
|
enabled: true,
|
|
292
292
|
id: "copySettingId",
|
|
293
|
-
tooltip: ( localize(
|
|
294
|
-
label: ( localize(
|
|
293
|
+
tooltip: ( localize(10703, "Copy Setting ID")),
|
|
294
|
+
label: ( localize(10703, "Copy Setting ID")),
|
|
295
295
|
run: () => {
|
|
296
296
|
this._clipboardService.writeText(settingId);
|
|
297
297
|
}
|
|
@@ -137,7 +137,7 @@ let PostUpdateWidgetContribution = class PostUpdateWidgetContribution extends Di
|
|
|
137
137
|
info = {
|
|
138
138
|
...info,
|
|
139
139
|
buttons: [{
|
|
140
|
-
label: ( localize(
|
|
140
|
+
label: ( localize(15291, "Release Notes")),
|
|
141
141
|
commandId: ShowCurrentReleaseNotesActionId,
|
|
142
142
|
args: [this.productService.version],
|
|
143
143
|
style: "secondary"
|
|
@@ -166,7 +166,7 @@ let PostUpdateWidgetContribution = class PostUpdateWidgetContribution extends Di
|
|
|
166
166
|
banner.style.setProperty("background-image", `url(${JSON.stringify(safeBannerUrl)})`);
|
|
167
167
|
}
|
|
168
168
|
const closeButton = append(container, $("button.banner-close"));
|
|
169
|
-
closeButton.setAttribute("aria-label", ( localize(
|
|
169
|
+
closeButton.setAttribute("aria-label", ( localize(15292, "Close")));
|
|
170
170
|
const closeIcon = append(closeButton, $(ThemeIcon.asCSSSelector(Codicon.close)));
|
|
171
171
|
closeIcon.setAttribute("aria-hidden", "true");
|
|
172
172
|
disposables.add(addDisposableListener(closeButton, "click", () => {
|
|
@@ -179,7 +179,7 @@ let PostUpdateWidgetContribution = class PostUpdateWidgetContribution extends Di
|
|
|
179
179
|
}
|
|
180
180
|
const titleEl = append(body, $(".title"));
|
|
181
181
|
titleEl.id = titleId;
|
|
182
|
-
titleEl.textContent = title ?? ( localize(
|
|
182
|
+
titleEl.textContent = title ?? ( localize(15293, "New in {0}", this.productService.version));
|
|
183
183
|
if (features?.length) {
|
|
184
184
|
const list = append(body, $(".features"));
|
|
185
185
|
list.setAttribute("role", "list");
|
|
@@ -104,7 +104,7 @@ let ReleaseNotesManager = class ReleaseNotesManager extends Disposable {
|
|
|
104
104
|
base
|
|
105
105
|
};
|
|
106
106
|
const html = await this.renderBody(this._lastMeta);
|
|
107
|
-
const title = ( localize(
|
|
107
|
+
const title = ( localize(15294, "Release Notes: {0}", version));
|
|
108
108
|
const activeEditorPane = this._editorService.activeEditorPane;
|
|
109
109
|
if (this._currentReleaseNotes) {
|
|
110
110
|
this._currentReleaseNotes.setWebviewTitle(title);
|
|
@@ -160,7 +160,7 @@ let ReleaseNotesManager = class ReleaseNotesManager extends Disposable {
|
|
|
160
160
|
const versionLabel = match[1].replace(/\./g, "_");
|
|
161
161
|
const baseUrl = "https://code.visualstudio.com/raw";
|
|
162
162
|
const url = `${baseUrl}/v${versionLabel}.md`;
|
|
163
|
-
const unassigned = ( localize(
|
|
163
|
+
const unassigned = ( localize(15295, "unassigned"));
|
|
164
164
|
const escapeMdHtml = text => {
|
|
165
165
|
return escape(text).replace(/\\/g, "\\\\");
|
|
166
166
|
};
|
|
@@ -542,7 +542,7 @@ let ReleaseNotesManager = class ReleaseNotesManager extends Disposable {
|
|
|
542
542
|
|
|
543
543
|
const label = document.createElement('label');
|
|
544
544
|
label.htmlFor = 'showReleaseNotes';
|
|
545
|
-
label.textContent = '${( localize(
|
|
545
|
+
label.textContent = '${( localize(15296, "Show release notes after an update"))}';
|
|
546
546
|
container.appendChild(label);
|
|
547
547
|
|
|
548
548
|
const beforeElement = document.querySelector("body > h1")?.nextElementSibling;
|
|
@@ -39,8 +39,8 @@ class ShowReleaseNotesAction extends Action2 {
|
|
|
39
39
|
super({
|
|
40
40
|
id: ShowCurrentReleaseNotesActionId,
|
|
41
41
|
title: {
|
|
42
|
-
...( localize2(
|
|
43
|
-
mnemonicTitle: ( localize(
|
|
42
|
+
...( localize2(15297, "Show Release Notes")),
|
|
43
|
+
mnemonicTitle: ( localize(15298, "Show &&Release Notes"))
|
|
44
44
|
},
|
|
45
45
|
category: {
|
|
46
46
|
value: product.nameShort,
|
|
@@ -66,7 +66,7 @@ class ShowReleaseNotesAction extends Action2 {
|
|
|
66
66
|
await openerService.open(( URI.parse(productService.releaseNotesUrl)));
|
|
67
67
|
} else {
|
|
68
68
|
throw ( new Error(( localize(
|
|
69
|
-
|
|
69
|
+
15299,
|
|
70
70
|
"This version of {0} does not have release notes online",
|
|
71
71
|
productService.nameLong
|
|
72
72
|
))));
|
|
@@ -79,10 +79,10 @@ class ShowCurrentReleaseNotesFromCurrentFileAction extends Action2 {
|
|
|
79
79
|
super({
|
|
80
80
|
id: ShowCurrentReleaseNotesFromCurrentFileActionId,
|
|
81
81
|
title: {
|
|
82
|
-
...( localize2(
|
|
83
|
-
mnemonicTitle: ( localize(
|
|
82
|
+
...( localize2(15300, "Open Current File as Release Notes")),
|
|
83
|
+
mnemonicTitle: ( localize(15298, "Show &&Release Notes"))
|
|
84
84
|
},
|
|
85
|
-
category: ( localize2(
|
|
85
|
+
category: ( localize2(15301, "Developer")),
|
|
86
86
|
f1: true
|
|
87
87
|
});
|
|
88
88
|
}
|
|
@@ -92,7 +92,7 @@ class ShowCurrentReleaseNotesFromCurrentFileAction extends Action2 {
|
|
|
92
92
|
try {
|
|
93
93
|
await showReleaseNotesInEditor(instantiationService, productService.version, true);
|
|
94
94
|
} catch (err) {
|
|
95
|
-
throw ( new Error(( localize(
|
|
95
|
+
throw ( new Error(( localize(15302, "Cannot open the current file as Release Notes"))));
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
}
|
|
@@ -104,7 +104,7 @@ class CheckForUpdateAction extends Action2 {
|
|
|
104
104
|
constructor() {
|
|
105
105
|
super({
|
|
106
106
|
id: "update.checkForUpdate",
|
|
107
|
-
title: ( localize2(
|
|
107
|
+
title: ( localize2(15303, "Check for Updates...")),
|
|
108
108
|
category: {
|
|
109
109
|
value: product.nameShort,
|
|
110
110
|
original: product.nameShort
|
|
@@ -122,7 +122,7 @@ class DownloadUpdateAction extends Action2 {
|
|
|
122
122
|
constructor() {
|
|
123
123
|
super({
|
|
124
124
|
id: "update.downloadUpdate",
|
|
125
|
-
title: ( localize2(
|
|
125
|
+
title: ( localize2(15304, "Download Update")),
|
|
126
126
|
category: {
|
|
127
127
|
value: product.nameShort,
|
|
128
128
|
original: product.nameShort
|
|
@@ -139,7 +139,7 @@ class InstallUpdateAction extends Action2 {
|
|
|
139
139
|
constructor() {
|
|
140
140
|
super({
|
|
141
141
|
id: "update.installUpdate",
|
|
142
|
-
title: ( localize2(
|
|
142
|
+
title: ( localize2(15305, "Install Update")),
|
|
143
143
|
category: {
|
|
144
144
|
value: product.nameShort,
|
|
145
145
|
original: product.nameShort
|
|
@@ -156,7 +156,7 @@ class RestartToUpdateAction extends Action2 {
|
|
|
156
156
|
constructor() {
|
|
157
157
|
super({
|
|
158
158
|
id: "update.restartToUpdate",
|
|
159
|
-
title: ( localize2(
|
|
159
|
+
title: ( localize2(15306, "Restart to Update")),
|
|
160
160
|
category: {
|
|
161
161
|
value: product.nameShort,
|
|
162
162
|
original: product.nameShort
|
|
@@ -179,7 +179,7 @@ class DownloadAction extends Action2 {
|
|
|
179
179
|
constructor() {
|
|
180
180
|
super({
|
|
181
181
|
id: DownloadAction.ID,
|
|
182
|
-
title: ( localize2(
|
|
182
|
+
title: ( localize2(15307, "Download {0}", product.nameLong)),
|
|
183
183
|
precondition: IsWebContext,
|
|
184
184
|
f1: true,
|
|
185
185
|
menu: [{
|
|
@@ -208,7 +208,7 @@ if (isWindows) {
|
|
|
208
208
|
constructor() {
|
|
209
209
|
super({
|
|
210
210
|
id: "_update.applyupdate",
|
|
211
|
-
title: ( localize2(
|
|
211
|
+
title: ( localize2(15308, "Apply Update...")),
|
|
212
212
|
category: Categories.Developer,
|
|
213
213
|
f1: true,
|
|
214
214
|
precondition: ( CONTEXT_UPDATE_STATE.isEqualTo(StateType.Idle))
|
|
@@ -218,13 +218,13 @@ if (isWindows) {
|
|
|
218
218
|
const updateService = accessor.get(IUpdateService);
|
|
219
219
|
const fileDialogService = accessor.get(IFileDialogService);
|
|
220
220
|
const updatePath = await fileDialogService.showOpenDialog({
|
|
221
|
-
title: ( localize(
|
|
221
|
+
title: ( localize(15309, "Apply Update")),
|
|
222
222
|
filters: [{
|
|
223
223
|
name: "Setup",
|
|
224
224
|
extensions: ["exe"]
|
|
225
225
|
}],
|
|
226
226
|
canSelectFiles: true,
|
|
227
|
-
openLabel: mnemonicButtonLabel(( localize(
|
|
227
|
+
openLabel: mnemonicButtonLabel(( localize(15310, "&&Update")))
|
|
228
228
|
});
|
|
229
229
|
if (!updatePath || !updatePath[0]) {
|
|
230
230
|
return;
|
|
@@ -238,7 +238,7 @@ registerAction2(class ShowUpdateInfoAction extends Action2 {
|
|
|
238
238
|
constructor() {
|
|
239
239
|
super({
|
|
240
240
|
id: "update.showUpdateInfo",
|
|
241
|
-
title: ( localize2(
|
|
241
|
+
title: ( localize2(15311, "Show Update Info")),
|
|
242
242
|
category: Categories.Developer,
|
|
243
243
|
f1: true,
|
|
244
244
|
precondition: ( IsWebContext.negate())
|
|
@@ -249,7 +249,7 @@ registerAction2(class ShowUpdateInfoAction extends Action2 {
|
|
|
249
249
|
const quickInputService = accessor.get(IQuickInputService);
|
|
250
250
|
const markdown = await quickInputService.input({
|
|
251
251
|
prompt: ( localize(
|
|
252
|
-
|
|
252
|
+
15312,
|
|
253
253
|
"Enter markdown to render, or JSON with markdown/buttons (leave empty to load from URL)"
|
|
254
254
|
))
|
|
255
255
|
});
|
|
@@ -53,7 +53,7 @@ async function openLatestReleaseNotesInBrowser(accessor) {
|
|
|
53
53
|
await openerService.open(uri);
|
|
54
54
|
} else {
|
|
55
55
|
throw ( new Error(( localize(
|
|
56
|
-
|
|
56
|
+
15313,
|
|
57
57
|
"This version of {0} does not have release notes online",
|
|
58
58
|
productService.nameLong
|
|
59
59
|
))));
|
|
@@ -76,7 +76,7 @@ function appendUpdateMenuItems(menuId, group) {
|
|
|
76
76
|
group,
|
|
77
77
|
command: {
|
|
78
78
|
id: "update.check",
|
|
79
|
-
title: ( localize(
|
|
79
|
+
title: ( localize(15314, "Check for Updates..."))
|
|
80
80
|
},
|
|
81
81
|
when: ( CONTEXT_UPDATE_STATE.isEqualTo(StateType.Idle))
|
|
82
82
|
});
|
|
@@ -84,7 +84,7 @@ function appendUpdateMenuItems(menuId, group) {
|
|
|
84
84
|
group,
|
|
85
85
|
command: {
|
|
86
86
|
id: "update.checking",
|
|
87
|
-
title: ( localize(
|
|
87
|
+
title: ( localize(15315, "Checking for Updates...")),
|
|
88
88
|
precondition: ( ContextKeyExpr.false())
|
|
89
89
|
},
|
|
90
90
|
when: ( CONTEXT_UPDATE_STATE.isEqualTo(StateType.CheckingForUpdates))
|
|
@@ -93,7 +93,7 @@ function appendUpdateMenuItems(menuId, group) {
|
|
|
93
93
|
group,
|
|
94
94
|
command: {
|
|
95
95
|
id: "update.downloadNow",
|
|
96
|
-
title: ( localize(
|
|
96
|
+
title: ( localize(15316, "Download Update (1)"))
|
|
97
97
|
},
|
|
98
98
|
when: ( CONTEXT_UPDATE_STATE.isEqualTo(StateType.AvailableForDownload))
|
|
99
99
|
});
|
|
@@ -101,7 +101,7 @@ function appendUpdateMenuItems(menuId, group) {
|
|
|
101
101
|
group,
|
|
102
102
|
command: {
|
|
103
103
|
id: "update.downloading",
|
|
104
|
-
title: ( localize(
|
|
104
|
+
title: ( localize(15317, "Downloading Update...")),
|
|
105
105
|
precondition: ( ContextKeyExpr.false())
|
|
106
106
|
},
|
|
107
107
|
when: ( CONTEXT_UPDATE_STATE.isEqualTo(StateType.Downloading))
|
|
@@ -110,7 +110,7 @@ function appendUpdateMenuItems(menuId, group) {
|
|
|
110
110
|
group,
|
|
111
111
|
command: {
|
|
112
112
|
id: "update.install",
|
|
113
|
-
title: ( localize(
|
|
113
|
+
title: ( localize(15318, "Install Update... (1)"))
|
|
114
114
|
},
|
|
115
115
|
when: ( CONTEXT_UPDATE_STATE.isEqualTo(StateType.Downloaded))
|
|
116
116
|
});
|
|
@@ -118,7 +118,7 @@ function appendUpdateMenuItems(menuId, group) {
|
|
|
118
118
|
group,
|
|
119
119
|
command: {
|
|
120
120
|
id: "update.updating",
|
|
121
|
-
title: ( localize(
|
|
121
|
+
title: ( localize(15319, "Installing Update...")),
|
|
122
122
|
precondition: ( ContextKeyExpr.false())
|
|
123
123
|
},
|
|
124
124
|
when: ( CONTEXT_UPDATE_STATE.isEqualTo(StateType.Updating))
|
|
@@ -128,7 +128,7 @@ function appendUpdateMenuItems(menuId, group) {
|
|
|
128
128
|
order: 2,
|
|
129
129
|
command: {
|
|
130
130
|
id: "update.restart",
|
|
131
|
-
title: ( localize(
|
|
131
|
+
title: ( localize(15320, "Restart to Update (1)"))
|
|
132
132
|
},
|
|
133
133
|
when: ( CONTEXT_UPDATE_STATE.isEqualTo(StateType.Ready))
|
|
134
134
|
});
|
|
@@ -170,12 +170,12 @@ let ProductContribution = class ProductContribution {
|
|
|
170
170
|
if (shouldShowReleaseNotes && !shouldShowPostInstallInfo && !environmentService.skipReleaseNotes && releaseNotesUrl && lastVersion && currentVersion && isMajorMinorUpdate(lastVersion, currentVersion)) {
|
|
171
171
|
showReleaseNotesInEditor(instantiationService, productService.version, false).then(undefined, () => {
|
|
172
172
|
notificationService.prompt(Severity.Info, ( localize(
|
|
173
|
-
|
|
173
|
+
15321,
|
|
174
174
|
"Welcome to {0} v{1}! Would you like to read the Release Notes?",
|
|
175
175
|
productService.nameLong,
|
|
176
176
|
productService.version
|
|
177
177
|
)), [{
|
|
178
|
-
label: ( localize(
|
|
178
|
+
label: ( localize(15322, "Release Notes")),
|
|
179
179
|
run: () => {
|
|
180
180
|
const uri = ( URI.parse(releaseNotesUrl));
|
|
181
181
|
openerService.open(uri);
|
|
@@ -241,13 +241,13 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
241
241
|
}
|
|
242
242
|
let badge = undefined;
|
|
243
243
|
if (state.type === StateType.AvailableForDownload || state.type === StateType.Downloaded || state.type === StateType.Ready) {
|
|
244
|
-
badge = ( new NumberBadge(1, () => ( localize(
|
|
244
|
+
badge = ( new NumberBadge(1, () => ( localize(15323, "New {0} update available.", this.productService.nameShort))));
|
|
245
245
|
} else if (state.type === StateType.CheckingForUpdates) {
|
|
246
|
-
badge = ( new ProgressBadge(() => ( localize(
|
|
246
|
+
badge = ( new ProgressBadge(() => ( localize(15324, "Checking for {0} updates...", this.productService.nameShort))));
|
|
247
247
|
} else if (state.type === StateType.Downloading || state.type === StateType.Overwriting) {
|
|
248
|
-
badge = ( new ProgressBadge(() => ( localize(
|
|
248
|
+
badge = ( new ProgressBadge(() => ( localize(15325, "Downloading {0} update...", this.productService.nameShort))));
|
|
249
249
|
} else if (state.type === StateType.Updating) {
|
|
250
|
-
badge = ( new ProgressBadge(() => ( localize(
|
|
250
|
+
badge = ( new ProgressBadge(() => ( localize(15326, "Updating {0}...", this.productService.nameShort))));
|
|
251
251
|
}
|
|
252
252
|
this.badgeDisposable.clear();
|
|
253
253
|
if (badge) {
|
|
@@ -284,7 +284,7 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
284
284
|
order: 1,
|
|
285
285
|
command: {
|
|
286
286
|
id: "update.showUpdateReleaseNotes",
|
|
287
|
-
title: ( localize(
|
|
287
|
+
title: ( localize(15327, "Show Update Release Notes"))
|
|
288
288
|
},
|
|
289
289
|
when: ( ContextKeyExpr.and(( CONTEXT_UPDATE_STATE.isEqualTo(StateType.Ready)), MAJOR_MINOR_UPDATE_AVAILABLE))
|
|
290
290
|
});
|
|
@@ -310,7 +310,7 @@ let SwitchProductQualityContribution = class SwitchProductQualityContribution ex
|
|
|
310
310
|
constructor() {
|
|
311
311
|
super({
|
|
312
312
|
id: commandId,
|
|
313
|
-
title: isSwitchingToInsiders ? ( localize(
|
|
313
|
+
title: isSwitchingToInsiders ? ( localize(15328, "Switch to Insiders Version...")) : ( localize(15329, "Switch to Stable Version...")),
|
|
314
314
|
precondition: IsWebContext,
|
|
315
315
|
menu: {
|
|
316
316
|
id: MenuId.GlobalActivity,
|
|
@@ -348,15 +348,15 @@ let SwitchProductQualityContribution = class SwitchProductQualityContribution ex
|
|
|
348
348
|
}
|
|
349
349
|
const res = await dialogService.confirm({
|
|
350
350
|
type: "info",
|
|
351
|
-
message: ( localize(
|
|
351
|
+
message: ( localize(15330, "Changing the version requires a reload to take effect")),
|
|
352
352
|
detail: newQuality === "insider" ? ( localize(
|
|
353
|
-
|
|
353
|
+
15331,
|
|
354
354
|
"Press the reload button to switch to the Insiders version of VS Code."
|
|
355
355
|
)) : ( localize(
|
|
356
|
-
|
|
356
|
+
15332,
|
|
357
357
|
"Press the reload button to switch to the Stable version of VS Code."
|
|
358
358
|
)),
|
|
359
|
-
primaryButton: ( localize(
|
|
359
|
+
primaryButton: ( localize(15333, "&&Reload"))
|
|
360
360
|
});
|
|
361
361
|
if (res.confirmed) {
|
|
362
362
|
const promises = [];
|
|
@@ -386,18 +386,18 @@ let SwitchProductQualityContribution = class SwitchProductQualityContribution ex
|
|
|
386
386
|
} = await dialogService.prompt({
|
|
387
387
|
type: Severity.Info,
|
|
388
388
|
message: ( localize(
|
|
389
|
-
|
|
389
|
+
15334,
|
|
390
390
|
"Choose the settings sync service to use after changing the version"
|
|
391
391
|
)),
|
|
392
392
|
detail: ( localize(
|
|
393
|
-
|
|
393
|
+
15335,
|
|
394
394
|
"The Insiders version of VS Code will synchronize your settings, keybindings, extensions, snippets and UI State using separate insiders settings sync service by default."
|
|
395
395
|
)),
|
|
396
396
|
buttons: [{
|
|
397
|
-
label: ( localize(
|
|
397
|
+
label: ( localize(15336, "&&Insiders")),
|
|
398
398
|
run: () => "insiders"
|
|
399
399
|
}, {
|
|
400
|
-
label: ( localize(
|
|
400
|
+
label: ( localize(15337, "&&Stable (current)")),
|
|
401
401
|
run: () => "stable"
|
|
402
402
|
}],
|
|
403
403
|
cancelButton: true
|
|
@@ -47,7 +47,7 @@ registerAction2(class UpdateIndicatorTitleBarAction extends Action2 {
|
|
|
47
47
|
constructor() {
|
|
48
48
|
super({
|
|
49
49
|
id: UPDATE_TITLE_BAR_ACTION_ID,
|
|
50
|
-
title: ( localize(
|
|
50
|
+
title: ( localize(15338, "Update")),
|
|
51
51
|
f1: false,
|
|
52
52
|
menu: [{
|
|
53
53
|
id: MenuId.TitleBarAdjacentCenter,
|
|
@@ -273,43 +273,43 @@ let UpdateTitleBarEntry = class UpdateTitleBarEntry extends BaseActionViewItem {
|
|
|
273
273
|
const label = append(this.content, $(".indicator-label"));
|
|
274
274
|
switch (state.type) {
|
|
275
275
|
case StateType.Disabled:
|
|
276
|
-
label.textContent = ( localize(
|
|
276
|
+
label.textContent = ( localize(15339, "Update"));
|
|
277
277
|
this.content.classList.add("update-disabled");
|
|
278
278
|
break;
|
|
279
279
|
case StateType.CheckingForUpdates:
|
|
280
|
-
label.textContent = ( localize(
|
|
280
|
+
label.textContent = ( localize(15340, "Checking..."));
|
|
281
281
|
this.renderProgressState(this.content);
|
|
282
282
|
break;
|
|
283
283
|
case StateType.Overwriting:
|
|
284
|
-
label.textContent = ( localize(
|
|
284
|
+
label.textContent = ( localize(15341, "Updating..."));
|
|
285
285
|
this.renderProgressState(this.content);
|
|
286
286
|
break;
|
|
287
287
|
case StateType.AvailableForDownload:
|
|
288
288
|
case StateType.Downloaded:
|
|
289
289
|
case StateType.Ready:
|
|
290
|
-
label.textContent = ( localize(
|
|
290
|
+
label.textContent = ( localize(15339, "Update"));
|
|
291
291
|
this.content.classList.add("prominent");
|
|
292
292
|
break;
|
|
293
293
|
case StateType.Downloading:
|
|
294
|
-
label.textContent = ( localize(
|
|
294
|
+
label.textContent = ( localize(15342, "Downloading..."));
|
|
295
295
|
this.renderProgressState(
|
|
296
296
|
this.content,
|
|
297
297
|
computeProgressPercent(state.downloadedBytes, state.totalBytes)
|
|
298
298
|
);
|
|
299
299
|
break;
|
|
300
300
|
case StateType.Updating:
|
|
301
|
-
label.textContent = ( localize(
|
|
301
|
+
label.textContent = ( localize(15343, "Installing..."));
|
|
302
302
|
this.renderProgressState(
|
|
303
303
|
this.content,
|
|
304
304
|
computeProgressPercent(state.currentProgress, state.maxProgress)
|
|
305
305
|
);
|
|
306
306
|
break;
|
|
307
307
|
case StateType.Restarting:
|
|
308
|
-
label.textContent = ( localize(
|
|
308
|
+
label.textContent = ( localize(15344, "Restarting..."));
|
|
309
309
|
this.renderProgressState(this.content);
|
|
310
310
|
break;
|
|
311
311
|
default:
|
|
312
|
-
label.textContent = ( localize(
|
|
312
|
+
label.textContent = ( localize(15339, "Update"));
|
|
313
313
|
break;
|
|
314
314
|
}
|
|
315
315
|
}
|
|
@@ -63,7 +63,7 @@ let UpdateTooltip = class UpdateTooltip extends Disposable {
|
|
|
63
63
|
this.messageNode = append(this.domNode, $(".state-message"));
|
|
64
64
|
this.buttonBar = append(this.domNode, $(".button-bar"));
|
|
65
65
|
this.releaseNotesButton = append(this.buttonBar, $("button.release-notes-button"));
|
|
66
|
-
this.releaseNotesButton.textContent = ( localize(
|
|
66
|
+
this.releaseNotesButton.textContent = ( localize(15345, "Release Notes"));
|
|
67
67
|
this._register(addDisposableListener(this.releaseNotesButton, "click", () => {
|
|
68
68
|
if (this.releaseNotesVersion) {
|
|
69
69
|
this.runCommandAndClose(ShowCurrentReleaseNotesActionId, this.releaseNotesVersion);
|
|
@@ -82,7 +82,7 @@ let UpdateTooltip = class UpdateTooltip extends Disposable {
|
|
|
82
82
|
const productVersion = this.productService.version;
|
|
83
83
|
if (productVersion) {
|
|
84
84
|
const currentCommitId = this.productService.commit?.substring(0, 7);
|
|
85
|
-
this.currentVersionNode.textContent = currentCommitId ? ( localize(
|
|
85
|
+
this.currentVersionNode.textContent = currentCommitId ? ( localize(15346, "Current Version: {0} ({1})", productVersion, currentCommitId)) : ( localize(15347, "Current Version: {0}", productVersion));
|
|
86
86
|
this.currentVersionCopyValue.value = currentCommitId ? `${productVersion} (${this.productService.commit})` : productVersion;
|
|
87
87
|
this.currentVersionNode.parentElement.style.display = "";
|
|
88
88
|
} else {
|
|
@@ -138,46 +138,46 @@ let UpdateTooltip = class UpdateTooltip extends Disposable {
|
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
renderUninitialized() {
|
|
141
|
-
this.renderTitleAndInfo(( localize(
|
|
142
|
-
this.renderMessage(( localize(
|
|
141
|
+
this.renderTitleAndInfo(( localize(15348, "Initializing")));
|
|
142
|
+
this.renderMessage(( localize(15349, "Initializing update service...")));
|
|
143
143
|
}
|
|
144
144
|
renderDisabled(
|
|
145
145
|
{
|
|
146
146
|
reason
|
|
147
147
|
}
|
|
148
148
|
) {
|
|
149
|
-
this.renderTitleAndInfo(( localize(
|
|
149
|
+
this.renderTitleAndInfo(( localize(15350, "Updates Disabled")));
|
|
150
150
|
switch (reason) {
|
|
151
151
|
case DisablementReason.NotBuilt:
|
|
152
|
-
this.renderMessage(( localize(
|
|
152
|
+
this.renderMessage(( localize(15351, "Updates are not available for this build.")), Codicon.info);
|
|
153
153
|
break;
|
|
154
154
|
case DisablementReason.DisabledByEnvironment:
|
|
155
|
-
this.renderMessage(( localize(
|
|
155
|
+
this.renderMessage(( localize(15352, "Updates are disabled by the --disable-updates command line flag.")), Codicon.warning);
|
|
156
156
|
break;
|
|
157
157
|
case DisablementReason.ManuallyDisabled:
|
|
158
158
|
this.renderMessage(( localize(
|
|
159
|
-
|
|
159
|
+
15353,
|
|
160
160
|
"Updates are manually disabled. Change the \"update.mode\" setting to enable."
|
|
161
161
|
)), Codicon.warning);
|
|
162
162
|
break;
|
|
163
163
|
case DisablementReason.Policy:
|
|
164
|
-
this.renderMessage(( localize(
|
|
164
|
+
this.renderMessage(( localize(15354, "Updates are disabled by organization policy.")), Codicon.info);
|
|
165
165
|
break;
|
|
166
166
|
case DisablementReason.MissingConfiguration:
|
|
167
|
-
this.renderMessage(( localize(
|
|
167
|
+
this.renderMessage(( localize(15355, "Updates are disabled because no update URL is configured.")), Codicon.info);
|
|
168
168
|
break;
|
|
169
169
|
case DisablementReason.InvalidConfiguration:
|
|
170
|
-
this.renderMessage(( localize(
|
|
170
|
+
this.renderMessage(( localize(15356, "Updates are disabled because the update URL is invalid.")), Codicon.error);
|
|
171
171
|
break;
|
|
172
172
|
case DisablementReason.RunningAsAdmin:
|
|
173
173
|
this.renderMessage(( localize(
|
|
174
|
-
|
|
174
|
+
15357,
|
|
175
175
|
"Updates are not available when running a user install of {0} as administrator.",
|
|
176
176
|
this.productService.nameShort
|
|
177
177
|
)), Codicon.warning);
|
|
178
178
|
break;
|
|
179
179
|
default:
|
|
180
|
-
this.renderMessage(( localize(
|
|
180
|
+
this.renderMessage(( localize(15358, "Updates are disabled.")), Codicon.warning);
|
|
181
181
|
break;
|
|
182
182
|
}
|
|
183
183
|
}
|
|
@@ -188,55 +188,55 @@ let UpdateTooltip = class UpdateTooltip extends Disposable {
|
|
|
188
188
|
}
|
|
189
189
|
) {
|
|
190
190
|
if (error) {
|
|
191
|
-
this.renderTitleAndInfo(( localize(
|
|
191
|
+
this.renderTitleAndInfo(( localize(15359, "Update Error")));
|
|
192
192
|
this.renderMessage(error, Codicon.error);
|
|
193
193
|
return;
|
|
194
194
|
}
|
|
195
195
|
if (notAvailable) {
|
|
196
|
-
this.renderTitleAndInfo(( localize(
|
|
197
|
-
this.renderMessage(( localize(
|
|
196
|
+
this.renderTitleAndInfo(( localize(15360, "No Update Available")));
|
|
197
|
+
this.renderMessage(( localize(15361, "There are no updates currently available.")), Codicon.info);
|
|
198
198
|
return;
|
|
199
199
|
}
|
|
200
|
-
this.renderTitleAndInfo(( localize(
|
|
200
|
+
this.renderTitleAndInfo(( localize(15362, "Up to Date")));
|
|
201
201
|
switch (this.configurationService.getValue("update.mode")) {
|
|
202
202
|
case "none":
|
|
203
|
-
this.renderMessage(( localize(
|
|
203
|
+
this.renderMessage(( localize(15363, "Automatic updates are disabled.")), Codicon.warning);
|
|
204
204
|
break;
|
|
205
205
|
case "manual":
|
|
206
206
|
this.renderMessage(( localize(
|
|
207
|
-
|
|
207
|
+
15364,
|
|
208
208
|
"Automatic updates will be checked but not installed automatically."
|
|
209
209
|
)));
|
|
210
210
|
break;
|
|
211
211
|
case "start":
|
|
212
|
-
this.renderMessage(( localize(
|
|
212
|
+
this.renderMessage(( localize(15365, "Updates will be applied on restart.")));
|
|
213
213
|
break;
|
|
214
214
|
case "default":
|
|
215
215
|
if (this.meteredConnectionService.isConnectionMetered) {
|
|
216
216
|
this.renderMessage(( localize(
|
|
217
|
-
|
|
217
|
+
15366,
|
|
218
218
|
"Automatic updates are paused because the network connection is metered."
|
|
219
219
|
)), Codicon.radioTower);
|
|
220
220
|
} else {
|
|
221
|
-
this.renderMessage(( localize(
|
|
221
|
+
this.renderMessage(( localize(15367, "Automatic updates are enabled. Happy Coding!")), Codicon.smiley);
|
|
222
222
|
}
|
|
223
223
|
break;
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
226
|
renderCheckingForUpdates() {
|
|
227
|
-
this.renderTitleAndInfo(( localize(
|
|
228
|
-
this.renderMessage(( localize(
|
|
227
|
+
this.renderTitleAndInfo(( localize(15368, "Checking for Updates")));
|
|
228
|
+
this.renderMessage(( localize(15369, "Checking for updates, please wait...")));
|
|
229
229
|
}
|
|
230
230
|
renderAvailableForDownload(
|
|
231
231
|
{
|
|
232
232
|
update
|
|
233
233
|
}
|
|
234
234
|
) {
|
|
235
|
-
this.renderTitleAndInfo(( localize(
|
|
236
|
-
this.renderActionButton(( localize(
|
|
235
|
+
this.renderTitleAndInfo(( localize(15370, "Update Available")), update);
|
|
236
|
+
this.renderActionButton(( localize(15371, "Download")), "update.downloadNow");
|
|
237
237
|
}
|
|
238
238
|
renderDownloading(state) {
|
|
239
|
-
this.renderTitleAndInfo(( localize(
|
|
239
|
+
this.renderTitleAndInfo(( localize(15372, "Downloading Update")), state.update);
|
|
240
240
|
const {
|
|
241
241
|
downloadedBytes,
|
|
242
242
|
totalBytes
|
|
@@ -249,15 +249,15 @@ let UpdateTooltip = class UpdateTooltip extends Disposable {
|
|
|
249
249
|
this.progressContainer.style.display = "";
|
|
250
250
|
const speed = computeDownloadSpeed(state);
|
|
251
251
|
if (speed !== undefined && speed > 0) {
|
|
252
|
-
this.speedInfoNode.textContent = ( localize(
|
|
252
|
+
this.speedInfoNode.textContent = ( localize(15373, "{0}/s", formatBytes(speed)));
|
|
253
253
|
}
|
|
254
254
|
const timeRemaining = computeDownloadTimeRemaining(state);
|
|
255
255
|
if (timeRemaining !== undefined && timeRemaining > 0) {
|
|
256
|
-
this.timeRemainingNode.textContent = `~${formatTimeRemaining(timeRemaining)} ${( localize(
|
|
256
|
+
this.timeRemainingNode.textContent = `~${formatTimeRemaining(timeRemaining)} ${( localize(15374, "remaining"))}`;
|
|
257
257
|
}
|
|
258
258
|
this.downloadStatsContainer.style.display = "";
|
|
259
259
|
} else {
|
|
260
|
-
this.renderMessage(( localize(
|
|
260
|
+
this.renderMessage(( localize(15375, "Downloading update, please wait...")));
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
263
|
renderDownloaded(
|
|
@@ -265,8 +265,8 @@ let UpdateTooltip = class UpdateTooltip extends Disposable {
|
|
|
265
265
|
update
|
|
266
266
|
}
|
|
267
267
|
) {
|
|
268
|
-
this.renderTitleAndInfo(( localize(
|
|
269
|
-
this.renderActionButton(( localize(
|
|
268
|
+
this.renderTitleAndInfo(( localize(15376, "Update is Ready to Install")), update);
|
|
269
|
+
this.renderActionButton(( localize(15377, "Install")), "update.install");
|
|
270
270
|
}
|
|
271
271
|
renderUpdating(
|
|
272
272
|
{
|
|
@@ -275,7 +275,7 @@ let UpdateTooltip = class UpdateTooltip extends Disposable {
|
|
|
275
275
|
maxProgress
|
|
276
276
|
}
|
|
277
277
|
) {
|
|
278
|
-
this.renderTitleAndInfo(( localize(
|
|
278
|
+
this.renderTitleAndInfo(( localize(15378, "Installing Update")), update);
|
|
279
279
|
const percentage = computeProgressPercent(currentProgress, maxProgress);
|
|
280
280
|
if (percentage !== undefined) {
|
|
281
281
|
this.progressFill.style.width = `${percentage}%`;
|
|
@@ -283,7 +283,7 @@ let UpdateTooltip = class UpdateTooltip extends Disposable {
|
|
|
283
283
|
this.progressSizeNode.textContent = "";
|
|
284
284
|
this.progressContainer.style.display = "";
|
|
285
285
|
} else {
|
|
286
|
-
this.renderMessage(( localize(
|
|
286
|
+
this.renderMessage(( localize(15379, "Installing update, please wait...")));
|
|
287
287
|
}
|
|
288
288
|
}
|
|
289
289
|
renderReady(
|
|
@@ -292,10 +292,10 @@ let UpdateTooltip = class UpdateTooltip extends Disposable {
|
|
|
292
292
|
}
|
|
293
293
|
) {
|
|
294
294
|
if (this.configurationService.getValue("update.mode") === "manual") {
|
|
295
|
-
this.renderTitleAndInfo(( localize(
|
|
296
|
-
this.renderActionButton(( localize(
|
|
295
|
+
this.renderTitleAndInfo(( localize(15380, "Update Installed")), update);
|
|
296
|
+
this.renderActionButton(( localize(15381, "Restart")), "update.restart");
|
|
297
297
|
} else {
|
|
298
|
-
this.renderTitleAndInfo(( localize(
|
|
298
|
+
this.renderTitleAndInfo(( localize(15382, "Restart to Update")), update);
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
301
|
renderOverwriting(
|
|
@@ -303,23 +303,23 @@ let UpdateTooltip = class UpdateTooltip extends Disposable {
|
|
|
303
303
|
update
|
|
304
304
|
}
|
|
305
305
|
) {
|
|
306
|
-
this.renderTitleAndInfo(( localize(
|
|
307
|
-
this.renderMessage(( localize(
|
|
306
|
+
this.renderTitleAndInfo(( localize(15383, "Downloading Newer Update")), update);
|
|
307
|
+
this.renderMessage(( localize(15384, "A newer update was released. Downloading, please wait...")));
|
|
308
308
|
}
|
|
309
309
|
renderRestarting(
|
|
310
310
|
{
|
|
311
311
|
update
|
|
312
312
|
}
|
|
313
313
|
) {
|
|
314
|
-
this.renderTitleAndInfo(( localize(
|
|
315
|
-
this.renderMessage(( localize(
|
|
314
|
+
this.renderTitleAndInfo(( localize(15385, "Restarting {0}", this.productService.nameShort)), update);
|
|
315
|
+
this.renderMessage(( localize(15386, "Restarting to update, please wait...")));
|
|
316
316
|
}
|
|
317
317
|
renderTitleAndInfo(title, update) {
|
|
318
318
|
this.titleNode.textContent = title;
|
|
319
319
|
const version = update?.productVersion;
|
|
320
320
|
if (version) {
|
|
321
321
|
const updateCommitId = update.version?.substring(0, 7);
|
|
322
|
-
this.latestVersionNode.textContent = updateCommitId ? ( localize(
|
|
322
|
+
this.latestVersionNode.textContent = updateCommitId ? ( localize(15387, "Latest Version: {0} ({1})", version, updateCommitId)) : ( localize(15388, "Latest Version: {0}", version));
|
|
323
323
|
this.latestVersionCopyValue.value = updateCommitId ? `${version} (${update.version})` : version;
|
|
324
324
|
this.latestVersionNode.parentElement.style.display = "";
|
|
325
325
|
} else {
|
|
@@ -327,7 +327,7 @@ let UpdateTooltip = class UpdateTooltip extends Disposable {
|
|
|
327
327
|
}
|
|
328
328
|
const releaseDate = update?.timestamp ?? tryParseDate(this.productService.date);
|
|
329
329
|
if (typeof releaseDate === "number" && releaseDate > 0) {
|
|
330
|
-
this.releaseDateNode.textContent = ( localize(
|
|
330
|
+
this.releaseDateNode.textContent = ( localize(15389, "Released {0}", formatDate(releaseDate)));
|
|
331
331
|
this.releaseDateNode.style.display = "";
|
|
332
332
|
} else {
|
|
333
333
|
this.releaseDateNode.style.display = "none";
|
|
@@ -360,7 +360,7 @@ let UpdateTooltip = class UpdateTooltip extends Disposable {
|
|
|
360
360
|
const copyButton = append(row, $("a.copy-version-button"));
|
|
361
361
|
copyButton.setAttribute("role", "button");
|
|
362
362
|
copyButton.setAttribute("tabindex", "0");
|
|
363
|
-
const title = ( localize(
|
|
363
|
+
const title = ( localize(15390, "Copy"));
|
|
364
364
|
copyButton.title = title;
|
|
365
365
|
copyButton.setAttribute("aria-label", title);
|
|
366
366
|
const copyIcon = append(copyButton, $(".copy-icon"));
|
|
@@ -54,31 +54,31 @@ function formatTimeRemaining(seconds) {
|
|
|
54
54
|
if (hours >= 1) {
|
|
55
55
|
const formattedHours = formatDecimal(hours);
|
|
56
56
|
if (formattedHours === "1") {
|
|
57
|
-
return localize(
|
|
57
|
+
return localize(15391, "{0} hour", formattedHours);
|
|
58
58
|
} else {
|
|
59
|
-
return localize(
|
|
59
|
+
return localize(15392, "{0} hours", formattedHours);
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
const minutes = Math.floor(seconds / 60);
|
|
63
63
|
if (minutes >= 1) {
|
|
64
|
-
return localize(
|
|
64
|
+
return localize(15393, "{0} min", minutes);
|
|
65
65
|
}
|
|
66
|
-
return localize(
|
|
66
|
+
return localize(15394, "{0}s", seconds);
|
|
67
67
|
}
|
|
68
68
|
function formatBytes(bytes) {
|
|
69
69
|
if (bytes < 1024) {
|
|
70
|
-
return localize(
|
|
70
|
+
return localize(15395, "{0} B", bytes);
|
|
71
71
|
}
|
|
72
72
|
const kb = bytes / 1024;
|
|
73
73
|
if (kb < 1024) {
|
|
74
|
-
return localize(
|
|
74
|
+
return localize(15396, "{0} KB", formatDecimal(kb));
|
|
75
75
|
}
|
|
76
76
|
const mb = kb / 1024;
|
|
77
77
|
if (mb < 1024) {
|
|
78
|
-
return localize(
|
|
78
|
+
return localize(15397, "{0} MB", formatDecimal(mb));
|
|
79
79
|
}
|
|
80
80
|
const gb = mb / 1024;
|
|
81
|
-
return localize(
|
|
81
|
+
return localize(15398, "{0} GB", formatDecimal(gb));
|
|
82
82
|
}
|
|
83
83
|
function tryParseDate(date) {
|
|
84
84
|
if (date === undefined) {
|