@codingame/monaco-vscode-update-service-override 11.0.0 → 11.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-update-service-override",
3
- "version": "11.0.0",
3
+ "version": "11.0.2",
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@11.0.0"
29
+ "vscode": "npm:@codingame/monaco-vscode-api@11.0.2"
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(6707, "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
- 6708,
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(6709, "Disable updates.")),
24
+ ( localize(6745, "Disable updates.")),
25
25
  ( localize(
26
- 6710,
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
- 6711,
30
+ 6747,
31
31
  "Check for updates only on startup. Disable automatic background update checks."
32
32
  )),
33
33
  ( localize(
34
- 6712,
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
- 6708,
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
- 6713,
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(6714, "Enable Background Updates on Windows")),
61
+ title: ( localize(6750, "Enable Background Updates on Windows")),
62
62
  description: ( localize(
63
- 6715,
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
- 6716,
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']
@@ -83,7 +83,7 @@ let ReleaseNotesManager = class ReleaseNotesManager {
83
83
  const base = await this.getBase(useCurrentFile);
84
84
  this._lastMeta = { text: releaseNoteText, base };
85
85
  const html = await this.renderBody(this._lastMeta);
86
- const title = ( localize(10732, "Release Notes: {0}", version));
86
+ const title = ( localize(10744, "Release Notes: {0}", version));
87
87
  const activeEditorPane = this._editorService.activeEditorPane;
88
88
  if (this._currentReleaseNotes) {
89
89
  this._currentReleaseNotes.setName(title);
@@ -132,7 +132,7 @@ let ReleaseNotesManager = class ReleaseNotesManager {
132
132
  const versionLabel = match[1].replace(/\./g, '_');
133
133
  const baseUrl = 'https://code.visualstudio.com/raw';
134
134
  const url = `${baseUrl}/v${versionLabel}.md`;
135
- const unassigned = ( localize(10733, "unassigned"));
135
+ const unassigned = ( localize(10745, "unassigned"));
136
136
  const escapeMdHtml = (text) => {
137
137
  return escape(text).replace(/\\/g, '\\\\');
138
138
  };
@@ -347,7 +347,7 @@ let ReleaseNotesManager = class ReleaseNotesManager {
347
347
 
348
348
  const label = document.createElement('label');
349
349
  label.htmlFor = 'showReleaseNotes';
350
- label.textContent = '${( localize(10734, "Show release notes after an update"))}';
350
+ label.textContent = '${( localize(10746, "Show release notes after an update"))}';
351
351
  container.appendChild(label);
352
352
 
353
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(2513, "Show Release Notes")),
31
- mnemonicTitle: ( localize(2514, "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
- 2515,
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(2516, "Open Current File as Release Notes")),
71
- mnemonicTitle: ( localize(2514, "Show &&Release Notes")),
70
+ ...( localize2(2998, "Open Current File as Release Notes")),
71
+ mnemonicTitle: ( localize(2996, "Show &&Release Notes")),
72
72
  },
73
- category: ( localize2(2517, "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(2518, "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(2519, '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(2520, '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(2521, '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(2522, '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(2523, "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(2524, '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(2525, "Apply Update")),
189
+ title: ( localize(3007, "Apply Update")),
190
190
  filters: [{ name: 'Setup', extensions: ['exe'] }],
191
191
  canSelectFiles: true,
192
- openLabel: mnemonicButtonLabel(( localize(2526, "&&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
- 6717,
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
- 6718,
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(6719, "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
- 6720,
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(6721, "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(6722, "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(6723, "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(6724, "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(6725, "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(6726, "Update Service")),
249
+ source: ( localize(6762, "Update Service")),
250
250
  });
251
251
  }
252
252
  onUpdateNotAvailable() {
253
- this.dialogService.info(( localize(6727, "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(6728, "There is an available update.")), [{
264
- label: ( localize(6729, "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(6730, "Later")),
267
+ label: ( localize(6766, "Later")),
268
268
  run: () => { }
269
269
  }, {
270
- label: ( localize(6719, "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
- 6731,
291
+ 6767,
292
292
  "There's an update available: {0} {1}",
293
293
  this.productService.nameLong,
294
294
  productVersion
295
295
  )), [{
296
- label: ( localize(6732, "Install Update")),
296
+ label: ( localize(6768, "Install Update")),
297
297
  run: () => this.updateService.applyUpdate()
298
298
  }, {
299
- label: ( localize(6730, "Later")),
299
+ label: ( localize(6766, "Later")),
300
300
  run: () => { }
301
301
  }, {
302
- label: ( localize(6719, "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(6733, "Update Now")),
313
+ label: ( localize(6769, "Update Now")),
314
314
  run: () => this.updateService.quitAndInstall()
315
315
  }, {
316
- label: ( localize(6730, "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(6719, "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
- 6734,
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(6735, "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(6723, "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(6736, "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(6737, "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(6738, "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(6739, "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(6740, "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(6741, "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(6742, "Switch to Insiders Version...")) : ( localize(6743, "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(6744, "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
- 6745,
510
+ 6781,
511
511
  "Press the reload button to switch to the Insiders version of VS Code."
512
512
  )) :
513
513
  ( localize(
514
- 6746,
514
+ 6782,
515
515
  "Press the reload button to switch to the Stable version of VS Code."
516
516
  )),
517
- primaryButton: ( localize(6747, "&&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(6748, "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
- 6749,
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(6750, "&&Insiders")),
550
+ label: ( localize(6786, "&&Insiders")),
551
551
  run: () => 'insiders'
552
552
  },
553
553
  {
554
- label: ( localize(6751, "&&Stable (current)")),
554
+ label: ( localize(6787, "&&Stable (current)")),
555
555
  run: () => 'stable'
556
556
  }
557
557
  ],