@codingame/monaco-vscode-update-service-override 13.1.3 → 13.1.5

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": "13.1.3",
3
+ "version": "13.1.5",
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": "13.1.3",
19
- "@codingame/monaco-vscode-411e0589-fa79-504b-b32c-80a88847b23a-common": "13.1.3",
20
- "@codingame/monaco-vscode-5e324391-11e3-5ceb-93ee-938e4098e4ad-common": "13.1.3",
21
- "@codingame/monaco-vscode-a7c9ae3c-16d2-5d17-86b2-981be7094566-common": "13.1.3",
22
- "@codingame/monaco-vscode-api": "13.1.3",
23
- "@codingame/monaco-vscode-c3b3387c-7bce-5b8f-9e14-bebeb636f1c8-common": "13.1.3"
18
+ "@codingame/monaco-vscode-2a22c7b4-b906-5914-8cd1-3ed912fb738f-common": "13.1.5",
19
+ "@codingame/monaco-vscode-411e0589-fa79-504b-b32c-80a88847b23a-common": "13.1.5",
20
+ "@codingame/monaco-vscode-5e324391-11e3-5ceb-93ee-938e4098e4ad-common": "13.1.5",
21
+ "@codingame/monaco-vscode-a7c9ae3c-16d2-5d17-86b2-981be7094566-common": "13.1.5",
22
+ "@codingame/monaco-vscode-api": "13.1.5",
23
+ "@codingame/monaco-vscode-c3b3387c-7bce-5b8f-9e14-bebeb636f1c8-common": "13.1.5"
24
24
  },
25
25
  "main": "index.js",
26
26
  "module": "index.js",
@@ -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(10430, "Release Notes: {0}", version));
86
+ const title = ( localize(10428, "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(10431, "unassigned"));
135
+ const unassigned = ( localize(10429, "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(10432, "Show release notes after an update"))}';
350
+ label.textContent = '${( localize(10430, "Show release notes after an update"))}';
351
351
  container.appendChild(label);
352
352
 
353
353
  const beforeElement = document.querySelector("body > h1")?.nextElementSibling;
@@ -1,6 +1,6 @@
1
1
 
2
2
  import '../../../../platform/update/common/update.config.contribution.js';
3
- import { localize2, localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
3
+ import { localize, localize2 } from '@codingame/monaco-vscode-api/vscode/vs/nls';
4
4
  import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
5
5
  import { Extensions } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
6
6
  import { Categories } from '@codingame/monaco-vscode-api/vscode/vs/platform/action/common/actionCommonCategories';
@@ -30,8 +30,8 @@ class ShowCurrentReleaseNotesAction extends Action2 {
30
30
  super({
31
31
  id: ShowCurrentReleaseNotesActionId,
32
32
  title: {
33
- ...( localize2(10433, "Show Release Notes")),
34
- mnemonicTitle: ( localize(10434, "Show &&Release Notes")),
33
+ ...( localize2(10431, "Show Release Notes")),
34
+ mnemonicTitle: ( localize(10432, "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
- 10435,
60
+ 10433,
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(10436, "Open Current File as Release Notes")),
74
- mnemonicTitle: ( localize(10434, "Show &&Release Notes")),
73
+ ...( localize2(10434, "Open Current File as Release Notes")),
74
+ mnemonicTitle: ( localize(10432, "Show &&Release Notes")),
75
75
  },
76
- category: ( localize2(10437, "Developer")),
76
+ category: ( localize2(10435, "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(10438, "Cannot open the current file as Release Notes"))));
87
+ throw ( new Error(( localize(10436, "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(10439, 'Check for Updates...')),
97
+ title: ( localize2(10437, '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(10440, 'Download Update')),
112
+ title: ( localize2(10438, '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(10441, 'Install Update')),
126
+ title: ( localize2(10439, '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(10442, 'Restart to Update')),
140
+ title: ( localize2(10440, '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(10443, "Download {0}", product.nameLong)),
155
+ title: ( localize2(10441, "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(10444, 'Apply Update...')),
182
+ title: ( localize2(10442, '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(10445, "Apply Update")),
192
+ title: ( localize(10443, "Apply Update")),
193
193
  filters: [{ name: 'Setup', extensions: ['exe'] }],
194
194
  canSelectFiles: true,
195
- openLabel: mnemonicButtonLabel(( localize(10446, "&&Update")))
195
+ openLabel: mnemonicButtonLabel(( localize(10444, "&&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
- 10447,
57
+ 10445,
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
- 10448,
118
+ 10446,
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(10449, "Release Notes")),
123
+ label: ( localize(10447, "Release Notes")),
124
124
  run: () => {
125
125
  const uri = ( URI.parse(releaseNotesUrl));
126
126
  openerService.open(uri);
@@ -179,13 +179,13 @@ let UpdateContribution = class UpdateContribution extends Disposable {
179
179
  this.notificationService.notify({
180
180
  severity: Severity.Info,
181
181
  message: ( localize(
182
- 10450,
182
+ 10448,
183
183
  "Updates are disabled because you are running the user-scope installation of {0} as Administrator.",
184
184
  this.productService.nameLong
185
185
  )),
186
186
  actions: {
187
187
  primary: [
188
- ( new Action('', ( localize(10451, "Learn More")), undefined, undefined, () => {
188
+ ( new Action('', ( localize(10449, "Learn More")), undefined, undefined, () => {
189
189
  this.openerService.open('https://aka.ms/vscode-windows-setup');
190
190
  }))
191
191
  ]
@@ -222,18 +222,18 @@ let UpdateContribution = class UpdateContribution extends Disposable {
222
222
  let badge = undefined;
223
223
  let priority = undefined;
224
224
  if (state.type === StateType.AvailableForDownload || state.type === StateType.Downloaded || state.type === StateType.Ready) {
225
- badge = ( new NumberBadge(1, () => ( localize(10452, "New {0} update available.", this.productService.nameShort))));
225
+ badge = ( new NumberBadge(1, () => ( localize(10450, "New {0} update available.", this.productService.nameShort))));
226
226
  }
227
227
  else if (state.type === StateType.CheckingForUpdates) {
228
- badge = ( new ProgressBadge(() => ( localize(10453, "Checking for Updates..."))));
228
+ badge = ( new ProgressBadge(() => ( localize(10451, "Checking for Updates..."))));
229
229
  priority = 1;
230
230
  }
231
231
  else if (state.type === StateType.Downloading) {
232
- badge = ( new ProgressBadge(() => ( localize(10454, "Downloading..."))));
232
+ badge = ( new ProgressBadge(() => ( localize(10452, "Downloading..."))));
233
233
  priority = 1;
234
234
  }
235
235
  else if (state.type === StateType.Updating) {
236
- badge = ( new ProgressBadge(() => ( localize(10455, "Updating..."))));
236
+ badge = ( new ProgressBadge(() => ( localize(10453, "Updating..."))));
237
237
  priority = 1;
238
238
  }
239
239
  this.badgeDisposable.clear();
@@ -250,11 +250,11 @@ let UpdateContribution = class UpdateContribution extends Disposable {
250
250
  this.notificationService.notify({
251
251
  severity: Severity.Error,
252
252
  message: error,
253
- source: ( localize(10456, "Update Service")),
253
+ source: ( localize(10454, "Update Service")),
254
254
  });
255
255
  }
256
256
  onUpdateNotAvailable() {
257
- this.dialogService.info(( localize(10457, "There are currently no updates available.")));
257
+ this.dialogService.info(( localize(10455, "There are currently no updates available.")));
258
258
  }
259
259
  onUpdateAvailable(update) {
260
260
  if (!this.shouldShowNotification()) {
@@ -264,14 +264,14 @@ let UpdateContribution = class UpdateContribution extends Disposable {
264
264
  if (!productVersion) {
265
265
  return;
266
266
  }
267
- this.notificationService.prompt(Severity.Info, ( localize(10458, "There is an available update.")), [{
268
- label: ( localize(10459, "Download Update")),
267
+ this.notificationService.prompt(Severity.Info, ( localize(10456, "There is an available update.")), [{
268
+ label: ( localize(10457, "Download Update")),
269
269
  run: () => this.updateService.downloadUpdate()
270
270
  }, {
271
- label: ( localize(10460, "Later")),
271
+ label: ( localize(10458, "Later")),
272
272
  run: () => { }
273
273
  }, {
274
- label: ( localize(10449, "Release Notes")),
274
+ label: ( localize(10447, "Release Notes")),
275
275
  run: () => {
276
276
  this.instantiationService.invokeFunction(accessor => showReleaseNotes(accessor, productVersion));
277
277
  }
@@ -292,18 +292,18 @@ let UpdateContribution = class UpdateContribution extends Disposable {
292
292
  return;
293
293
  }
294
294
  this.notificationService.prompt(Severity.Info, ( localize(
295
- 10461,
295
+ 10459,
296
296
  "There's an update available: {0} {1}",
297
297
  this.productService.nameLong,
298
298
  productVersion
299
299
  )), [{
300
- label: ( localize(10462, "Install Update")),
300
+ label: ( localize(10460, "Install Update")),
301
301
  run: () => this.updateService.applyUpdate()
302
302
  }, {
303
- label: ( localize(10460, "Later")),
303
+ label: ( localize(10458, "Later")),
304
304
  run: () => { }
305
305
  }, {
306
- label: ( localize(10449, "Release Notes")),
306
+ label: ( localize(10447, "Release Notes")),
307
307
  run: () => {
308
308
  this.instantiationService.invokeFunction(accessor => showReleaseNotes(accessor, productVersion));
309
309
  }
@@ -314,23 +314,23 @@ let UpdateContribution = class UpdateContribution extends Disposable {
314
314
  return;
315
315
  }
316
316
  const actions = [{
317
- label: ( localize(10463, "Update Now")),
317
+ label: ( localize(10461, "Update Now")),
318
318
  run: () => this.updateService.quitAndInstall()
319
319
  }, {
320
- label: ( localize(10460, "Later")),
320
+ label: ( localize(10458, "Later")),
321
321
  run: () => { }
322
322
  }];
323
323
  const productVersion = update.productVersion;
324
324
  if (productVersion) {
325
325
  actions.push({
326
- label: ( localize(10449, "Release Notes")),
326
+ label: ( localize(10447, "Release Notes")),
327
327
  run: () => {
328
328
  this.instantiationService.invokeFunction(accessor => showReleaseNotes(accessor, productVersion));
329
329
  }
330
330
  });
331
331
  }
332
332
  this.notificationService.prompt(Severity.Info, ( localize(
333
- 10464,
333
+ 10462,
334
334
  "Restart {0} to apply the latest update.",
335
335
  this.productService.nameLong
336
336
  )), actions, { sticky: true });
@@ -353,7 +353,7 @@ let UpdateContribution = class UpdateContribution extends Disposable {
353
353
  group: '7_update',
354
354
  command: {
355
355
  id: 'update.check',
356
- title: ( localize(10465, "Check for Updates..."))
356
+ title: ( localize(10463, "Check for Updates..."))
357
357
  },
358
358
  when: ( CONTEXT_UPDATE_STATE.isEqualTo(StateType.Idle))
359
359
  });
@@ -362,7 +362,7 @@ let UpdateContribution = class UpdateContribution extends Disposable {
362
362
  group: '7_update',
363
363
  command: {
364
364
  id: 'update.checking',
365
- title: ( localize(10453, "Checking for Updates...")),
365
+ title: ( localize(10451, "Checking for Updates...")),
366
366
  precondition: ( ContextKeyExpr.false())
367
367
  },
368
368
  when: ( CONTEXT_UPDATE_STATE.isEqualTo(StateType.CheckingForUpdates))
@@ -372,7 +372,7 @@ let UpdateContribution = class UpdateContribution extends Disposable {
372
372
  group: '7_update',
373
373
  command: {
374
374
  id: 'update.downloadNow',
375
- title: ( localize(10466, "Download Update (1)"))
375
+ title: ( localize(10464, "Download Update (1)"))
376
376
  },
377
377
  when: ( CONTEXT_UPDATE_STATE.isEqualTo(StateType.AvailableForDownload))
378
378
  });
@@ -381,7 +381,7 @@ let UpdateContribution = class UpdateContribution extends Disposable {
381
381
  group: '7_update',
382
382
  command: {
383
383
  id: 'update.downloading',
384
- title: ( localize(10467, "Downloading Update...")),
384
+ title: ( localize(10465, "Downloading Update...")),
385
385
  precondition: ( ContextKeyExpr.false())
386
386
  },
387
387
  when: ( CONTEXT_UPDATE_STATE.isEqualTo(StateType.Downloading))
@@ -391,7 +391,7 @@ let UpdateContribution = class UpdateContribution extends Disposable {
391
391
  group: '7_update',
392
392
  command: {
393
393
  id: 'update.install',
394
- title: ( localize(10468, "Install Update... (1)"))
394
+ title: ( localize(10466, "Install Update... (1)"))
395
395
  },
396
396
  when: ( CONTEXT_UPDATE_STATE.isEqualTo(StateType.Downloaded))
397
397
  });
@@ -400,7 +400,7 @@ let UpdateContribution = class UpdateContribution extends Disposable {
400
400
  group: '7_update',
401
401
  command: {
402
402
  id: 'update.updating',
403
- title: ( localize(10469, "Installing Update...")),
403
+ title: ( localize(10467, "Installing Update...")),
404
404
  precondition: ( ContextKeyExpr.false())
405
405
  },
406
406
  when: ( CONTEXT_UPDATE_STATE.isEqualTo(StateType.Updating))
@@ -420,7 +420,7 @@ let UpdateContribution = class UpdateContribution extends Disposable {
420
420
  order: 1,
421
421
  command: {
422
422
  id: 'update.showUpdateReleaseNotes',
423
- title: ( localize(10470, "Show Update Release Notes"))
423
+ title: ( localize(10468, "Show Update Release Notes"))
424
424
  },
425
425
  when: ( ContextKeyExpr.and(( CONTEXT_UPDATE_STATE.isEqualTo(StateType.Ready)), MAJOR_MINOR_UPDATE_AVAILABLE))
426
426
  });
@@ -431,7 +431,7 @@ let UpdateContribution = class UpdateContribution extends Disposable {
431
431
  order: 2,
432
432
  command: {
433
433
  id: 'update.restart',
434
- title: ( localize(10471, "Restart to Update (1)"))
434
+ title: ( localize(10469, "Restart to Update (1)"))
435
435
  },
436
436
  when: ( CONTEXT_UPDATE_STATE.isEqualTo(StateType.Ready))
437
437
  });
@@ -471,7 +471,7 @@ let SwitchProductQualityContribution = class SwitchProductQualityContribution ex
471
471
  constructor() {
472
472
  super({
473
473
  id: commandId,
474
- title: isSwitchingToInsiders ? ( localize(10472, "Switch to Insiders Version...")) : ( localize(10473, "Switch to Stable Version...")),
474
+ title: isSwitchingToInsiders ? ( localize(10470, "Switch to Insiders Version...")) : ( localize(10471, "Switch to Stable Version...")),
475
475
  precondition: IsWebContext,
476
476
  menu: {
477
477
  id: MenuId.GlobalActivity,
@@ -505,17 +505,17 @@ let SwitchProductQualityContribution = class SwitchProductQualityContribution ex
505
505
  }
506
506
  const res = await dialogService.confirm({
507
507
  type: 'info',
508
- message: ( localize(10474, "Changing the version requires a reload to take effect")),
508
+ message: ( localize(10472, "Changing the version requires a reload to take effect")),
509
509
  detail: newQuality === 'insider' ?
510
510
  ( localize(
511
- 10475,
511
+ 10473,
512
512
  "Press the reload button to switch to the Insiders version of VS Code."
513
513
  )) :
514
514
  ( localize(
515
- 10476,
515
+ 10474,
516
516
  "Press the reload button to switch to the Stable version of VS Code."
517
517
  )),
518
- primaryButton: ( localize(10477, "&&Reload"))
518
+ primaryButton: ( localize(10475, "&&Reload"))
519
519
  });
520
520
  if (res.confirmed) {
521
521
  const promises = [];
@@ -542,20 +542,20 @@ let SwitchProductQualityContribution = class SwitchProductQualityContribution ex
542
542
  const { result } = await dialogService.prompt({
543
543
  type: Severity.Info,
544
544
  message: ( localize(
545
- 10478,
545
+ 10476,
546
546
  "Choose the settings sync service to use after changing the version"
547
547
  )),
548
548
  detail: ( localize(
549
- 10479,
549
+ 10477,
550
550
  "The Insiders version of VS Code will synchronize your settings, keybindings, extensions, snippets and UI State using separate insiders settings sync service by default."
551
551
  )),
552
552
  buttons: [
553
553
  {
554
- label: ( localize(10480, "&&Insiders")),
554
+ label: ( localize(10478, "&&Insiders")),
555
555
  run: () => 'insiders'
556
556
  },
557
557
  {
558
- label: ( localize(10481, "&&Stable (current)")),
558
+ label: ( localize(10479, "&&Stable (current)")),
559
559
  run: () => 'stable'
560
560
  }
561
561
  ],