@codingame/monaco-vscode-update-service-override 9.0.2 → 9.0.3
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/platform/update/common/update.config.contribution.js +11 -11
- package/vscode/src/vs/workbench/contrib/update/browser/releaseNotesEditor.js +3 -3
- package/vscode/src/vs/workbench/contrib/update/browser/update.contribution.js +15 -15
- package/vscode/src/vs/workbench/contrib/update/browser/update.js +40 -40
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-update-service-override",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.3",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@9.0.
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@9.0.3",
|
|
30
30
|
"marked": "~14.0.0"
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -7,7 +7,7 @@ const configurationRegistry = ( (Registry.as(Extensions.Configuration)));
|
|
|
7
7
|
configurationRegistry.registerConfiguration({
|
|
8
8
|
id: 'update',
|
|
9
9
|
order: 15,
|
|
10
|
-
title: ( localize(
|
|
10
|
+
title: ( localize(6720, "Update")),
|
|
11
11
|
type: 'object',
|
|
12
12
|
properties: {
|
|
13
13
|
'update.mode': {
|
|
@@ -16,22 +16,22 @@ configurationRegistry.registerConfiguration({
|
|
|
16
16
|
default: 'default',
|
|
17
17
|
scope: ConfigurationScope.APPLICATION,
|
|
18
18
|
description: ( localize(
|
|
19
|
-
|
|
19
|
+
6721,
|
|
20
20
|
"Configure whether you receive automatic updates. Requires a restart after change. The updates are fetched from a Microsoft online service."
|
|
21
21
|
)),
|
|
22
22
|
tags: ['usesOnlineServices'],
|
|
23
23
|
enumDescriptions: [
|
|
24
|
-
( localize(
|
|
24
|
+
( localize(6722, "Disable updates.")),
|
|
25
25
|
( localize(
|
|
26
|
-
|
|
26
|
+
6723,
|
|
27
27
|
"Disable automatic background update checks. Updates will be available if you manually check for updates."
|
|
28
28
|
)),
|
|
29
29
|
( localize(
|
|
30
|
-
|
|
30
|
+
6724,
|
|
31
31
|
"Check for updates only on startup. Disable automatic background update checks."
|
|
32
32
|
)),
|
|
33
33
|
( localize(
|
|
34
|
-
|
|
34
|
+
6725,
|
|
35
35
|
"Enable automatic update checks. Code will check for updates automatically and periodically."
|
|
36
36
|
))
|
|
37
37
|
],
|
|
@@ -45,11 +45,11 @@ configurationRegistry.registerConfiguration({
|
|
|
45
45
|
default: 'default',
|
|
46
46
|
scope: ConfigurationScope.APPLICATION,
|
|
47
47
|
description: ( localize(
|
|
48
|
-
|
|
48
|
+
6721,
|
|
49
49
|
"Configure whether you receive automatic updates. Requires a restart after change. The updates are fetched from a Microsoft online service."
|
|
50
50
|
)),
|
|
51
51
|
deprecationMessage: ( localize(
|
|
52
|
-
|
|
52
|
+
6726,
|
|
53
53
|
"This setting is deprecated, please use '{0}' instead.",
|
|
54
54
|
'update.mode'
|
|
55
55
|
))
|
|
@@ -58,9 +58,9 @@ configurationRegistry.registerConfiguration({
|
|
|
58
58
|
type: 'boolean',
|
|
59
59
|
default: true,
|
|
60
60
|
scope: ConfigurationScope.APPLICATION,
|
|
61
|
-
title: ( localize(
|
|
61
|
+
title: ( localize(6727, "Enable Background Updates on Windows")),
|
|
62
62
|
description: ( localize(
|
|
63
|
-
|
|
63
|
+
6728,
|
|
64
64
|
"Enable to download and install new VS Code versions in the background on Windows."
|
|
65
65
|
)),
|
|
66
66
|
included: isWindows && !isWeb
|
|
@@ -70,7 +70,7 @@ configurationRegistry.registerConfiguration({
|
|
|
70
70
|
default: true,
|
|
71
71
|
scope: ConfigurationScope.APPLICATION,
|
|
72
72
|
description: ( localize(
|
|
73
|
-
|
|
73
|
+
6729,
|
|
74
74
|
"Show Release Notes after an update. The Release Notes are fetched from a Microsoft online service."
|
|
75
75
|
)),
|
|
76
76
|
tags: ['usesOnlineServices']
|
|
@@ -71,7 +71,7 @@ let ReleaseNotesManager = class ReleaseNotesManager {
|
|
|
71
71
|
const releaseNoteText = await this.loadReleaseNotes(version, useCurrentFile);
|
|
72
72
|
this._lastText = releaseNoteText;
|
|
73
73
|
const html = await this.renderBody(releaseNoteText);
|
|
74
|
-
const title = ( localize(
|
|
74
|
+
const title = ( localize(10577, "Release Notes: {0}", version));
|
|
75
75
|
const activeEditorPane = this._editorService.activeEditorPane;
|
|
76
76
|
if (this._currentReleaseNotes) {
|
|
77
77
|
this._currentReleaseNotes.setName(title);
|
|
@@ -120,7 +120,7 @@ let ReleaseNotesManager = class ReleaseNotesManager {
|
|
|
120
120
|
const versionLabel = match[1].replace(/\./g, '_');
|
|
121
121
|
const baseUrl = 'https://code.visualstudio.com/raw';
|
|
122
122
|
const url = `${baseUrl}/v${versionLabel}.md`;
|
|
123
|
-
const unassigned = ( localize(
|
|
123
|
+
const unassigned = ( localize(10578, "unassigned"));
|
|
124
124
|
const escapeMdHtml = (text) => {
|
|
125
125
|
return escape(text).replace(/\\/g, '\\\\');
|
|
126
126
|
};
|
|
@@ -329,7 +329,7 @@ let ReleaseNotesManager = class ReleaseNotesManager {
|
|
|
329
329
|
|
|
330
330
|
const label = document.createElement('label');
|
|
331
331
|
label.htmlFor = 'showReleaseNotes';
|
|
332
|
-
label.textContent = '${( localize(
|
|
332
|
+
label.textContent = '${( localize(10579, "Show release notes after an update"))}';
|
|
333
333
|
container.appendChild(label);
|
|
334
334
|
|
|
335
335
|
const beforeElement = document.querySelector("body > h1")?.nextElementSibling;
|
|
@@ -29,8 +29,8 @@ class ShowCurrentReleaseNotesAction extends Action2 {
|
|
|
29
29
|
super({
|
|
30
30
|
id: ShowCurrentReleaseNotesActionId,
|
|
31
31
|
title: {
|
|
32
|
-
...( localize2(
|
|
33
|
-
mnemonicTitle: ( localize(
|
|
32
|
+
...( localize2(2993, "Show Release Notes")),
|
|
33
|
+
mnemonicTitle: ( localize(2994, "Show &&Release Notes")),
|
|
34
34
|
},
|
|
35
35
|
category: { value: product$1.nameShort, original: product$1.nameShort },
|
|
36
36
|
f1: true,
|
|
@@ -56,7 +56,7 @@ class ShowCurrentReleaseNotesAction extends Action2 {
|
|
|
56
56
|
}
|
|
57
57
|
else {
|
|
58
58
|
throw ( (new Error(localize(
|
|
59
|
-
|
|
59
|
+
2995,
|
|
60
60
|
"This version of {0} does not have release notes online",
|
|
61
61
|
productService.nameLong
|
|
62
62
|
))));
|
|
@@ -69,10 +69,10 @@ class ShowCurrentReleaseNotesFromCurrentFileAction extends Action2 {
|
|
|
69
69
|
super({
|
|
70
70
|
id: ShowCurrentReleaseNotesFromCurrentFileActionId,
|
|
71
71
|
title: {
|
|
72
|
-
...( localize2(
|
|
73
|
-
mnemonicTitle: ( localize(
|
|
72
|
+
...( localize2(2996, "Open Current File as Release Notes")),
|
|
73
|
+
mnemonicTitle: ( localize(2994, "Show &&Release Notes")),
|
|
74
74
|
},
|
|
75
|
-
category: ( localize2(
|
|
75
|
+
category: ( localize2(2997, "Developer")),
|
|
76
76
|
f1: true,
|
|
77
77
|
});
|
|
78
78
|
}
|
|
@@ -83,7 +83,7 @@ class ShowCurrentReleaseNotesFromCurrentFileAction extends Action2 {
|
|
|
83
83
|
await showReleaseNotesInEditor(instantiationService, productService.version, true);
|
|
84
84
|
}
|
|
85
85
|
catch (err) {
|
|
86
|
-
throw ( (new Error(localize(
|
|
86
|
+
throw ( (new Error(localize(2998, "Cannot open the current file as Release Notes"))));
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
}
|
|
@@ -93,7 +93,7 @@ class CheckForUpdateAction extends Action2 {
|
|
|
93
93
|
constructor() {
|
|
94
94
|
super({
|
|
95
95
|
id: 'update.checkForUpdate',
|
|
96
|
-
title: ( localize2(
|
|
96
|
+
title: ( localize2(2999, 'Check for Updates...')),
|
|
97
97
|
category: { value: product$1.nameShort, original: product$1.nameShort },
|
|
98
98
|
f1: true,
|
|
99
99
|
precondition: ( (CONTEXT_UPDATE_STATE.isEqualTo(StateType.Idle))),
|
|
@@ -108,7 +108,7 @@ class DownloadUpdateAction extends Action2 {
|
|
|
108
108
|
constructor() {
|
|
109
109
|
super({
|
|
110
110
|
id: 'update.downloadUpdate',
|
|
111
|
-
title: ( localize2(
|
|
111
|
+
title: ( localize2(3000, 'Download Update')),
|
|
112
112
|
category: { value: product$1.nameShort, original: product$1.nameShort },
|
|
113
113
|
f1: true,
|
|
114
114
|
precondition: ( (CONTEXT_UPDATE_STATE.isEqualTo(StateType.AvailableForDownload)))
|
|
@@ -122,7 +122,7 @@ class InstallUpdateAction extends Action2 {
|
|
|
122
122
|
constructor() {
|
|
123
123
|
super({
|
|
124
124
|
id: 'update.installUpdate',
|
|
125
|
-
title: ( localize2(
|
|
125
|
+
title: ( localize2(3001, 'Install Update')),
|
|
126
126
|
category: { value: product$1.nameShort, original: product$1.nameShort },
|
|
127
127
|
f1: true,
|
|
128
128
|
precondition: ( (CONTEXT_UPDATE_STATE.isEqualTo(StateType.Downloaded)))
|
|
@@ -136,7 +136,7 @@ class RestartToUpdateAction extends Action2 {
|
|
|
136
136
|
constructor() {
|
|
137
137
|
super({
|
|
138
138
|
id: 'update.restartToUpdate',
|
|
139
|
-
title: ( localize2(
|
|
139
|
+
title: ( localize2(3002, 'Restart to Update')),
|
|
140
140
|
category: { value: product$1.nameShort, original: product$1.nameShort },
|
|
141
141
|
f1: true,
|
|
142
142
|
precondition: ( (CONTEXT_UPDATE_STATE.isEqualTo(StateType.Ready)))
|
|
@@ -151,7 +151,7 @@ class DownloadAction extends Action2 {
|
|
|
151
151
|
constructor() {
|
|
152
152
|
super({
|
|
153
153
|
id: DownloadAction.ID,
|
|
154
|
-
title: ( localize2(
|
|
154
|
+
title: ( localize2(3003, "Download {0}", product$1.nameLong)),
|
|
155
155
|
precondition: ( (ContextKeyExpr.and(IsWebContext, DOWNLOAD_URL))),
|
|
156
156
|
f1: true,
|
|
157
157
|
menu: [{
|
|
@@ -178,7 +178,7 @@ if (isWindows) {
|
|
|
178
178
|
constructor() {
|
|
179
179
|
super({
|
|
180
180
|
id: '_update.applyupdate',
|
|
181
|
-
title: ( localize2(
|
|
181
|
+
title: ( localize2(3004, 'Apply Update...')),
|
|
182
182
|
category: Categories.Developer,
|
|
183
183
|
f1: true,
|
|
184
184
|
precondition: ( (CONTEXT_UPDATE_STATE.isEqualTo(StateType.Idle)))
|
|
@@ -188,10 +188,10 @@ if (isWindows) {
|
|
|
188
188
|
const updateService = accessor.get(IUpdateService);
|
|
189
189
|
const fileDialogService = accessor.get(IFileDialogService);
|
|
190
190
|
const updatePath = await fileDialogService.showOpenDialog({
|
|
191
|
-
title: ( localize(
|
|
191
|
+
title: ( localize(3005, "Apply Update")),
|
|
192
192
|
filters: [{ name: 'Setup', extensions: ['exe'] }],
|
|
193
193
|
canSelectFiles: true,
|
|
194
|
-
openLabel: mnemonicButtonLabel(( localize(
|
|
194
|
+
openLabel: mnemonicButtonLabel(( localize(3006, "&&Update")))
|
|
195
195
|
});
|
|
196
196
|
if (!updatePath || !updatePath[0]) {
|
|
197
197
|
return;
|
|
@@ -53,7 +53,7 @@ async function openLatestReleaseNotesInBrowser(accessor) {
|
|
|
53
53
|
}
|
|
54
54
|
else {
|
|
55
55
|
throw ( (new Error(localize(
|
|
56
|
-
|
|
56
|
+
6730,
|
|
57
57
|
"This version of {0} does not have release notes online",
|
|
58
58
|
productService.nameLong
|
|
59
59
|
))));
|
|
@@ -114,12 +114,12 @@ let ProductContribution = class ProductContribution {
|
|
|
114
114
|
showReleaseNotesInEditor(instantiationService, productService.version, false)
|
|
115
115
|
.then(undefined, () => {
|
|
116
116
|
notificationService.prompt(Severity$1.Info, ( localize(
|
|
117
|
-
|
|
117
|
+
6731,
|
|
118
118
|
"Welcome to {0} v{1}! Would you like to read the Release Notes?",
|
|
119
119
|
productService.nameLong,
|
|
120
120
|
productService.version
|
|
121
121
|
)), [{
|
|
122
|
-
label: ( localize(
|
|
122
|
+
label: ( localize(6732, "Release Notes")),
|
|
123
123
|
run: () => {
|
|
124
124
|
const uri = ( (URI.parse(releaseNotesUrl)));
|
|
125
125
|
openerService.open(uri);
|
|
@@ -178,13 +178,13 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
178
178
|
this.notificationService.notify({
|
|
179
179
|
severity: Severity$1.Info,
|
|
180
180
|
message: ( localize(
|
|
181
|
-
|
|
181
|
+
6733,
|
|
182
182
|
"Updates are disabled because you are running the user-scope installation of {0} as Administrator.",
|
|
183
183
|
this.productService.nameLong
|
|
184
184
|
)),
|
|
185
185
|
actions: {
|
|
186
186
|
primary: [
|
|
187
|
-
( (new Action('', ( localize(
|
|
187
|
+
( (new Action('', ( localize(6734, "Learn More")), undefined, undefined, () => {
|
|
188
188
|
this.openerService.open('https://aka.ms/vscode-windows-setup');
|
|
189
189
|
})))
|
|
190
190
|
]
|
|
@@ -221,18 +221,18 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
221
221
|
let badge = undefined;
|
|
222
222
|
let priority = undefined;
|
|
223
223
|
if (state.type === StateType.AvailableForDownload || state.type === StateType.Downloaded || state.type === StateType.Ready) {
|
|
224
|
-
badge = ( (new NumberBadge(1, () => ( localize(
|
|
224
|
+
badge = ( (new NumberBadge(1, () => ( localize(6735, "New {0} update available.", this.productService.nameShort)))));
|
|
225
225
|
}
|
|
226
226
|
else if (state.type === StateType.CheckingForUpdates) {
|
|
227
|
-
badge = ( (new ProgressBadge(() => ( localize(
|
|
227
|
+
badge = ( (new ProgressBadge(() => ( localize(6736, "Checking for Updates...")))));
|
|
228
228
|
priority = 1;
|
|
229
229
|
}
|
|
230
230
|
else if (state.type === StateType.Downloading) {
|
|
231
|
-
badge = ( (new ProgressBadge(() => ( localize(
|
|
231
|
+
badge = ( (new ProgressBadge(() => ( localize(6737, "Downloading...")))));
|
|
232
232
|
priority = 1;
|
|
233
233
|
}
|
|
234
234
|
else if (state.type === StateType.Updating) {
|
|
235
|
-
badge = ( (new ProgressBadge(() => ( localize(
|
|
235
|
+
badge = ( (new ProgressBadge(() => ( localize(6738, "Updating...")))));
|
|
236
236
|
priority = 1;
|
|
237
237
|
}
|
|
238
238
|
this.badgeDisposable.clear();
|
|
@@ -249,11 +249,11 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
249
249
|
this.notificationService.notify({
|
|
250
250
|
severity: Severity$1.Error,
|
|
251
251
|
message: error,
|
|
252
|
-
source: ( localize(
|
|
252
|
+
source: ( localize(6739, "Update Service")),
|
|
253
253
|
});
|
|
254
254
|
}
|
|
255
255
|
onUpdateNotAvailable() {
|
|
256
|
-
this.dialogService.info(( localize(
|
|
256
|
+
this.dialogService.info(( localize(6740, "There are currently no updates available.")));
|
|
257
257
|
}
|
|
258
258
|
onUpdateAvailable(update) {
|
|
259
259
|
if (!this.shouldShowNotification()) {
|
|
@@ -263,14 +263,14 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
263
263
|
if (!productVersion) {
|
|
264
264
|
return;
|
|
265
265
|
}
|
|
266
|
-
this.notificationService.prompt(Severity$1.Info, ( localize(
|
|
267
|
-
label: ( localize(
|
|
266
|
+
this.notificationService.prompt(Severity$1.Info, ( localize(6741, "There is an available update.")), [{
|
|
267
|
+
label: ( localize(6742, "Download Update")),
|
|
268
268
|
run: () => this.updateService.downloadUpdate()
|
|
269
269
|
}, {
|
|
270
|
-
label: ( localize(
|
|
270
|
+
label: ( localize(6743, "Later")),
|
|
271
271
|
run: () => { }
|
|
272
272
|
}, {
|
|
273
|
-
label: ( localize(
|
|
273
|
+
label: ( localize(6732, "Release Notes")),
|
|
274
274
|
run: () => {
|
|
275
275
|
this.instantiationService.invokeFunction(accessor => showReleaseNotes(accessor, productVersion));
|
|
276
276
|
}
|
|
@@ -291,18 +291,18 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
291
291
|
return;
|
|
292
292
|
}
|
|
293
293
|
this.notificationService.prompt(Severity$1.Info, ( localize(
|
|
294
|
-
|
|
294
|
+
6744,
|
|
295
295
|
"There's an update available: {0} {1}",
|
|
296
296
|
this.productService.nameLong,
|
|
297
297
|
productVersion
|
|
298
298
|
)), [{
|
|
299
|
-
label: ( localize(
|
|
299
|
+
label: ( localize(6745, "Install Update")),
|
|
300
300
|
run: () => this.updateService.applyUpdate()
|
|
301
301
|
}, {
|
|
302
|
-
label: ( localize(
|
|
302
|
+
label: ( localize(6743, "Later")),
|
|
303
303
|
run: () => { }
|
|
304
304
|
}, {
|
|
305
|
-
label: ( localize(
|
|
305
|
+
label: ( localize(6732, "Release Notes")),
|
|
306
306
|
run: () => {
|
|
307
307
|
this.instantiationService.invokeFunction(accessor => showReleaseNotes(accessor, productVersion));
|
|
308
308
|
}
|
|
@@ -313,23 +313,23 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
313
313
|
return;
|
|
314
314
|
}
|
|
315
315
|
const actions = [{
|
|
316
|
-
label: ( localize(
|
|
316
|
+
label: ( localize(6746, "Update Now")),
|
|
317
317
|
run: () => this.updateService.quitAndInstall()
|
|
318
318
|
}, {
|
|
319
|
-
label: ( localize(
|
|
319
|
+
label: ( localize(6743, "Later")),
|
|
320
320
|
run: () => { }
|
|
321
321
|
}];
|
|
322
322
|
const productVersion = update.productVersion;
|
|
323
323
|
if (productVersion) {
|
|
324
324
|
actions.push({
|
|
325
|
-
label: ( localize(
|
|
325
|
+
label: ( localize(6732, "Release Notes")),
|
|
326
326
|
run: () => {
|
|
327
327
|
this.instantiationService.invokeFunction(accessor => showReleaseNotes(accessor, productVersion));
|
|
328
328
|
}
|
|
329
329
|
});
|
|
330
330
|
}
|
|
331
331
|
this.notificationService.prompt(Severity$1.Info, ( localize(
|
|
332
|
-
|
|
332
|
+
6747,
|
|
333
333
|
"Restart {0} to apply the latest update.",
|
|
334
334
|
this.productService.nameLong
|
|
335
335
|
)), actions, { sticky: true });
|
|
@@ -352,7 +352,7 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
352
352
|
group: '7_update',
|
|
353
353
|
command: {
|
|
354
354
|
id: 'update.check',
|
|
355
|
-
title: ( localize(
|
|
355
|
+
title: ( localize(6748, "Check for Updates..."))
|
|
356
356
|
},
|
|
357
357
|
when: ( (CONTEXT_UPDATE_STATE.isEqualTo(StateType.Idle)))
|
|
358
358
|
});
|
|
@@ -361,7 +361,7 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
361
361
|
group: '7_update',
|
|
362
362
|
command: {
|
|
363
363
|
id: 'update.checking',
|
|
364
|
-
title: ( localize(
|
|
364
|
+
title: ( localize(6736, "Checking for Updates...")),
|
|
365
365
|
precondition: ( (ContextKeyExpr.false()))
|
|
366
366
|
},
|
|
367
367
|
when: ( (CONTEXT_UPDATE_STATE.isEqualTo(StateType.CheckingForUpdates)))
|
|
@@ -371,7 +371,7 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
371
371
|
group: '7_update',
|
|
372
372
|
command: {
|
|
373
373
|
id: 'update.downloadNow',
|
|
374
|
-
title: ( localize(
|
|
374
|
+
title: ( localize(6749, "Download Update (1)"))
|
|
375
375
|
},
|
|
376
376
|
when: ( (CONTEXT_UPDATE_STATE.isEqualTo(StateType.AvailableForDownload)))
|
|
377
377
|
});
|
|
@@ -380,7 +380,7 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
380
380
|
group: '7_update',
|
|
381
381
|
command: {
|
|
382
382
|
id: 'update.downloading',
|
|
383
|
-
title: ( localize(
|
|
383
|
+
title: ( localize(6750, "Downloading Update...")),
|
|
384
384
|
precondition: ( (ContextKeyExpr.false()))
|
|
385
385
|
},
|
|
386
386
|
when: ( (CONTEXT_UPDATE_STATE.isEqualTo(StateType.Downloading)))
|
|
@@ -390,7 +390,7 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
390
390
|
group: '7_update',
|
|
391
391
|
command: {
|
|
392
392
|
id: 'update.install',
|
|
393
|
-
title: ( localize(
|
|
393
|
+
title: ( localize(6751, "Install Update... (1)"))
|
|
394
394
|
},
|
|
395
395
|
when: ( (CONTEXT_UPDATE_STATE.isEqualTo(StateType.Downloaded)))
|
|
396
396
|
});
|
|
@@ -399,7 +399,7 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
399
399
|
group: '7_update',
|
|
400
400
|
command: {
|
|
401
401
|
id: 'update.updating',
|
|
402
|
-
title: ( localize(
|
|
402
|
+
title: ( localize(6752, "Installing Update...")),
|
|
403
403
|
precondition: ( (ContextKeyExpr.false()))
|
|
404
404
|
},
|
|
405
405
|
when: ( (CONTEXT_UPDATE_STATE.isEqualTo(StateType.Updating)))
|
|
@@ -419,7 +419,7 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
419
419
|
order: 1,
|
|
420
420
|
command: {
|
|
421
421
|
id: 'update.showUpdateReleaseNotes',
|
|
422
|
-
title: ( localize(
|
|
422
|
+
title: ( localize(6753, "Show Update Release Notes"))
|
|
423
423
|
},
|
|
424
424
|
when: ( (ContextKeyExpr.and(
|
|
425
425
|
(CONTEXT_UPDATE_STATE.isEqualTo(StateType.Ready)),
|
|
@@ -433,7 +433,7 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
433
433
|
order: 2,
|
|
434
434
|
command: {
|
|
435
435
|
id: 'update.restart',
|
|
436
|
-
title: ( localize(
|
|
436
|
+
title: ( localize(6754, "Restart to Update (1)"))
|
|
437
437
|
},
|
|
438
438
|
when: ( (CONTEXT_UPDATE_STATE.isEqualTo(StateType.Ready)))
|
|
439
439
|
});
|
|
@@ -473,7 +473,7 @@ let SwitchProductQualityContribution = class SwitchProductQualityContribution ex
|
|
|
473
473
|
constructor() {
|
|
474
474
|
super({
|
|
475
475
|
id: commandId,
|
|
476
|
-
title: isSwitchingToInsiders ? ( localize(
|
|
476
|
+
title: isSwitchingToInsiders ? ( localize(6755, "Switch to Insiders Version...")) : ( localize(6756, "Switch to Stable Version...")),
|
|
477
477
|
precondition: IsWebContext,
|
|
478
478
|
menu: {
|
|
479
479
|
id: MenuId.GlobalActivity,
|
|
@@ -507,17 +507,17 @@ let SwitchProductQualityContribution = class SwitchProductQualityContribution ex
|
|
|
507
507
|
}
|
|
508
508
|
const res = await dialogService.confirm({
|
|
509
509
|
type: 'info',
|
|
510
|
-
message: ( localize(
|
|
510
|
+
message: ( localize(6757, "Changing the version requires a reload to take effect")),
|
|
511
511
|
detail: newQuality === 'insider' ?
|
|
512
512
|
( localize(
|
|
513
|
-
|
|
513
|
+
6758,
|
|
514
514
|
"Press the reload button to switch to the Insiders version of VS Code."
|
|
515
515
|
)) :
|
|
516
516
|
( localize(
|
|
517
|
-
|
|
517
|
+
6759,
|
|
518
518
|
"Press the reload button to switch to the Stable version of VS Code."
|
|
519
519
|
)),
|
|
520
|
-
primaryButton: ( localize(
|
|
520
|
+
primaryButton: ( localize(6760, "&&Reload"))
|
|
521
521
|
});
|
|
522
522
|
if (res.confirmed) {
|
|
523
523
|
const promises = [];
|
|
@@ -543,18 +543,18 @@ let SwitchProductQualityContribution = class SwitchProductQualityContribution ex
|
|
|
543
543
|
async selectSettingsSyncService(dialogService) {
|
|
544
544
|
const { result } = await dialogService.prompt({
|
|
545
545
|
type: Severity$1.Info,
|
|
546
|
-
message: ( localize(
|
|
546
|
+
message: ( localize(6761, "Choose the settings sync service to use after changing the version")),
|
|
547
547
|
detail: ( localize(
|
|
548
|
-
|
|
548
|
+
6762,
|
|
549
549
|
"The Insiders version of VS Code will synchronize your settings, keybindings, extensions, snippets and UI State using separate insiders settings sync service by default."
|
|
550
550
|
)),
|
|
551
551
|
buttons: [
|
|
552
552
|
{
|
|
553
|
-
label: ( localize(
|
|
553
|
+
label: ( localize(6763, "&&Insiders")),
|
|
554
554
|
run: () => 'insiders'
|
|
555
555
|
},
|
|
556
556
|
{
|
|
557
|
-
label: ( localize(
|
|
557
|
+
label: ( localize(6764, "&&Stable (current)")),
|
|
558
558
|
run: () => 'stable'
|
|
559
559
|
}
|
|
560
560
|
],
|