@codingame/monaco-vscode-update-service-override 21.3.2 → 21.3.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 +7 -7
- package/vscode/src/vs/workbench/contrib/markdown/browser/markdownSettingRenderer.js +14 -14
- 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": "21.3.
|
|
3
|
+
"version": "21.3.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - update service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-2a22c7b4-b906-5914-8cd1-3ed912fb738f-common": "21.3.
|
|
19
|
-
"@codingame/monaco-vscode-4bf376c2-03c7-58cb-8303-c67aeefa3d3d-common": "21.3.
|
|
20
|
-
"@codingame/monaco-vscode-9a5ab9e7-d838-5831-9eb4-e79ea3764dcb-common": "21.3.
|
|
21
|
-
"@codingame/monaco-vscode-api": "21.3.
|
|
22
|
-
"@codingame/monaco-vscode-c3b3387c-7bce-5b8f-9e14-bebeb636f1c8-common": "21.3.
|
|
23
|
-
"@codingame/monaco-vscode-cf77987b-b1b7-5359-aaf8-a259c63d9f03-common": "21.3.
|
|
18
|
+
"@codingame/monaco-vscode-2a22c7b4-b906-5914-8cd1-3ed912fb738f-common": "21.3.3",
|
|
19
|
+
"@codingame/monaco-vscode-4bf376c2-03c7-58cb-8303-c67aeefa3d3d-common": "21.3.3",
|
|
20
|
+
"@codingame/monaco-vscode-9a5ab9e7-d838-5831-9eb4-e79ea3764dcb-common": "21.3.3",
|
|
21
|
+
"@codingame/monaco-vscode-api": "21.3.3",
|
|
22
|
+
"@codingame/monaco-vscode-c3b3387c-7bce-5b8f-9e14-bebeb636f1c8-common": "21.3.3",
|
|
23
|
+
"@codingame/monaco-vscode-cf77987b-b1b7-5359-aaf8-a259c63d9f03-common": "21.3.3"
|
|
24
24
|
},
|
|
25
25
|
"main": "index.js",
|
|
26
26
|
"module": "index.js",
|
|
@@ -109,12 +109,12 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
|
|
|
109
109
|
}
|
|
110
110
|
viewInSettingsMessage(settingId, alreadyDisplayed) {
|
|
111
111
|
if (alreadyDisplayed) {
|
|
112
|
-
return localize(
|
|
112
|
+
return localize(8101, "View in Settings");
|
|
113
113
|
}
|
|
114
114
|
else {
|
|
115
115
|
const displayName = settingKeyToDisplayFormat(settingId);
|
|
116
116
|
return localize(
|
|
117
|
-
|
|
117
|
+
8102,
|
|
118
118
|
"View \"{0}: {1}\" in Settings",
|
|
119
119
|
displayName.category,
|
|
120
120
|
displayName.label
|
|
@@ -124,7 +124,7 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
|
|
|
124
124
|
restorePreviousSettingMessage(settingId) {
|
|
125
125
|
const displayName = settingKeyToDisplayFormat(settingId);
|
|
126
126
|
return localize(
|
|
127
|
-
|
|
127
|
+
8103,
|
|
128
128
|
"Restore value of \"{0}: {1}\"",
|
|
129
129
|
displayName.category,
|
|
130
130
|
displayName.label
|
|
@@ -139,7 +139,7 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
|
|
|
139
139
|
if (this.isAlreadySet(setting, booleanValue)) {
|
|
140
140
|
if (booleanValue) {
|
|
141
141
|
return localize(
|
|
142
|
-
|
|
142
|
+
8104,
|
|
143
143
|
"\"{0}: {1}\" is already enabled",
|
|
144
144
|
displayName.category,
|
|
145
145
|
displayName.label
|
|
@@ -147,7 +147,7 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
|
|
|
147
147
|
}
|
|
148
148
|
else {
|
|
149
149
|
return localize(
|
|
150
|
-
|
|
150
|
+
8105,
|
|
151
151
|
"\"{0}: {1}\" is already disabled",
|
|
152
152
|
displayName.category,
|
|
153
153
|
displayName.label
|
|
@@ -155,17 +155,17 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
|
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
if (booleanValue) {
|
|
158
|
-
return localize(
|
|
158
|
+
return localize(8106, "Enable \"{0}: {1}\"", displayName.category, displayName.label);
|
|
159
159
|
}
|
|
160
160
|
else {
|
|
161
|
-
return localize(
|
|
161
|
+
return localize(8107, "Disable \"{0}: {1}\"", displayName.category, displayName.label);
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
stringSettingMessage(setting, stringValue) {
|
|
165
165
|
const displayName = settingKeyToDisplayFormat(setting.key);
|
|
166
166
|
if (this.isAlreadySet(setting, stringValue)) {
|
|
167
167
|
return localize(
|
|
168
|
-
|
|
168
|
+
8108,
|
|
169
169
|
"\"{0}: {1}\" is already set to \"{2}\"",
|
|
170
170
|
displayName.category,
|
|
171
171
|
displayName.label,
|
|
@@ -173,7 +173,7 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
|
|
|
173
173
|
);
|
|
174
174
|
}
|
|
175
175
|
return localize(
|
|
176
|
-
|
|
176
|
+
8109,
|
|
177
177
|
"Set \"{0}: {1}\" to \"{2}\"",
|
|
178
178
|
displayName.category,
|
|
179
179
|
displayName.label,
|
|
@@ -184,7 +184,7 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
|
|
|
184
184
|
const displayName = settingKeyToDisplayFormat(setting.key);
|
|
185
185
|
if (this.isAlreadySet(setting, numberValue)) {
|
|
186
186
|
return localize(
|
|
187
|
-
|
|
187
|
+
8110,
|
|
188
188
|
"\"{0}: {1}\" is already set to {2}",
|
|
189
189
|
displayName.category,
|
|
190
190
|
displayName.label,
|
|
@@ -192,7 +192,7 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
|
|
|
192
192
|
);
|
|
193
193
|
}
|
|
194
194
|
return localize(
|
|
195
|
-
|
|
195
|
+
8111,
|
|
196
196
|
"Set \"{0}: {1}\" to {2}",
|
|
197
197
|
displayName.category,
|
|
198
198
|
displayName.label,
|
|
@@ -201,7 +201,7 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
|
|
|
201
201
|
}
|
|
202
202
|
renderSetting(setting, newValue) {
|
|
203
203
|
const href = this.settingToUriString(setting.key, newValue);
|
|
204
|
-
const title = ( localize(
|
|
204
|
+
const title = ( localize(8112, "View or change setting"));
|
|
205
205
|
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>
|
|
206
206
|
<span class="separator"></span>
|
|
207
207
|
<span class="setting-name">${setting.key}</span>
|
|
@@ -280,8 +280,8 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
|
|
|
280
280
|
class: undefined,
|
|
281
281
|
enabled: true,
|
|
282
282
|
id: 'copySettingId',
|
|
283
|
-
tooltip: ( localize(
|
|
284
|
-
label: ( localize(
|
|
283
|
+
tooltip: ( localize(8113, "Copy Setting ID")),
|
|
284
|
+
label: ( localize(8113, "Copy Setting ID")),
|
|
285
285
|
run: () => {
|
|
286
286
|
this._clipboardService.writeText(settingId);
|
|
287
287
|
}
|
|
@@ -85,7 +85,7 @@ let ReleaseNotesManager = class ReleaseNotesManager extends Disposable {
|
|
|
85
85
|
const base = await this.getBase(useCurrentFile);
|
|
86
86
|
this._lastMeta = { text: releaseNoteText, base };
|
|
87
87
|
const html = await this.renderBody(this._lastMeta);
|
|
88
|
-
const title = ( localize(
|
|
88
|
+
const title = ( localize(12215, "Release Notes: {0}", version));
|
|
89
89
|
const activeEditorPane = this._editorService.activeEditorPane;
|
|
90
90
|
if (this._currentReleaseNotes) {
|
|
91
91
|
this._currentReleaseNotes.setName(title);
|
|
@@ -134,7 +134,7 @@ let ReleaseNotesManager = class ReleaseNotesManager extends Disposable {
|
|
|
134
134
|
const versionLabel = match[1].replace(/\./g, '_');
|
|
135
135
|
const baseUrl = 'https://code.visualstudio.com/raw';
|
|
136
136
|
const url = `${baseUrl}/v${versionLabel}.md`;
|
|
137
|
-
const unassigned = ( localize(
|
|
137
|
+
const unassigned = ( localize(12216, "unassigned"));
|
|
138
138
|
const escapeMdHtml = (text) => {
|
|
139
139
|
return escape(text).replace(/\\/g, '\\\\');
|
|
140
140
|
};
|
|
@@ -526,7 +526,7 @@ let ReleaseNotesManager = class ReleaseNotesManager extends Disposable {
|
|
|
526
526
|
|
|
527
527
|
const label = document.createElement('label');
|
|
528
528
|
label.htmlFor = 'showReleaseNotes';
|
|
529
|
-
label.textContent = '${( localize(
|
|
529
|
+
label.textContent = '${( localize(12217, "Show release notes after an update"))}';
|
|
530
530
|
container.appendChild(label);
|
|
531
531
|
|
|
532
532
|
const beforeElement = document.querySelector("body > h1")?.nextElementSibling;
|
|
@@ -30,8 +30,8 @@ class ShowCurrentReleaseNotesAction extends Action2 {
|
|
|
30
30
|
super({
|
|
31
31
|
id: ShowCurrentReleaseNotesActionId,
|
|
32
32
|
title: {
|
|
33
|
-
...( localize2(
|
|
34
|
-
mnemonicTitle: ( localize(
|
|
33
|
+
...( localize2(12218, "Show Release Notes")),
|
|
34
|
+
mnemonicTitle: ( localize(12219, "Show &&Release Notes")),
|
|
35
35
|
},
|
|
36
36
|
category: { value: product.nameShort, original: product.nameShort },
|
|
37
37
|
f1: true,
|
|
@@ -57,7 +57,7 @@ class ShowCurrentReleaseNotesAction extends Action2 {
|
|
|
57
57
|
}
|
|
58
58
|
else {
|
|
59
59
|
throw ( new Error(( localize(
|
|
60
|
-
|
|
60
|
+
12220,
|
|
61
61
|
"This version of {0} does not have release notes online",
|
|
62
62
|
productService.nameLong
|
|
63
63
|
))));
|
|
@@ -70,10 +70,10 @@ class ShowCurrentReleaseNotesFromCurrentFileAction extends Action2 {
|
|
|
70
70
|
super({
|
|
71
71
|
id: ShowCurrentReleaseNotesFromCurrentFileActionId,
|
|
72
72
|
title: {
|
|
73
|
-
...( localize2(
|
|
74
|
-
mnemonicTitle: ( localize(
|
|
73
|
+
...( localize2(12221, "Open Current File as Release Notes")),
|
|
74
|
+
mnemonicTitle: ( localize(12219, "Show &&Release Notes")),
|
|
75
75
|
},
|
|
76
|
-
category: ( localize2(
|
|
76
|
+
category: ( localize2(12222, "Developer")),
|
|
77
77
|
f1: true,
|
|
78
78
|
});
|
|
79
79
|
}
|
|
@@ -84,7 +84,7 @@ class ShowCurrentReleaseNotesFromCurrentFileAction extends Action2 {
|
|
|
84
84
|
await showReleaseNotesInEditor(instantiationService, productService.version, true);
|
|
85
85
|
}
|
|
86
86
|
catch (err) {
|
|
87
|
-
throw ( new Error(( localize(
|
|
87
|
+
throw ( new Error(( localize(12223, "Cannot open the current file as Release Notes"))));
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
}
|
|
@@ -94,7 +94,7 @@ class CheckForUpdateAction extends Action2 {
|
|
|
94
94
|
constructor() {
|
|
95
95
|
super({
|
|
96
96
|
id: 'update.checkForUpdate',
|
|
97
|
-
title: ( localize2(
|
|
97
|
+
title: ( localize2(12224, 'Check for Updates...')),
|
|
98
98
|
category: { value: product.nameShort, original: product.nameShort },
|
|
99
99
|
f1: true,
|
|
100
100
|
precondition: ( CONTEXT_UPDATE_STATE.isEqualTo(StateType.Idle)),
|
|
@@ -109,7 +109,7 @@ class DownloadUpdateAction extends Action2 {
|
|
|
109
109
|
constructor() {
|
|
110
110
|
super({
|
|
111
111
|
id: 'update.downloadUpdate',
|
|
112
|
-
title: ( localize2(
|
|
112
|
+
title: ( localize2(12225, 'Download Update')),
|
|
113
113
|
category: { value: product.nameShort, original: product.nameShort },
|
|
114
114
|
f1: true,
|
|
115
115
|
precondition: ( CONTEXT_UPDATE_STATE.isEqualTo(StateType.AvailableForDownload))
|
|
@@ -123,7 +123,7 @@ class InstallUpdateAction extends Action2 {
|
|
|
123
123
|
constructor() {
|
|
124
124
|
super({
|
|
125
125
|
id: 'update.installUpdate',
|
|
126
|
-
title: ( localize2(
|
|
126
|
+
title: ( localize2(12226, 'Install Update')),
|
|
127
127
|
category: { value: product.nameShort, original: product.nameShort },
|
|
128
128
|
f1: true,
|
|
129
129
|
precondition: ( CONTEXT_UPDATE_STATE.isEqualTo(StateType.Downloaded))
|
|
@@ -137,7 +137,7 @@ class RestartToUpdateAction extends Action2 {
|
|
|
137
137
|
constructor() {
|
|
138
138
|
super({
|
|
139
139
|
id: 'update.restartToUpdate',
|
|
140
|
-
title: ( localize2(
|
|
140
|
+
title: ( localize2(12227, 'Restart to Update')),
|
|
141
141
|
category: { value: product.nameShort, original: product.nameShort },
|
|
142
142
|
f1: true,
|
|
143
143
|
precondition: ( CONTEXT_UPDATE_STATE.isEqualTo(StateType.Ready))
|
|
@@ -152,7 +152,7 @@ class DownloadAction extends Action2 {
|
|
|
152
152
|
constructor() {
|
|
153
153
|
super({
|
|
154
154
|
id: DownloadAction.ID,
|
|
155
|
-
title: ( localize2(
|
|
155
|
+
title: ( localize2(12228, "Download {0}", product.nameLong)),
|
|
156
156
|
precondition: ( ContextKeyExpr.and(IsWebContext, DOWNLOAD_URL)),
|
|
157
157
|
f1: true,
|
|
158
158
|
menu: [{
|
|
@@ -179,7 +179,7 @@ if (isWindows) {
|
|
|
179
179
|
constructor() {
|
|
180
180
|
super({
|
|
181
181
|
id: '_update.applyupdate',
|
|
182
|
-
title: ( localize2(
|
|
182
|
+
title: ( localize2(12229, 'Apply Update...')),
|
|
183
183
|
category: Categories.Developer,
|
|
184
184
|
f1: true,
|
|
185
185
|
precondition: ( CONTEXT_UPDATE_STATE.isEqualTo(StateType.Idle))
|
|
@@ -189,10 +189,10 @@ if (isWindows) {
|
|
|
189
189
|
const updateService = accessor.get(IUpdateService);
|
|
190
190
|
const fileDialogService = accessor.get(IFileDialogService);
|
|
191
191
|
const updatePath = await fileDialogService.showOpenDialog({
|
|
192
|
-
title: ( localize(
|
|
192
|
+
title: ( localize(12230, "Apply Update")),
|
|
193
193
|
filters: [{ name: 'Setup', extensions: ['exe'] }],
|
|
194
194
|
canSelectFiles: true,
|
|
195
|
-
openLabel: mnemonicButtonLabel(( localize(
|
|
195
|
+
openLabel: mnemonicButtonLabel(( localize(12231, "&&Update")))
|
|
196
196
|
});
|
|
197
197
|
if (!updatePath || !updatePath[0]) {
|
|
198
198
|
return;
|
|
@@ -54,7 +54,7 @@ async function openLatestReleaseNotesInBrowser(accessor) {
|
|
|
54
54
|
}
|
|
55
55
|
else {
|
|
56
56
|
throw ( new Error(( localize(
|
|
57
|
-
|
|
57
|
+
12232,
|
|
58
58
|
"This version of {0} does not have release notes online",
|
|
59
59
|
productService.nameLong
|
|
60
60
|
))));
|
|
@@ -115,12 +115,12 @@ let ProductContribution = class ProductContribution {
|
|
|
115
115
|
showReleaseNotesInEditor(instantiationService, productService.version, false)
|
|
116
116
|
.then(undefined, () => {
|
|
117
117
|
notificationService.prompt(Severity.Info, ( localize(
|
|
118
|
-
|
|
118
|
+
12233,
|
|
119
119
|
"Welcome to {0} v{1}! Would you like to read the Release Notes?",
|
|
120
120
|
productService.nameLong,
|
|
121
121
|
productService.version
|
|
122
122
|
)), [{
|
|
123
|
-
label: ( localize(
|
|
123
|
+
label: ( localize(12234, "Release Notes")),
|
|
124
124
|
run: () => {
|
|
125
125
|
const uri = ( URI.parse(releaseNotesUrl));
|
|
126
126
|
openerService.open(uri);
|
|
@@ -179,7 +179,7 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
179
179
|
this.notificationService.notify({
|
|
180
180
|
severity: Severity.Info,
|
|
181
181
|
message: ( localize(
|
|
182
|
-
|
|
182
|
+
12235,
|
|
183
183
|
"Updates are disabled because you are running the user-scope installation of {0} as Administrator.",
|
|
184
184
|
this.productService.nameLong
|
|
185
185
|
)),
|
|
@@ -187,7 +187,7 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
187
187
|
primary: [
|
|
188
188
|
toAction({
|
|
189
189
|
id: '',
|
|
190
|
-
label: ( localize(
|
|
190
|
+
label: ( localize(12236, "Learn More")),
|
|
191
191
|
run: () => this.openerService.open('https://aka.ms/vscode-windows-setup')
|
|
192
192
|
})
|
|
193
193
|
]
|
|
@@ -223,16 +223,16 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
223
223
|
}
|
|
224
224
|
let badge = undefined;
|
|
225
225
|
if (state.type === StateType.AvailableForDownload || state.type === StateType.Downloaded || state.type === StateType.Ready) {
|
|
226
|
-
badge = ( new NumberBadge(1, () => ( localize(
|
|
226
|
+
badge = ( new NumberBadge(1, () => ( localize(12237, "New {0} update available.", this.productService.nameShort))));
|
|
227
227
|
}
|
|
228
228
|
else if (state.type === StateType.CheckingForUpdates) {
|
|
229
|
-
badge = ( new ProgressBadge(() => ( localize(
|
|
229
|
+
badge = ( new ProgressBadge(() => ( localize(12238, "Checking for {0} updates...", this.productService.nameShort))));
|
|
230
230
|
}
|
|
231
231
|
else if (state.type === StateType.Downloading) {
|
|
232
|
-
badge = ( new ProgressBadge(() => ( localize(
|
|
232
|
+
badge = ( new ProgressBadge(() => ( localize(12239, "Downloading {0} update...", this.productService.nameShort))));
|
|
233
233
|
}
|
|
234
234
|
else if (state.type === StateType.Updating) {
|
|
235
|
-
badge = ( new ProgressBadge(() => ( localize(
|
|
235
|
+
badge = ( new ProgressBadge(() => ( localize(12240, "Updating {0}...", this.productService.nameShort))));
|
|
236
236
|
}
|
|
237
237
|
this.badgeDisposable.clear();
|
|
238
238
|
if (badge) {
|
|
@@ -248,11 +248,11 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
248
248
|
this.notificationService.notify({
|
|
249
249
|
severity: Severity.Error,
|
|
250
250
|
message: error,
|
|
251
|
-
source: ( localize(
|
|
251
|
+
source: ( localize(12241, "Update Service")),
|
|
252
252
|
});
|
|
253
253
|
}
|
|
254
254
|
onUpdateNotAvailable() {
|
|
255
|
-
this.dialogService.info(( localize(
|
|
255
|
+
this.dialogService.info(( localize(12242, "There are currently no updates available.")));
|
|
256
256
|
}
|
|
257
257
|
onUpdateAvailable(update) {
|
|
258
258
|
if (!this.shouldShowNotification()) {
|
|
@@ -262,14 +262,14 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
262
262
|
if (!productVersion) {
|
|
263
263
|
return;
|
|
264
264
|
}
|
|
265
|
-
this.notificationService.prompt(Severity.Info, ( localize(
|
|
266
|
-
label: ( localize(
|
|
265
|
+
this.notificationService.prompt(Severity.Info, ( localize(12243, "There is an available update.")), [{
|
|
266
|
+
label: ( localize(12244, "Download Update")),
|
|
267
267
|
run: () => this.updateService.downloadUpdate()
|
|
268
268
|
}, {
|
|
269
|
-
label: ( localize(
|
|
269
|
+
label: ( localize(12245, "Later")),
|
|
270
270
|
run: () => { }
|
|
271
271
|
}, {
|
|
272
|
-
label: ( localize(
|
|
272
|
+
label: ( localize(12234, "Release Notes")),
|
|
273
273
|
run: () => {
|
|
274
274
|
this.instantiationService.invokeFunction(accessor => showReleaseNotes(accessor, productVersion));
|
|
275
275
|
}
|
|
@@ -290,18 +290,18 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
290
290
|
return;
|
|
291
291
|
}
|
|
292
292
|
this.notificationService.prompt(Severity.Info, ( localize(
|
|
293
|
-
|
|
293
|
+
12246,
|
|
294
294
|
"There's an update available: {0} {1}",
|
|
295
295
|
this.productService.nameLong,
|
|
296
296
|
productVersion
|
|
297
297
|
)), [{
|
|
298
|
-
label: ( localize(
|
|
298
|
+
label: ( localize(12247, "Install Update")),
|
|
299
299
|
run: () => this.updateService.applyUpdate()
|
|
300
300
|
}, {
|
|
301
|
-
label: ( localize(
|
|
301
|
+
label: ( localize(12245, "Later")),
|
|
302
302
|
run: () => { }
|
|
303
303
|
}, {
|
|
304
|
-
label: ( localize(
|
|
304
|
+
label: ( localize(12234, "Release Notes")),
|
|
305
305
|
run: () => {
|
|
306
306
|
this.instantiationService.invokeFunction(accessor => showReleaseNotes(accessor, productVersion));
|
|
307
307
|
}
|
|
@@ -312,23 +312,23 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
312
312
|
return;
|
|
313
313
|
}
|
|
314
314
|
const actions = [{
|
|
315
|
-
label: ( localize(
|
|
315
|
+
label: ( localize(12248, "Update Now")),
|
|
316
316
|
run: () => this.updateService.quitAndInstall()
|
|
317
317
|
}, {
|
|
318
|
-
label: ( localize(
|
|
318
|
+
label: ( localize(12245, "Later")),
|
|
319
319
|
run: () => { }
|
|
320
320
|
}];
|
|
321
321
|
const productVersion = update.productVersion;
|
|
322
322
|
if (productVersion) {
|
|
323
323
|
actions.push({
|
|
324
|
-
label: ( localize(
|
|
324
|
+
label: ( localize(12234, "Release Notes")),
|
|
325
325
|
run: () => {
|
|
326
326
|
this.instantiationService.invokeFunction(accessor => showReleaseNotes(accessor, productVersion));
|
|
327
327
|
}
|
|
328
328
|
});
|
|
329
329
|
}
|
|
330
330
|
this.notificationService.prompt(Severity.Info, ( localize(
|
|
331
|
-
|
|
331
|
+
12249,
|
|
332
332
|
"Restart {0} to apply the latest update.",
|
|
333
333
|
this.productService.nameLong
|
|
334
334
|
)), actions, {
|
|
@@ -354,7 +354,7 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
354
354
|
group: '7_update',
|
|
355
355
|
command: {
|
|
356
356
|
id: 'update.check',
|
|
357
|
-
title: ( localize(
|
|
357
|
+
title: ( localize(12250, "Check for Updates..."))
|
|
358
358
|
},
|
|
359
359
|
when: ( CONTEXT_UPDATE_STATE.isEqualTo(StateType.Idle))
|
|
360
360
|
});
|
|
@@ -363,7 +363,7 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
363
363
|
group: '7_update',
|
|
364
364
|
command: {
|
|
365
365
|
id: 'update.checking',
|
|
366
|
-
title: ( localize(
|
|
366
|
+
title: ( localize(12251, "Checking for Updates...")),
|
|
367
367
|
precondition: ( ContextKeyExpr.false())
|
|
368
368
|
},
|
|
369
369
|
when: ( CONTEXT_UPDATE_STATE.isEqualTo(StateType.CheckingForUpdates))
|
|
@@ -373,7 +373,7 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
373
373
|
group: '7_update',
|
|
374
374
|
command: {
|
|
375
375
|
id: 'update.downloadNow',
|
|
376
|
-
title: ( localize(
|
|
376
|
+
title: ( localize(12252, "Download Update (1)"))
|
|
377
377
|
},
|
|
378
378
|
when: ( CONTEXT_UPDATE_STATE.isEqualTo(StateType.AvailableForDownload))
|
|
379
379
|
});
|
|
@@ -382,7 +382,7 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
382
382
|
group: '7_update',
|
|
383
383
|
command: {
|
|
384
384
|
id: 'update.downloading',
|
|
385
|
-
title: ( localize(
|
|
385
|
+
title: ( localize(12253, "Downloading Update...")),
|
|
386
386
|
precondition: ( ContextKeyExpr.false())
|
|
387
387
|
},
|
|
388
388
|
when: ( CONTEXT_UPDATE_STATE.isEqualTo(StateType.Downloading))
|
|
@@ -392,7 +392,7 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
392
392
|
group: '7_update',
|
|
393
393
|
command: {
|
|
394
394
|
id: 'update.install',
|
|
395
|
-
title: ( localize(
|
|
395
|
+
title: ( localize(12254, "Install Update... (1)"))
|
|
396
396
|
},
|
|
397
397
|
when: ( CONTEXT_UPDATE_STATE.isEqualTo(StateType.Downloaded))
|
|
398
398
|
});
|
|
@@ -401,7 +401,7 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
401
401
|
group: '7_update',
|
|
402
402
|
command: {
|
|
403
403
|
id: 'update.updating',
|
|
404
|
-
title: ( localize(
|
|
404
|
+
title: ( localize(12255, "Installing Update...")),
|
|
405
405
|
precondition: ( ContextKeyExpr.false())
|
|
406
406
|
},
|
|
407
407
|
when: ( CONTEXT_UPDATE_STATE.isEqualTo(StateType.Updating))
|
|
@@ -421,7 +421,7 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
421
421
|
order: 1,
|
|
422
422
|
command: {
|
|
423
423
|
id: 'update.showUpdateReleaseNotes',
|
|
424
|
-
title: ( localize(
|
|
424
|
+
title: ( localize(12256, "Show Update Release Notes"))
|
|
425
425
|
},
|
|
426
426
|
when: ( ContextKeyExpr.and(( CONTEXT_UPDATE_STATE.isEqualTo(StateType.Ready)), MAJOR_MINOR_UPDATE_AVAILABLE))
|
|
427
427
|
});
|
|
@@ -432,7 +432,7 @@ let UpdateContribution = class UpdateContribution extends Disposable {
|
|
|
432
432
|
order: 2,
|
|
433
433
|
command: {
|
|
434
434
|
id: 'update.restart',
|
|
435
|
-
title: ( localize(
|
|
435
|
+
title: ( localize(12257, "Restart to Update (1)"))
|
|
436
436
|
},
|
|
437
437
|
when: ( CONTEXT_UPDATE_STATE.isEqualTo(StateType.Ready))
|
|
438
438
|
});
|
|
@@ -472,7 +472,7 @@ let SwitchProductQualityContribution = class SwitchProductQualityContribution ex
|
|
|
472
472
|
constructor() {
|
|
473
473
|
super({
|
|
474
474
|
id: commandId,
|
|
475
|
-
title: isSwitchingToInsiders ? ( localize(
|
|
475
|
+
title: isSwitchingToInsiders ? ( localize(12258, "Switch to Insiders Version...")) : ( localize(12259, "Switch to Stable Version...")),
|
|
476
476
|
precondition: IsWebContext,
|
|
477
477
|
menu: {
|
|
478
478
|
id: MenuId.GlobalActivity,
|
|
@@ -506,17 +506,17 @@ let SwitchProductQualityContribution = class SwitchProductQualityContribution ex
|
|
|
506
506
|
}
|
|
507
507
|
const res = await dialogService.confirm({
|
|
508
508
|
type: 'info',
|
|
509
|
-
message: ( localize(
|
|
509
|
+
message: ( localize(12260, "Changing the version requires a reload to take effect")),
|
|
510
510
|
detail: newQuality === 'insider' ?
|
|
511
511
|
( localize(
|
|
512
|
-
|
|
512
|
+
12261,
|
|
513
513
|
"Press the reload button to switch to the Insiders version of VS Code."
|
|
514
514
|
)) :
|
|
515
515
|
( localize(
|
|
516
|
-
|
|
516
|
+
12262,
|
|
517
517
|
"Press the reload button to switch to the Stable version of VS Code."
|
|
518
518
|
)),
|
|
519
|
-
primaryButton: ( localize(
|
|
519
|
+
primaryButton: ( localize(12263, "&&Reload"))
|
|
520
520
|
});
|
|
521
521
|
if (res.confirmed) {
|
|
522
522
|
const promises = [];
|
|
@@ -543,20 +543,20 @@ let SwitchProductQualityContribution = class SwitchProductQualityContribution ex
|
|
|
543
543
|
const { result } = await dialogService.prompt({
|
|
544
544
|
type: Severity.Info,
|
|
545
545
|
message: ( localize(
|
|
546
|
-
|
|
546
|
+
12264,
|
|
547
547
|
"Choose the settings sync service to use after changing the version"
|
|
548
548
|
)),
|
|
549
549
|
detail: ( localize(
|
|
550
|
-
|
|
550
|
+
12265,
|
|
551
551
|
"The Insiders version of VS Code will synchronize your settings, keybindings, extensions, snippets and UI State using separate insiders settings sync service by default."
|
|
552
552
|
)),
|
|
553
553
|
buttons: [
|
|
554
554
|
{
|
|
555
|
-
label: ( localize(
|
|
555
|
+
label: ( localize(12266, "&&Insiders")),
|
|
556
556
|
run: () => 'insiders'
|
|
557
557
|
},
|
|
558
558
|
{
|
|
559
|
-
label: ( localize(
|
|
559
|
+
label: ( localize(12267, "&&Stable (current)")),
|
|
560
560
|
run: () => 'stable'
|
|
561
561
|
}
|
|
562
562
|
],
|