@codingame/monaco-vscode-update-service-override 10.1.4 → 11.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-update-service-override",
3
- "version": "10.1.4",
3
+ "version": "11.0.1",
4
4
  "keywords": [],
5
5
  "author": {
6
6
  "name": "CodinGame",
@@ -26,6 +26,6 @@
26
26
  }
27
27
  },
28
28
  "dependencies": {
29
- "vscode": "npm:@codingame/monaco-vscode-api@10.1.4"
29
+ "vscode": "npm:@codingame/monaco-vscode-api@11.0.1"
30
30
  }
31
31
  }
@@ -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(6704, "Update")),
10
+ title: ( localize(6743, "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: 1 ,
18
18
  description: ( localize(
19
- 6705,
19
+ 6744,
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(6706, "Disable updates.")),
24
+ ( localize(6745, "Disable updates.")),
25
25
  ( localize(
26
- 6707,
26
+ 6746,
27
27
  "Disable automatic background update checks. Updates will be available if you manually check for updates."
28
28
  )),
29
29
  ( localize(
30
- 6708,
30
+ 6747,
31
31
  "Check for updates only on startup. Disable automatic background update checks."
32
32
  )),
33
33
  ( localize(
34
- 6709,
34
+ 6748,
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: 1 ,
47
47
  description: ( localize(
48
- 6705,
48
+ 6744,
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
- 6710,
52
+ 6749,
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: 1 ,
61
- title: ( localize(6711, "Enable Background Updates on Windows")),
61
+ title: ( localize(6750, "Enable Background Updates on Windows")),
62
62
  description: ( localize(
63
- 6712,
63
+ 6751,
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: 1 ,
72
72
  description: ( localize(
73
- 6713,
73
+ 6752,
74
74
  "Show Release Notes after an update. The Release Notes are fetched from a Microsoft online service."
75
75
  )),
76
76
  tags: ['usesOnlineServices']
@@ -107,12 +107,12 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
107
107
  }
108
108
  viewInSettingsMessage(settingId, alreadyDisplayed) {
109
109
  if (alreadyDisplayed) {
110
- return ( localize(11574, "View in Settings"));
110
+ return ( localize(11694, "View in Settings"));
111
111
  }
112
112
  else {
113
113
  const displayName = settingKeyToDisplayFormat(settingId);
114
114
  return ( localize(
115
- 11575,
115
+ 11695,
116
116
  "View \"{0}: {1}\" in Settings",
117
117
  displayName.category,
118
118
  displayName.label
@@ -122,33 +122,56 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
122
122
  restorePreviousSettingMessage(settingId) {
123
123
  const displayName = settingKeyToDisplayFormat(settingId);
124
124
  return ( localize(
125
- 11576,
125
+ 11696,
126
126
  "Restore value of \"{0}: {1}\"",
127
127
  displayName.category,
128
128
  displayName.label
129
129
  ));
130
130
  }
131
- booleanSettingMessage(setting, booleanValue) {
131
+ isAlreadySet(setting, value) {
132
132
  const currentValue = this._configurationService.getValue(setting.key);
133
- if (currentValue === booleanValue || (currentValue === undefined && setting.value === booleanValue)) {
134
- return undefined;
135
- }
133
+ return (currentValue === value || (currentValue === undefined && setting.value === value));
134
+ }
135
+ booleanSettingMessage(setting, booleanValue) {
136
136
  const displayName = settingKeyToDisplayFormat(setting.key);
137
+ if (this.isAlreadySet(setting, booleanValue)) {
138
+ if (booleanValue) {
139
+ return ( localize(
140
+ 11697,
141
+ "\"{0}: {1}\" is already enabled",
142
+ displayName.category,
143
+ displayName.label
144
+ ));
145
+ }
146
+ else {
147
+ return ( localize(
148
+ 11698,
149
+ "\"{0}: {1}\" is already disabled",
150
+ displayName.category,
151
+ displayName.label
152
+ ));
153
+ }
154
+ }
137
155
  if (booleanValue) {
138
- return ( localize(11577, "Enable \"{0}: {1}\"", displayName.category, displayName.label));
156
+ return ( localize(11699, "Enable \"{0}: {1}\"", displayName.category, displayName.label));
139
157
  }
140
158
  else {
141
- return ( localize(11578, "Disable \"{0}: {1}\"", displayName.category, displayName.label));
159
+ return ( localize(11700, "Disable \"{0}: {1}\"", displayName.category, displayName.label));
142
160
  }
143
161
  }
144
162
  stringSettingMessage(setting, stringValue) {
145
- const currentValue = this._configurationService.getValue(setting.key);
146
- if (currentValue === stringValue || (currentValue === undefined && setting.value === stringValue)) {
147
- return undefined;
148
- }
149
163
  const displayName = settingKeyToDisplayFormat(setting.key);
164
+ if (this.isAlreadySet(setting, stringValue)) {
165
+ return ( localize(
166
+ 11701,
167
+ "\"{0}: {1}\" is already set to \"{2}\"",
168
+ displayName.category,
169
+ displayName.label,
170
+ stringValue
171
+ ));
172
+ }
150
173
  return ( localize(
151
- 11579,
174
+ 11702,
152
175
  "Set \"{0}: {1}\" to \"{2}\"",
153
176
  displayName.category,
154
177
  displayName.label,
@@ -156,13 +179,18 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
156
179
  ));
157
180
  }
158
181
  numberSettingMessage(setting, numberValue) {
159
- const currentValue = this._configurationService.getValue(setting.key);
160
- if (currentValue === numberValue || (currentValue === undefined && setting.value === numberValue)) {
161
- return undefined;
162
- }
163
182
  const displayName = settingKeyToDisplayFormat(setting.key);
183
+ if (this.isAlreadySet(setting, numberValue)) {
184
+ return ( localize(
185
+ 11703,
186
+ "\"{0}: {1}\" is already set to {2}",
187
+ displayName.category,
188
+ displayName.label,
189
+ numberValue
190
+ ));
191
+ }
164
192
  return ( localize(
165
- 11580,
193
+ 11704,
166
194
  "Set \"{0}: {1}\" to {2}",
167
195
  displayName.category,
168
196
  displayName.label,
@@ -171,7 +199,7 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
171
199
  }
172
200
  renderSetting(setting, newValue) {
173
201
  const href = this.settingToUriString(setting.key, newValue);
174
- const title = ( localize(11581, "View or change setting"));
202
+ const title = ( localize(11705, "View or change setting"));
175
203
  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>
176
204
  <span class="separator"></span>
177
205
  <span class="setting-name">${setting.key}</span>
@@ -226,7 +254,7 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
226
254
  actions.push({
227
255
  class: undefined,
228
256
  id: 'trySetting',
229
- enabled: currentSettingValue !== newSettingValue,
257
+ enabled: !this.isAlreadySet(setting, newSettingValue),
230
258
  tooltip: trySettingMessage,
231
259
  label: trySettingMessage,
232
260
  run: () => {
@@ -250,8 +278,8 @@ let SimpleSettingRenderer = class SimpleSettingRenderer {
250
278
  class: undefined,
251
279
  enabled: true,
252
280
  id: 'copySettingId',
253
- tooltip: ( localize(11582, "Copy Setting ID")),
254
- label: ( localize(11582, "Copy Setting ID")),
281
+ tooltip: ( localize(11706, "Copy Setting ID")),
282
+ label: ( localize(11706, "Copy Setting ID")),
255
283
  run: () => {
256
284
  this._clipboardService.writeText(settingId);
257
285
  }
@@ -30,6 +30,8 @@ import { SimpleSettingRenderer } from '../../markdown/browser/markdownSettingRen
30
30
  import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
31
31
  import { Schemas } from 'vscode/vscode/vs/base/common/network';
32
32
  import { ICodeEditorService } from 'vscode/vscode/vs/editor/browser/services/codeEditorService';
33
+ import { dirname } from 'vscode/vscode/vs/base/common/resources';
34
+ import { asWebviewUri } from 'vscode/vscode/vs/workbench/contrib/webview/common/webview';
33
35
 
34
36
  let ReleaseNotesManager = class ReleaseNotesManager {
35
37
  constructor(_environmentService, _keybindingService, _languageService, _openerService, _requestService, _configurationService, _editorService, _editorGroupService, _codeEditorService, _webviewWorkbenchService, _extensionService, _productService, _instantiationService) {
@@ -57,19 +59,31 @@ let ReleaseNotesManager = class ReleaseNotesManager {
57
59
  this._simpleSettingRenderer = this._instantiationService.createInstance(SimpleSettingRenderer);
58
60
  }
59
61
  async updateHtml() {
60
- if (!this._currentReleaseNotes || !this._lastText) {
62
+ if (!this._currentReleaseNotes || !this._lastMeta) {
61
63
  return;
62
64
  }
63
- const html = await this.renderBody(this._lastText);
65
+ const html = await this.renderBody(this._lastMeta);
64
66
  if (this._currentReleaseNotes) {
65
67
  this._currentReleaseNotes.webview.setHtml(html);
66
68
  }
67
69
  }
70
+ async getBase(useCurrentFile) {
71
+ if (useCurrentFile) {
72
+ const currentFileUri = this._codeEditorService.getActiveCodeEditor()?.getModel()?.uri;
73
+ if (currentFileUri) {
74
+ return dirname(currentFileUri);
75
+ }
76
+ }
77
+ return (
78
+ (URI.parse('https://code.visualstudio.com/raw'))
79
+ );
80
+ }
68
81
  async show(version, useCurrentFile) {
69
82
  const releaseNoteText = await this.loadReleaseNotes(version, useCurrentFile);
70
- this._lastText = releaseNoteText;
71
- const html = await this.renderBody(releaseNoteText);
72
- const title = ( localize(10663, "Release Notes: {0}", version));
83
+ const base = await this.getBase(useCurrentFile);
84
+ this._lastMeta = { text: releaseNoteText, base };
85
+ const html = await this.renderBody(this._lastMeta);
86
+ const title = ( localize(10744, "Release Notes: {0}", version));
73
87
  const activeEditorPane = this._editorService.activeEditorPane;
74
88
  if (this._currentReleaseNotes) {
75
89
  this._currentReleaseNotes.setName(title);
@@ -82,10 +96,10 @@ let ReleaseNotesManager = class ReleaseNotesManager {
82
96
  options: {
83
97
  tryRestoreScrollPosition: true,
84
98
  enableFindWidget: true,
85
- disableServiceWorker: true,
99
+ disableServiceWorker: useCurrentFile ? false : true,
86
100
  },
87
101
  contentOptions: {
88
- localResourceRoots: [],
102
+ localResourceRoots: useCurrentFile ? [base] : [],
89
103
  allowScripts: true
90
104
  },
91
105
  extension: undefined
@@ -118,7 +132,7 @@ let ReleaseNotesManager = class ReleaseNotesManager {
118
132
  const versionLabel = match[1].replace(/\./g, '_');
119
133
  const baseUrl = 'https://code.visualstudio.com/raw';
120
134
  const url = `${baseUrl}/v${versionLabel}.md`;
121
- const unassigned = ( localize(10664, "unassigned"));
135
+ const unassigned = ( localize(10745, "unassigned"));
122
136
  const escapeMdHtml = (text) => {
123
137
  return escape(text).replace(/\\/g, '\\\\');
124
138
  };
@@ -206,9 +220,9 @@ let ReleaseNotesManager = class ReleaseNotesManager {
206
220
  }
207
221
  return uri;
208
222
  }
209
- async renderBody(text) {
223
+ async renderBody(fileContent) {
210
224
  const nonce = generateUuid();
211
- const content = await renderMarkdownDocument(text, this._extensionService, this._languageService, {
225
+ const content = await renderMarkdownDocument(fileContent.text, this._extensionService, this._languageService, {
212
226
  shouldSanitize: false,
213
227
  markedExtensions: [{
214
228
  renderer: {
@@ -223,7 +237,7 @@ let ReleaseNotesManager = class ReleaseNotesManager {
223
237
  return `<!DOCTYPE html>
224
238
  <html>
225
239
  <head>
226
- <base href="https://code.visualstudio.com/raw/">
240
+ <base href="${( (asWebviewUri(fileContent.base).toString(true)))}/" >
227
241
  <meta http-equiv="Content-type" content="text/html;charset=UTF-8">
228
242
  <meta http-equiv="Content-Security-Policy" content="default-src 'none'; img-src https: data:; media-src https:; style-src 'nonce-${nonce}' https://code.visualstudio.com; script-src 'nonce-${nonce}';">
229
243
  <style nonce="${nonce}">
@@ -333,7 +347,7 @@ let ReleaseNotesManager = class ReleaseNotesManager {
333
347
 
334
348
  const label = document.createElement('label');
335
349
  label.htmlFor = 'showReleaseNotes';
336
- label.textContent = '${( localize(10665, "Show release notes after an update"))}';
350
+ label.textContent = '${( localize(10746, "Show release notes after an update"))}';
337
351
  container.appendChild(label);
338
352
 
339
353
  const beforeElement = document.querySelector("body > h1")?.nextElementSibling;
@@ -27,8 +27,8 @@ class ShowCurrentReleaseNotesAction extends Action2 {
27
27
  super({
28
28
  id: ShowCurrentReleaseNotesActionId,
29
29
  title: {
30
- ...( localize2(2993, "Show Release Notes")),
31
- mnemonicTitle: ( localize(2994, "Show &&Release Notes")),
30
+ ...( localize2(2995, "Show Release Notes")),
31
+ mnemonicTitle: ( localize(2996, "Show &&Release Notes")),
32
32
  },
33
33
  category: { value: product$1.nameShort, original: product$1.nameShort },
34
34
  f1: true,
@@ -54,7 +54,7 @@ class ShowCurrentReleaseNotesAction extends Action2 {
54
54
  }
55
55
  else {
56
56
  throw ( (new Error(localize(
57
- 2995,
57
+ 2997,
58
58
  "This version of {0} does not have release notes online",
59
59
  productService.nameLong
60
60
  ))));
@@ -67,10 +67,10 @@ class ShowCurrentReleaseNotesFromCurrentFileAction extends Action2 {
67
67
  super({
68
68
  id: ShowCurrentReleaseNotesFromCurrentFileActionId,
69
69
  title: {
70
- ...( localize2(2996, "Open Current File as Release Notes")),
71
- mnemonicTitle: ( localize(2994, "Show &&Release Notes")),
70
+ ...( localize2(2998, "Open Current File as Release Notes")),
71
+ mnemonicTitle: ( localize(2996, "Show &&Release Notes")),
72
72
  },
73
- category: ( localize2(2997, "Developer")),
73
+ category: ( localize2(2999, "Developer")),
74
74
  f1: true,
75
75
  });
76
76
  }
@@ -81,7 +81,7 @@ class ShowCurrentReleaseNotesFromCurrentFileAction extends Action2 {
81
81
  await showReleaseNotesInEditor(instantiationService, productService.version, true);
82
82
  }
83
83
  catch (err) {
84
- throw ( (new Error(localize(2998, "Cannot open the current file as Release Notes"))));
84
+ throw ( (new Error(localize(3000, "Cannot open the current file as Release Notes"))));
85
85
  }
86
86
  }
87
87
  }
@@ -91,7 +91,7 @@ class CheckForUpdateAction extends Action2 {
91
91
  constructor() {
92
92
  super({
93
93
  id: 'update.checkForUpdate',
94
- title: ( localize2(2999, 'Check for Updates...')),
94
+ title: ( localize2(3001, 'Check for Updates...')),
95
95
  category: { value: product$1.nameShort, original: product$1.nameShort },
96
96
  f1: true,
97
97
  precondition: ( (CONTEXT_UPDATE_STATE.isEqualTo("idle" ))),
@@ -106,7 +106,7 @@ class DownloadUpdateAction extends Action2 {
106
106
  constructor() {
107
107
  super({
108
108
  id: 'update.downloadUpdate',
109
- title: ( localize2(3000, 'Download Update')),
109
+ title: ( localize2(3002, 'Download Update')),
110
110
  category: { value: product$1.nameShort, original: product$1.nameShort },
111
111
  f1: true,
112
112
  precondition: ( (CONTEXT_UPDATE_STATE.isEqualTo("available for download" )))
@@ -120,7 +120,7 @@ class InstallUpdateAction extends Action2 {
120
120
  constructor() {
121
121
  super({
122
122
  id: 'update.installUpdate',
123
- title: ( localize2(3001, 'Install Update')),
123
+ title: ( localize2(3003, 'Install Update')),
124
124
  category: { value: product$1.nameShort, original: product$1.nameShort },
125
125
  f1: true,
126
126
  precondition: ( (CONTEXT_UPDATE_STATE.isEqualTo("downloaded" )))
@@ -134,7 +134,7 @@ class RestartToUpdateAction extends Action2 {
134
134
  constructor() {
135
135
  super({
136
136
  id: 'update.restartToUpdate',
137
- title: ( localize2(3002, 'Restart to Update')),
137
+ title: ( localize2(3004, 'Restart to Update')),
138
138
  category: { value: product$1.nameShort, original: product$1.nameShort },
139
139
  f1: true,
140
140
  precondition: ( (CONTEXT_UPDATE_STATE.isEqualTo("ready" )))
@@ -149,7 +149,7 @@ class DownloadAction extends Action2 {
149
149
  constructor() {
150
150
  super({
151
151
  id: DownloadAction.ID,
152
- title: ( localize2(3003, "Download {0}", product$1.nameLong)),
152
+ title: ( localize2(3005, "Download {0}", product$1.nameLong)),
153
153
  precondition: ( (ContextKeyExpr.and(IsWebContext, DOWNLOAD_URL))),
154
154
  f1: true,
155
155
  menu: [{
@@ -176,7 +176,7 @@ if (isWindows) {
176
176
  constructor() {
177
177
  super({
178
178
  id: '_update.applyupdate',
179
- title: ( localize2(3004, 'Apply Update...')),
179
+ title: ( localize2(3006, 'Apply Update...')),
180
180
  category: Categories.Developer,
181
181
  f1: true,
182
182
  precondition: ( (CONTEXT_UPDATE_STATE.isEqualTo("idle" )))
@@ -186,10 +186,10 @@ if (isWindows) {
186
186
  const updateService = accessor.get(IUpdateService);
187
187
  const fileDialogService = accessor.get(IFileDialogService);
188
188
  const updatePath = await fileDialogService.showOpenDialog({
189
- title: ( localize(3005, "Apply Update")),
189
+ title: ( localize(3007, "Apply Update")),
190
190
  filters: [{ name: 'Setup', extensions: ['exe'] }],
191
191
  canSelectFiles: true,
192
- openLabel: mnemonicButtonLabel(( localize(3006, "&&Update")))
192
+ openLabel: mnemonicButtonLabel(( localize(3008, "&&Update")))
193
193
  });
194
194
  if (!updatePath || !updatePath[0]) {
195
195
  return;
@@ -50,7 +50,7 @@ async function openLatestReleaseNotesInBrowser(accessor) {
50
50
  }
51
51
  else {
52
52
  throw ( (new Error(localize(
53
- 6714,
53
+ 6753,
54
54
  "This version of {0} does not have release notes online",
55
55
  productService.nameLong
56
56
  ))));
@@ -111,12 +111,12 @@ let ProductContribution = class ProductContribution {
111
111
  showReleaseNotesInEditor(instantiationService, productService.version, false)
112
112
  .then(undefined, () => {
113
113
  notificationService.prompt(Severity$1.Info, ( localize(
114
- 6715,
114
+ 6754,
115
115
  "Welcome to {0} v{1}! Would you like to read the Release Notes?",
116
116
  productService.nameLong,
117
117
  productService.version
118
118
  )), [{
119
- label: ( localize(6716, "Release Notes")),
119
+ label: ( localize(6755, "Release Notes")),
120
120
  run: () => {
121
121
  const uri = ( (URI.parse(releaseNotesUrl)));
122
122
  openerService.open(uri);
@@ -175,13 +175,13 @@ let UpdateContribution = class UpdateContribution extends Disposable {
175
175
  this.notificationService.notify({
176
176
  severity: Severity$1.Info,
177
177
  message: ( localize(
178
- 6717,
178
+ 6756,
179
179
  "Updates are disabled because you are running the user-scope installation of {0} as Administrator.",
180
180
  this.productService.nameLong
181
181
  )),
182
182
  actions: {
183
183
  primary: [
184
- ( (new Action('', ( localize(6718, "Learn More")), undefined, undefined, () => {
184
+ ( (new Action('', ( localize(6757, "Learn More")), undefined, undefined, () => {
185
185
  this.openerService.open('https://aka.ms/vscode-windows-setup');
186
186
  })))
187
187
  ]
@@ -218,18 +218,18 @@ let UpdateContribution = class UpdateContribution extends Disposable {
218
218
  let badge = undefined;
219
219
  let priority = undefined;
220
220
  if (state.type === "available for download" || state.type === "downloaded" || state.type === "ready" ) {
221
- badge = ( (new NumberBadge(1, () => ( localize(6719, "New {0} update available.", this.productService.nameShort)))));
221
+ badge = ( (new NumberBadge(1, () => ( localize(6758, "New {0} update available.", this.productService.nameShort)))));
222
222
  }
223
223
  else if (state.type === "checking for updates" ) {
224
- badge = ( (new ProgressBadge(() => ( localize(6720, "Checking for Updates...")))));
224
+ badge = ( (new ProgressBadge(() => ( localize(6759, "Checking for Updates...")))));
225
225
  priority = 1;
226
226
  }
227
227
  else if (state.type === "downloading" ) {
228
- badge = ( (new ProgressBadge(() => ( localize(6721, "Downloading...")))));
228
+ badge = ( (new ProgressBadge(() => ( localize(6760, "Downloading...")))));
229
229
  priority = 1;
230
230
  }
231
231
  else if (state.type === "updating" ) {
232
- badge = ( (new ProgressBadge(() => ( localize(6722, "Updating...")))));
232
+ badge = ( (new ProgressBadge(() => ( localize(6761, "Updating...")))));
233
233
  priority = 1;
234
234
  }
235
235
  this.badgeDisposable.clear();
@@ -246,11 +246,11 @@ let UpdateContribution = class UpdateContribution extends Disposable {
246
246
  this.notificationService.notify({
247
247
  severity: Severity$1.Error,
248
248
  message: error,
249
- source: ( localize(6723, "Update Service")),
249
+ source: ( localize(6762, "Update Service")),
250
250
  });
251
251
  }
252
252
  onUpdateNotAvailable() {
253
- this.dialogService.info(( localize(6724, "There are currently no updates available.")));
253
+ this.dialogService.info(( localize(6763, "There are currently no updates available.")));
254
254
  }
255
255
  onUpdateAvailable(update) {
256
256
  if (!this.shouldShowNotification()) {
@@ -260,14 +260,14 @@ let UpdateContribution = class UpdateContribution extends Disposable {
260
260
  if (!productVersion) {
261
261
  return;
262
262
  }
263
- this.notificationService.prompt(Severity$1.Info, ( localize(6725, "There is an available update.")), [{
264
- label: ( localize(6726, "Download Update")),
263
+ this.notificationService.prompt(Severity$1.Info, ( localize(6764, "There is an available update.")), [{
264
+ label: ( localize(6765, "Download Update")),
265
265
  run: () => this.updateService.downloadUpdate()
266
266
  }, {
267
- label: ( localize(6727, "Later")),
267
+ label: ( localize(6766, "Later")),
268
268
  run: () => { }
269
269
  }, {
270
- label: ( localize(6716, "Release Notes")),
270
+ label: ( localize(6755, "Release Notes")),
271
271
  run: () => {
272
272
  this.instantiationService.invokeFunction(accessor => showReleaseNotes(accessor, productVersion));
273
273
  }
@@ -288,18 +288,18 @@ let UpdateContribution = class UpdateContribution extends Disposable {
288
288
  return;
289
289
  }
290
290
  this.notificationService.prompt(Severity$1.Info, ( localize(
291
- 6728,
291
+ 6767,
292
292
  "There's an update available: {0} {1}",
293
293
  this.productService.nameLong,
294
294
  productVersion
295
295
  )), [{
296
- label: ( localize(6729, "Install Update")),
296
+ label: ( localize(6768, "Install Update")),
297
297
  run: () => this.updateService.applyUpdate()
298
298
  }, {
299
- label: ( localize(6727, "Later")),
299
+ label: ( localize(6766, "Later")),
300
300
  run: () => { }
301
301
  }, {
302
- label: ( localize(6716, "Release Notes")),
302
+ label: ( localize(6755, "Release Notes")),
303
303
  run: () => {
304
304
  this.instantiationService.invokeFunction(accessor => showReleaseNotes(accessor, productVersion));
305
305
  }
@@ -310,23 +310,23 @@ let UpdateContribution = class UpdateContribution extends Disposable {
310
310
  return;
311
311
  }
312
312
  const actions = [{
313
- label: ( localize(6730, "Update Now")),
313
+ label: ( localize(6769, "Update Now")),
314
314
  run: () => this.updateService.quitAndInstall()
315
315
  }, {
316
- label: ( localize(6727, "Later")),
316
+ label: ( localize(6766, "Later")),
317
317
  run: () => { }
318
318
  }];
319
319
  const productVersion = update.productVersion;
320
320
  if (productVersion) {
321
321
  actions.push({
322
- label: ( localize(6716, "Release Notes")),
322
+ label: ( localize(6755, "Release Notes")),
323
323
  run: () => {
324
324
  this.instantiationService.invokeFunction(accessor => showReleaseNotes(accessor, productVersion));
325
325
  }
326
326
  });
327
327
  }
328
328
  this.notificationService.prompt(Severity$1.Info, ( localize(
329
- 6731,
329
+ 6770,
330
330
  "Restart {0} to apply the latest update.",
331
331
  this.productService.nameLong
332
332
  )), actions, { sticky: true });
@@ -349,7 +349,7 @@ let UpdateContribution = class UpdateContribution extends Disposable {
349
349
  group: '7_update',
350
350
  command: {
351
351
  id: 'update.check',
352
- title: ( localize(6732, "Check for Updates..."))
352
+ title: ( localize(6771, "Check for Updates..."))
353
353
  },
354
354
  when: ( (CONTEXT_UPDATE_STATE.isEqualTo("idle" )))
355
355
  });
@@ -358,7 +358,7 @@ let UpdateContribution = class UpdateContribution extends Disposable {
358
358
  group: '7_update',
359
359
  command: {
360
360
  id: 'update.checking',
361
- title: ( localize(6720, "Checking for Updates...")),
361
+ title: ( localize(6759, "Checking for Updates...")),
362
362
  precondition: ( (ContextKeyExpr.false()))
363
363
  },
364
364
  when: ( (CONTEXT_UPDATE_STATE.isEqualTo("checking for updates" )))
@@ -368,7 +368,7 @@ let UpdateContribution = class UpdateContribution extends Disposable {
368
368
  group: '7_update',
369
369
  command: {
370
370
  id: 'update.downloadNow',
371
- title: ( localize(6733, "Download Update (1)"))
371
+ title: ( localize(6772, "Download Update (1)"))
372
372
  },
373
373
  when: ( (CONTEXT_UPDATE_STATE.isEqualTo("available for download" )))
374
374
  });
@@ -377,7 +377,7 @@ let UpdateContribution = class UpdateContribution extends Disposable {
377
377
  group: '7_update',
378
378
  command: {
379
379
  id: 'update.downloading',
380
- title: ( localize(6734, "Downloading Update...")),
380
+ title: ( localize(6773, "Downloading Update...")),
381
381
  precondition: ( (ContextKeyExpr.false()))
382
382
  },
383
383
  when: ( (CONTEXT_UPDATE_STATE.isEqualTo("downloading" )))
@@ -387,7 +387,7 @@ let UpdateContribution = class UpdateContribution extends Disposable {
387
387
  group: '7_update',
388
388
  command: {
389
389
  id: 'update.install',
390
- title: ( localize(6735, "Install Update... (1)"))
390
+ title: ( localize(6774, "Install Update... (1)"))
391
391
  },
392
392
  when: ( (CONTEXT_UPDATE_STATE.isEqualTo("downloaded" )))
393
393
  });
@@ -396,7 +396,7 @@ let UpdateContribution = class UpdateContribution extends Disposable {
396
396
  group: '7_update',
397
397
  command: {
398
398
  id: 'update.updating',
399
- title: ( localize(6736, "Installing Update...")),
399
+ title: ( localize(6775, "Installing Update...")),
400
400
  precondition: ( (ContextKeyExpr.false()))
401
401
  },
402
402
  when: ( (CONTEXT_UPDATE_STATE.isEqualTo("updating" )))
@@ -416,7 +416,7 @@ let UpdateContribution = class UpdateContribution extends Disposable {
416
416
  order: 1,
417
417
  command: {
418
418
  id: 'update.showUpdateReleaseNotes',
419
- title: ( localize(6737, "Show Update Release Notes"))
419
+ title: ( localize(6776, "Show Update Release Notes"))
420
420
  },
421
421
  when: ( (ContextKeyExpr.and(
422
422
  (CONTEXT_UPDATE_STATE.isEqualTo("ready" )),
@@ -430,7 +430,7 @@ let UpdateContribution = class UpdateContribution extends Disposable {
430
430
  order: 2,
431
431
  command: {
432
432
  id: 'update.restart',
433
- title: ( localize(6738, "Restart to Update (1)"))
433
+ title: ( localize(6777, "Restart to Update (1)"))
434
434
  },
435
435
  when: ( (CONTEXT_UPDATE_STATE.isEqualTo("ready" )))
436
436
  });
@@ -470,7 +470,7 @@ let SwitchProductQualityContribution = class SwitchProductQualityContribution ex
470
470
  constructor() {
471
471
  super({
472
472
  id: commandId,
473
- title: isSwitchingToInsiders ? ( localize(6739, "Switch to Insiders Version...")) : ( localize(6740, "Switch to Stable Version...")),
473
+ title: isSwitchingToInsiders ? ( localize(6778, "Switch to Insiders Version...")) : ( localize(6779, "Switch to Stable Version...")),
474
474
  precondition: IsWebContext,
475
475
  menu: {
476
476
  id: MenuId.GlobalActivity,
@@ -504,17 +504,17 @@ let SwitchProductQualityContribution = class SwitchProductQualityContribution ex
504
504
  }
505
505
  const res = await dialogService.confirm({
506
506
  type: 'info',
507
- message: ( localize(6741, "Changing the version requires a reload to take effect")),
507
+ message: ( localize(6780, "Changing the version requires a reload to take effect")),
508
508
  detail: newQuality === 'insider' ?
509
509
  ( localize(
510
- 6742,
510
+ 6781,
511
511
  "Press the reload button to switch to the Insiders version of VS Code."
512
512
  )) :
513
513
  ( localize(
514
- 6743,
514
+ 6782,
515
515
  "Press the reload button to switch to the Stable version of VS Code."
516
516
  )),
517
- primaryButton: ( localize(6744, "&&Reload"))
517
+ primaryButton: ( localize(6783, "&&Reload"))
518
518
  });
519
519
  if (res.confirmed) {
520
520
  const promises = [];
@@ -540,18 +540,18 @@ let SwitchProductQualityContribution = class SwitchProductQualityContribution ex
540
540
  async selectSettingsSyncService(dialogService) {
541
541
  const { result } = await dialogService.prompt({
542
542
  type: Severity$1.Info,
543
- message: ( localize(6745, "Choose the settings sync service to use after changing the version")),
543
+ message: ( localize(6784, "Choose the settings sync service to use after changing the version")),
544
544
  detail: ( localize(
545
- 6746,
545
+ 6785,
546
546
  "The Insiders version of VS Code will synchronize your settings, keybindings, extensions, snippets and UI State using separate insiders settings sync service by default."
547
547
  )),
548
548
  buttons: [
549
549
  {
550
- label: ( localize(6747, "&&Insiders")),
550
+ label: ( localize(6786, "&&Insiders")),
551
551
  run: () => 'insiders'
552
552
  },
553
553
  {
554
- label: ( localize(6748, "&&Stable (current)")),
554
+ label: ( localize(6787, "&&Stable (current)")),
555
555
  run: () => 'stable'
556
556
  }
557
557
  ],