@codingame/monaco-vscode-api 1.69.8 → 1.69.9

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.
@@ -1,19 +1,19 @@
1
- import { j as index, g as flatten, b as __decorate, d as __param } from './contextkey.js';
2
- import { E as Emitter, p as parse } from './polyfill.js';
3
- import { E as ExtensionsRegistry, i as isProposedApiEnabled, j as IUserDataProfileService, I as IExtensionService, k as IKeyboardLayoutService, l as IPreferencesService, m as ExtensionMessageCollector, f as IUserDataProfilesService } from './missing-services.js';
1
+ import { i as index, _ as __decorate, a as __param, h as flatten } from './contextkey.js';
2
+ import { E as Emitter, k as parse } from './polyfill.js';
3
+ import { i as isProposedApiEnabled, E as ExtensionsRegistry, j as ExtensionMessageCollector, e as IUserDataProfilesService, I as IExtensionService, k as IPreferencesService, l as IUserDataProfileService, m as IKeyboardLayoutService } from './missing-services.js';
4
4
  import { KeyCodeUtils, IMMUTABLE_CODE_TO_KEY_CODE } from 'monaco-editor/esm/vs/base/common/keyCodes.js';
5
- import { SimpleKeybinding, ChordKeybinding, ScanCodeBinding } from 'monaco-editor/esm/vs/base/common/keybindings.js';
5
+ import { SimpleKeybinding, ScanCodeBinding, ChordKeybinding } from 'monaco-editor/esm/vs/base/common/keybindings.js';
6
6
  import { ContextKeyExpr, IContextKeyService } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
7
- import { o as IHostService, d as IFileService, i as IEditorService, j as IEditorGroupsService, S as Services } from './services2.js';
8
- import { MenuRegistry, MenuId, isIMenuItem, MenuItemAction, IMenuService } from 'monaco-editor/esm/vs/platform/actions/common/actions.js';
7
+ import { S as Services, i as IFileService, I as IEditorService, b as IEditorGroupsService, o as IHostService } from './services2.js';
8
+ import { MenuRegistry, MenuId, MenuItemAction, IMenuService, isIMenuItem } from 'monaco-editor/esm/vs/platform/actions/common/actions.js';
9
9
  import { getConfiguredDefaultLocale, localize } from 'monaco-editor/esm/vs/nls.js';
10
10
  import { ThemeIcon } from 'monaco-editor/esm/vs/platform/theme/common/themeService.js';
11
11
  import { joinPath, dirname } from 'monaco-editor/esm/vs/base/common/resources.js';
12
12
  import { Iterable } from 'monaco-editor/esm/vs/base/common/iterator.js';
13
- import { DisposableStore, Disposable, toDisposable, dispose } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
13
+ import { DisposableStore, toDisposable, dispose, Disposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
14
14
  import { isFalsyOrWhitespace } from 'monaco-editor/esm/vs/base/common/strings.js';
15
15
  import { EditorExtensionsRegistry } from 'monaco-editor/esm/vs/editor/browser/editorExtensions.js';
16
- import { CommandsRegistry, ICommandService } from 'monaco-editor/esm/vs/platform/commands/common/commands.js';
16
+ import { ICommandService, CommandsRegistry } from 'monaco-editor/esm/vs/platform/commands/common/commands.js';
17
17
  import { isNonEmptyArray } from 'monaco-editor/esm/vs/base/common/arrays.js';
18
18
  import { AbstractKeybindingService } from 'monaco-editor/esm/vs/platform/keybinding/common/abstractKeybindingService.js';
19
19
  import { KeybindingsRegistry } from 'monaco-editor/esm/vs/platform/keybinding/common/keybindingsRegistry.js';
@@ -27,7 +27,7 @@ import { ITelemetryService } from 'monaco-editor/esm/vs/platform/telemetry/commo
27
27
  import { INotificationService } from 'monaco-editor/esm/vs/platform/notification/common/notification.js';
28
28
  import { IConfigurationService } from 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
29
29
  import { ILogService } from 'monaco-editor/esm/vs/platform/log/common/log.js';
30
- import { RunOnceScheduler, timeout } from 'monaco-editor/esm/vs/base/common/async.js';
30
+ import { timeout, RunOnceScheduler } from 'monaco-editor/esm/vs/base/common/async.js';
31
31
  import { Event } from 'monaco-editor/esm/vs/base/common/event.js';
32
32
  import { isArray } from 'monaco-editor/esm/vs/base/common/types.js';
33
33
  import { equals } from 'monaco-editor/esm/vs/base/common/objects.js';
@@ -43,13 +43,9 @@ import { stripIcons } from 'monaco-editor/esm/vs/base/common/iconLabels.js';
43
43
  import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
44
44
  import { IKeybindingService } from 'monaco-editor/esm/vs/platform/keybinding/common/keybinding.js';
45
45
  import { IDialogService } from 'monaco-editor/esm/vs/platform/dialogs/common/dialogs.js';
46
- import { isFirefox } from 'monaco-editor/esm/vs/base/browser/browser.js';
47
- import { IQuickInputService } from 'monaco-editor/esm/vs/platform/quickinput/common/quickInput.js';
48
- import { IStorageService } from 'monaco-editor/esm/vs/platform/storage/common/storage.js';
49
- import { CommandsHistory } from 'monaco-editor/esm/vs/platform/quickinput/browser/commandsQuickAccess.js';
50
46
  import { g as getServiceOverride$1 } from './files.js';
51
47
  import { g as getExtensionPoint, c as consoleExtensionMessageHandler } from './tools.js';
52
- import { D as DEFAULT_EXTENSION } from './extHost.js';
48
+ import { bd as DEFAULT_EXTENSION } from './extHost.js';
53
49
  import { c as createInjectedClass } from './injection.js';
54
50
  import { StandaloneCommandsQuickAccessProvider } from 'monaco-editor/esm/vs/editor/standalone/browser/quickAccess/standaloneCommandsQuickAccess.js';
55
51
  import { SyncDescriptor } from 'monaco-editor/esm/vs/platform/instantiation/common/descriptors.js';
@@ -60,7 +56,7 @@ class WindowManager {
60
56
  this._zoomLevel = 0;
61
57
  this._zoomFactor = 1;
62
58
  this._fullscreen = false;
63
- this._onDidChangeFullscreen = ( new Emitter());
59
+ this._onDidChangeFullscreen = ( (new Emitter()));
64
60
  this.onDidChangeFullscreen = this._onDidChangeFullscreen.event;
65
61
  }
66
62
  getZoomLevel() {
@@ -89,7 +85,7 @@ class WindowManager {
89
85
  return this._fullscreen;
90
86
  }
91
87
  }
92
- WindowManager.INSTANCE = ( new WindowManager());
88
+ WindowManager.INSTANCE = ( (new WindowManager()));
93
89
  function addMatchMediaChangeListener(query, callback) {
94
90
  if (typeof query === 'string') {
95
91
  query = window.matchMedia(query);
@@ -133,7 +129,7 @@ if (typeof navigator === 'object' && !isElectronRenderer) {
133
129
  (_userAgent.indexOf('Macintosh') >= 0 || _userAgent.indexOf('iPad') >= 0 || _userAgent.indexOf('iPhone') >= 0) && !!navigator.maxTouchPoints && navigator.maxTouchPoints > 0;
134
130
  _userAgent.indexOf('Linux') >= 0;
135
131
  const configuredLocale = getConfiguredDefaultLocale(
136
- ( localize({ key: 'ensureLoaderPluginIsLoaded', comment: ['{Locked}'] }, '_')));
132
+ ( (localize({ key: 'ensureLoaderPluginIsLoaded', comment: ['{Locked}'] }, '_'))));
137
133
  _locale = configuredLocale || LANGUAGE_DEFAULT;
138
134
  _language = _locale;
139
135
  }
@@ -158,7 +154,7 @@ else {
158
154
  const userAgent = _userAgent;
159
155
  const language = _language;
160
156
  var Language;
161
- ( (function(Language) {
157
+ ( ((function(Language) {
162
158
  function value() {
163
159
  return language;
164
160
  }
@@ -179,7 +175,7 @@ var Language;
179
175
  return language === 'en';
180
176
  }
181
177
  Language.isDefault = isDefault;
182
- })(Language || (Language = {})));
178
+ })(Language || (Language = {}))));
183
179
  const setTimeout0IsFaster = (typeof globals.postMessage === 'function' && !globals.importScripts);
184
180
  (() => {
185
181
  if (setTimeout0IsFaster) {
@@ -251,336 +247,331 @@ function printStandardKeyboardEvent(e) {
251
247
  if (e.metaKey) {
252
248
  modifiers.push(`meta`);
253
249
  }
254
- return `modifiers: [${modifiers.join(',')}], code: ${e.code}, keyCode: ${e.keyCode} ('${( KeyCodeUtils.toString(e.keyCode))}')`;
255
- }
256
- class Action2 {
257
- constructor(desc) {
258
- this.desc = desc;
259
- }
250
+ return `modifiers: [${modifiers.join(',')}], code: ${e.code}, keyCode: ${e.keyCode} ('${( ( KeyCodeUtils.toString(e.keyCode)))}')`;
260
251
  }
261
252
  const apiMenus = [
262
253
  {
263
254
  key: 'commandPalette',
264
255
  id: MenuId.CommandPalette,
265
- description: ( localize('menus.commandPalette', "The Command Palette")),
256
+ description: ( (localize('menus.commandPalette', "The Command Palette"))),
266
257
  supportsSubmenus: false
267
258
  },
268
259
  {
269
260
  key: 'touchBar',
270
261
  id: MenuId.TouchBarContext,
271
- description: ( localize('menus.touchBar', "The touch bar (macOS only)")),
262
+ description: ( (localize('menus.touchBar', "The touch bar (macOS only)"))),
272
263
  supportsSubmenus: false
273
264
  },
274
265
  {
275
266
  key: 'editor/title',
276
267
  id: MenuId.EditorTitle,
277
- description: ( localize('menus.editorTitle', "The editor title menu"))
268
+ description: ( (localize('menus.editorTitle', "The editor title menu")))
278
269
  },
279
270
  {
280
271
  key: 'editor/title/run',
281
272
  id: MenuId.EditorTitleRun,
282
- description: ( localize('menus.editorTitleRun', "Run submenu inside the editor title menu"))
273
+ description: ( (localize('menus.editorTitleRun', "Run submenu inside the editor title menu")))
283
274
  },
284
275
  {
285
276
  key: 'editor/context',
286
277
  id: MenuId.EditorContext,
287
- description: ( localize('menus.editorContext', "The editor context menu"))
278
+ description: ( (localize('menus.editorContext', "The editor context menu")))
288
279
  },
289
280
  {
290
281
  key: 'editor/context/copy',
291
282
  id: MenuId.EditorContextCopy,
292
- description: ( localize(
283
+ description: ( (localize(
293
284
  'menus.editorContextCopyAs',
294
285
  "'Copy as' submenu in the editor context menu"
295
- ))
286
+ )))
296
287
  },
297
288
  {
298
289
  key: 'editor/context/share',
299
290
  id: MenuId.EditorContextShare,
300
- description: ( localize('menus.editorContextShare', "'Share' submenu in the editor context menu")),
291
+ description: ( (localize('menus.editorContextShare', "'Share' submenu in the editor context menu"))),
301
292
  proposed: 'contribShareMenu'
302
293
  },
303
294
  {
304
295
  key: 'explorer/context',
305
296
  id: MenuId.ExplorerContext,
306
- description: ( localize('menus.explorerContext', "The file explorer context menu"))
297
+ description: ( (localize('menus.explorerContext', "The file explorer context menu")))
307
298
  },
308
299
  {
309
300
  key: 'editor/title/context',
310
301
  id: MenuId.EditorTitleContext,
311
- description: ( localize('menus.editorTabContext', "The editor tabs context menu"))
302
+ description: ( (localize('menus.editorTabContext', "The editor tabs context menu")))
312
303
  },
313
304
  {
314
305
  key: 'debug/callstack/context',
315
306
  id: MenuId.DebugCallStackContext,
316
- description: ( localize('menus.debugCallstackContext', "The debug callstack view context menu"))
307
+ description: ( (localize('menus.debugCallstackContext', "The debug callstack view context menu")))
317
308
  },
318
309
  {
319
310
  key: 'debug/variables/context',
320
311
  id: MenuId.DebugVariablesContext,
321
- description: ( localize('menus.debugVariablesContext', "The debug variables view context menu"))
312
+ description: ( (localize('menus.debugVariablesContext', "The debug variables view context menu")))
322
313
  },
323
314
  {
324
315
  key: 'debug/toolBar',
325
316
  id: MenuId.DebugToolBar,
326
- description: ( localize('menus.debugToolBar', "The debug toolbar menu"))
317
+ description: ( (localize('menus.debugToolBar', "The debug toolbar menu")))
327
318
  },
328
319
  {
329
320
  key: 'menuBar/home',
330
321
  id: MenuId.MenubarHomeMenu,
331
- description: ( localize('menus.home', "The home indicator context menu (web only)")),
322
+ description: ( (localize('menus.home', "The home indicator context menu (web only)"))),
332
323
  proposed: 'contribMenuBarHome',
333
324
  supportsSubmenus: false
334
325
  },
335
326
  {
336
327
  key: 'menuBar/edit/copy',
337
328
  id: MenuId.MenubarCopy,
338
- description: ( localize('menus.opy', "'Copy as' submenu in the top level Edit menu"))
329
+ description: ( (localize('menus.opy', "'Copy as' submenu in the top level Edit menu")))
339
330
  },
340
331
  {
341
332
  key: 'scm/title',
342
333
  id: MenuId.SCMTitle,
343
- description: ( localize('menus.scmTitle', "The Source Control title menu"))
334
+ description: ( (localize('menus.scmTitle', "The Source Control title menu")))
344
335
  },
345
336
  {
346
337
  key: 'scm/sourceControl',
347
338
  id: MenuId.SCMSourceControl,
348
- description: ( localize('menus.scmSourceControl', "The Source Control menu"))
339
+ description: ( (localize('menus.scmSourceControl', "The Source Control menu")))
349
340
  },
350
341
  {
351
342
  key: 'scm/resourceState/context',
352
343
  id: MenuId.SCMResourceContext,
353
- description: ( localize(
344
+ description: ( (localize(
354
345
  'menus.resourceStateContext',
355
346
  "The Source Control resource state context menu"
356
- ))
347
+ )))
357
348
  },
358
349
  {
359
350
  key: 'scm/resourceFolder/context',
360
351
  id: MenuId.SCMResourceFolderContext,
361
- description: ( localize(
352
+ description: ( (localize(
362
353
  'menus.resourceFolderContext',
363
354
  "The Source Control resource folder context menu"
364
- ))
355
+ )))
365
356
  },
366
357
  {
367
358
  key: 'scm/resourceGroup/context',
368
359
  id: MenuId.SCMResourceGroupContext,
369
- description: ( localize(
360
+ description: ( (localize(
370
361
  'menus.resourceGroupContext',
371
362
  "The Source Control resource group context menu"
372
- ))
363
+ )))
373
364
  },
374
365
  {
375
366
  key: 'scm/change/title',
376
367
  id: MenuId.SCMChangeContext,
377
- description: ( localize('menus.changeTitle', "The Source Control inline change menu"))
368
+ description: ( (localize('menus.changeTitle', "The Source Control inline change menu")))
378
369
  },
379
370
  {
380
371
  key: 'statusBar/remoteIndicator',
381
372
  id: MenuId.StatusBarRemoteIndicatorMenu,
382
- description: ( localize(
373
+ description: ( (localize(
383
374
  'menus.statusBarRemoteIndicator',
384
375
  "The remote indicator menu in the status bar"
385
- )),
376
+ ))),
386
377
  supportsSubmenus: false
387
378
  },
388
379
  {
389
380
  key: 'view/title',
390
381
  id: MenuId.ViewTitle,
391
- description: ( localize('view.viewTitle', "The contributed view title menu"))
382
+ description: ( (localize('view.viewTitle', "The contributed view title menu")))
392
383
  },
393
384
  {
394
385
  key: 'view/item/context',
395
386
  id: MenuId.ViewItemContext,
396
- description: ( localize('view.itemContext', "The contributed view item context menu"))
387
+ description: ( (localize('view.itemContext', "The contributed view item context menu")))
397
388
  },
398
389
  {
399
390
  key: 'comments/commentThread/title',
400
391
  id: MenuId.CommentThreadTitle,
401
- description: ( localize('commentThread.title', "The contributed comment thread title menu"))
392
+ description: ( (localize('commentThread.title', "The contributed comment thread title menu")))
402
393
  },
403
394
  {
404
395
  key: 'comments/commentThread/context',
405
396
  id: MenuId.CommentThreadActions,
406
- description: ( localize(
397
+ description: ( (localize(
407
398
  'commentThread.actions',
408
399
  "The contributed comment thread context menu, rendered as buttons below the comment editor"
409
- )),
400
+ ))),
410
401
  supportsSubmenus: false
411
402
  },
412
403
  {
413
404
  key: 'comments/comment/title',
414
405
  id: MenuId.CommentTitle,
415
- description: ( localize('comment.title', "The contributed comment title menu"))
406
+ description: ( (localize('comment.title', "The contributed comment title menu")))
416
407
  },
417
408
  {
418
409
  key: 'comments/comment/context',
419
410
  id: MenuId.CommentActions,
420
- description: ( localize(
411
+ description: ( (localize(
421
412
  'comment.actions',
422
413
  "The contributed comment context menu, rendered as buttons below the comment editor"
423
- )),
414
+ ))),
424
415
  supportsSubmenus: false
425
416
  },
426
417
  {
427
418
  key: 'notebook/toolbar',
428
419
  id: MenuId.NotebookToolbar,
429
- description: ( localize('notebook.toolbar', "The contributed notebook toolbar menu"))
420
+ description: ( (localize('notebook.toolbar', "The contributed notebook toolbar menu")))
430
421
  },
431
422
  {
432
423
  key: 'notebook/kernelSource',
433
424
  id: MenuId.NotebookKernelSource,
434
- description: ( localize('notebook.kernelSource', "The contributed notebook kernel sources menu")),
425
+ description: ( (localize('notebook.kernelSource', "The contributed notebook kernel sources menu"))),
435
426
  proposed: 'notebookKernelSource'
436
427
  },
437
428
  {
438
429
  key: 'notebook/cell/title',
439
430
  id: MenuId.NotebookCellTitle,
440
- description: ( localize('notebook.cell.title', "The contributed notebook cell title menu"))
431
+ description: ( (localize('notebook.cell.title', "The contributed notebook cell title menu")))
441
432
  },
442
433
  {
443
434
  key: 'notebook/cell/execute',
444
435
  id: MenuId.NotebookCellExecute,
445
- description: ( localize('notebook.cell.execute', "The contributed notebook cell execution menu"))
436
+ description: ( (localize('notebook.cell.execute', "The contributed notebook cell execution menu")))
446
437
  },
447
438
  {
448
439
  key: 'notebook/cell/executePrimary',
449
440
  id: MenuId.NotebookCellExecutePrimary,
450
- description: ( localize(
441
+ description: ( (localize(
451
442
  'notebook.cell.executePrimary',
452
443
  "The contributed primary notebook cell execution button"
453
- )),
444
+ ))),
454
445
  proposed: 'notebookEditor'
455
446
  },
456
447
  {
457
448
  key: 'interactive/toolbar',
458
449
  id: MenuId.InteractiveToolbar,
459
- description: ( localize('interactive.toolbar', "The contributed interactive toolbar menu")),
450
+ description: ( (localize('interactive.toolbar', "The contributed interactive toolbar menu"))),
460
451
  },
461
452
  {
462
453
  key: 'interactive/cell/title',
463
454
  id: MenuId.InteractiveCellTitle,
464
- description: ( localize('interactive.cell.title', "The contributed interactive cell title menu")),
455
+ description: ( (localize('interactive.cell.title', "The contributed interactive cell title menu"))),
465
456
  },
466
457
  {
467
458
  key: 'testing/item/context',
468
459
  id: MenuId.TestItem,
469
- description: ( localize('testing.item.context', "The contributed test item menu")),
460
+ description: ( (localize('testing.item.context', "The contributed test item menu"))),
470
461
  },
471
462
  {
472
463
  key: 'testing/item/gutter',
473
464
  id: MenuId.TestItemGutter,
474
- description: ( localize(
465
+ description: ( (localize(
475
466
  'testing.item.gutter.title',
476
467
  "The menu for a gutter decoration for a test item"
477
- )),
468
+ ))),
478
469
  },
479
470
  {
480
471
  key: 'extension/context',
481
472
  id: MenuId.ExtensionContext,
482
- description: ( localize('menus.extensionContext', "The extension context menu"))
473
+ description: ( (localize('menus.extensionContext', "The extension context menu")))
483
474
  },
484
475
  {
485
476
  key: 'timeline/title',
486
477
  id: MenuId.TimelineTitle,
487
- description: ( localize('view.timelineTitle', "The Timeline view title menu"))
478
+ description: ( (localize('view.timelineTitle', "The Timeline view title menu")))
488
479
  },
489
480
  {
490
481
  key: 'timeline/item/context',
491
482
  id: MenuId.TimelineItemContext,
492
- description: ( localize('view.timelineContext', "The Timeline view item context menu"))
483
+ description: ( (localize('view.timelineContext', "The Timeline view item context menu")))
493
484
  },
494
485
  {
495
486
  key: 'ports/item/context',
496
487
  id: MenuId.TunnelContext,
497
- description: ( localize('view.tunnelContext', "The Ports view item context menu"))
488
+ description: ( (localize('view.tunnelContext', "The Ports view item context menu")))
498
489
  },
499
490
  {
500
491
  key: 'ports/item/origin/inline',
501
492
  id: MenuId.TunnelOriginInline,
502
- description: ( localize('view.tunnelOriginInline', "The Ports view item origin inline menu"))
493
+ description: ( (localize('view.tunnelOriginInline', "The Ports view item origin inline menu")))
503
494
  },
504
495
  {
505
496
  key: 'ports/item/port/inline',
506
497
  id: MenuId.TunnelPortInline,
507
- description: ( localize('view.tunnelPortInline', "The Ports view item port inline menu"))
498
+ description: ( (localize('view.tunnelPortInline', "The Ports view item port inline menu")))
508
499
  },
509
500
  {
510
501
  key: 'file/newFile',
511
502
  id: MenuId.NewFile,
512
- description: ( localize(
503
+ description: ( (localize(
513
504
  'file.newFile',
514
505
  "The 'New File...' quick pick, shown on welcome page and File menu."
515
- )),
506
+ ))),
516
507
  supportsSubmenus: false,
517
508
  },
518
509
  {
519
510
  key: 'file/share',
520
511
  id: MenuId.MenubarShare,
521
- description: ( localize('menus.share', "Share submenu shown in the top level File menu.")),
512
+ description: ( (localize('menus.share', "Share submenu shown in the top level File menu."))),
522
513
  proposed: 'contribShareMenu'
523
514
  },
524
515
  {
525
516
  key: 'editor/inlineCompletions/actions',
526
517
  id: MenuId.InlineCompletionsActions,
527
- description: ( localize(
518
+ description: ( (localize(
528
519
  'inlineCompletions.actions',
529
520
  "The actions shown when hovering on an inline completion"
530
- )),
521
+ ))),
531
522
  supportsSubmenus: false,
532
523
  proposed: 'inlineCompletionsAdditions'
533
524
  },
534
525
  {
535
526
  key: 'merge/toolbar',
536
527
  id: MenuId.MergeToolbar,
537
- description: ( localize('merge.toolbar', "The prominent botton in the merge editor")),
528
+ description: ( (localize('merge.toolbar', "The prominent botton in the merge editor"))),
538
529
  proposed: 'contribMergeEditorToolbar'
539
530
  },
540
531
  {
541
532
  key: 'webview/context',
542
533
  id: MenuId.WebviewContext,
543
- description: ( localize('webview.context', "The webview context menu")),
534
+ description: ( (localize('webview.context', "The webview context menu"))),
544
535
  proposed: 'contribWebviewContext'
545
536
  },
546
537
  ];
547
538
  var schema$1;
548
- ( (function(schema) {
539
+ ( ((function(schema) {
549
540
  function isMenuItem(item) {
550
541
  return typeof item.command === 'string';
551
542
  }
552
543
  schema.isMenuItem = isMenuItem;
553
544
  function isValidMenuItem(item, collector) {
554
545
  if (typeof item.command !== 'string') {
555
- collector.error(( localize(
546
+ collector.error(( (localize(
556
547
  'requirestring',
557
548
  "property `{0}` is mandatory and must be of type `string`",
558
549
  'command'
559
- )));
550
+ ))));
560
551
  return false;
561
552
  }
562
553
  if (item.alt && typeof item.alt !== 'string') {
563
- collector.error(( localize(
554
+ collector.error(( (localize(
564
555
  'optstring',
565
556
  "property `{0}` can be omitted or must be of type `string`",
566
557
  'alt'
567
- )));
558
+ ))));
568
559
  return false;
569
560
  }
570
561
  if (item.when && typeof item.when !== 'string') {
571
- collector.error(( localize(
562
+ collector.error(( (localize(
572
563
  'optstring',
573
564
  "property `{0}` can be omitted or must be of type `string`",
574
565
  'when'
575
- )));
566
+ ))));
576
567
  return false;
577
568
  }
578
569
  if (item.group && typeof item.group !== 'string') {
579
- collector.error(( localize(
570
+ collector.error(( (localize(
580
571
  'optstring',
581
572
  "property `{0}` can be omitted or must be of type `string`",
582
573
  'group'
583
- )));
574
+ ))));
584
575
  return false;
585
576
  }
586
577
  return true;
@@ -588,27 +579,27 @@ var schema$1;
588
579
  schema.isValidMenuItem = isValidMenuItem;
589
580
  function isValidSubmenuItem(item, collector) {
590
581
  if (typeof item.submenu !== 'string') {
591
- collector.error(( localize(
582
+ collector.error(( (localize(
592
583
  'requirestring',
593
584
  "property `{0}` is mandatory and must be of type `string`",
594
585
  'submenu'
595
- )));
586
+ ))));
596
587
  return false;
597
588
  }
598
589
  if (item.when && typeof item.when !== 'string') {
599
- collector.error(( localize(
590
+ collector.error(( (localize(
600
591
  'optstring',
601
592
  "property `{0}` can be omitted or must be of type `string`",
602
593
  'when'
603
- )));
594
+ ))));
604
595
  return false;
605
596
  }
606
597
  if (item.group && typeof item.group !== 'string') {
607
- collector.error(( localize(
598
+ collector.error(( (localize(
608
599
  'optstring',
609
600
  "property `{0}` can be omitted or must be of type `string`",
610
601
  'group'
611
- )));
602
+ ))));
612
603
  return false;
613
604
  }
614
605
  return true;
@@ -616,7 +607,7 @@ var schema$1;
616
607
  schema.isValidSubmenuItem = isValidSubmenuItem;
617
608
  function isValidItems(items, collector) {
618
609
  if (!Array.isArray(items)) {
619
- collector.error(( localize('requirearray', "submenu items must be an array")));
610
+ collector.error(( (localize('requirearray', "submenu items must be an array"))));
620
611
  return false;
621
612
  }
622
613
  for (const item of items) {
@@ -636,23 +627,23 @@ var schema$1;
636
627
  schema.isValidItems = isValidItems;
637
628
  function isValidSubmenu(submenu, collector) {
638
629
  if (typeof submenu !== 'object') {
639
- collector.error(( localize('require', "submenu items must be an object")));
630
+ collector.error(( (localize('require', "submenu items must be an object"))));
640
631
  return false;
641
632
  }
642
633
  if (typeof submenu.id !== 'string') {
643
- collector.error(( localize(
634
+ collector.error(( (localize(
644
635
  'requirestring',
645
636
  "property `{0}` is mandatory and must be of type `string`",
646
637
  'id'
647
- )));
638
+ ))));
648
639
  return false;
649
640
  }
650
641
  if (typeof submenu.label !== 'string') {
651
- collector.error(( localize(
642
+ collector.error(( (localize(
652
643
  'requirestring',
653
644
  "property `{0}` is mandatory and must be of type `string`",
654
645
  'label'
655
- )));
646
+ ))));
656
647
  return false;
657
648
  }
658
649
  return true;
@@ -663,31 +654,31 @@ var schema$1;
663
654
  required: ['command'],
664
655
  properties: {
665
656
  command: {
666
- description: ( localize(
657
+ description: ( (localize(
667
658
  'vscode.extension.contributes.menuItem.command',
668
659
  'Identifier of the command to execute. The command must be declared in the \'commands\'-section'
669
- )),
660
+ ))),
670
661
  type: 'string'
671
662
  },
672
663
  alt: {
673
- description: ( localize(
664
+ description: ( (localize(
674
665
  'vscode.extension.contributes.menuItem.alt',
675
666
  'Identifier of an alternative command to execute. The command must be declared in the \'commands\'-section'
676
- )),
667
+ ))),
677
668
  type: 'string'
678
669
  },
679
670
  when: {
680
- description: ( localize(
671
+ description: ( (localize(
681
672
  'vscode.extension.contributes.menuItem.when',
682
673
  'Condition which must be true to show this item'
683
- )),
674
+ ))),
684
675
  type: 'string'
685
676
  },
686
677
  group: {
687
- description: ( localize(
678
+ description: ( (localize(
688
679
  'vscode.extension.contributes.menuItem.group',
689
680
  'Group into which this item belongs'
690
- )),
681
+ ))),
691
682
  type: 'string'
692
683
  }
693
684
  }
@@ -697,24 +688,24 @@ var schema$1;
697
688
  required: ['submenu'],
698
689
  properties: {
699
690
  submenu: {
700
- description: ( localize(
691
+ description: ( (localize(
701
692
  'vscode.extension.contributes.menuItem.submenu',
702
693
  'Identifier of the submenu to display in this item.'
703
- )),
694
+ ))),
704
695
  type: 'string'
705
696
  },
706
697
  when: {
707
- description: ( localize(
698
+ description: ( (localize(
708
699
  'vscode.extension.contributes.menuItem.when',
709
700
  'Condition which must be true to show this item'
710
- )),
701
+ ))),
711
702
  type: 'string'
712
703
  },
713
704
  group: {
714
- description: ( localize(
705
+ description: ( (localize(
715
706
  'vscode.extension.contributes.menuItem.group',
716
707
  'Group into which this item belongs'
717
- )),
708
+ ))),
718
709
  type: 'string'
719
710
  }
720
711
  }
@@ -724,24 +715,24 @@ var schema$1;
724
715
  required: ['id', 'label'],
725
716
  properties: {
726
717
  id: {
727
- description: ( localize(
718
+ description: ( (localize(
728
719
  'vscode.extension.contributes.submenu.id',
729
720
  'Identifier of the menu to display as a submenu.'
730
- )),
721
+ ))),
731
722
  type: 'string'
732
723
  },
733
724
  label: {
734
- description: ( localize(
725
+ description: ( (localize(
735
726
  'vscode.extension.contributes.submenu.label',
736
727
  'The label of the menu item which leads to this submenu.'
737
- )),
728
+ ))),
738
729
  type: 'string'
739
730
  },
740
731
  icon: {
741
- description: ( localize(
732
+ description: ( (localize(
742
733
  { key: 'vscode.extension.contributes.submenu.icon', comment: ['do not translate or change `\\$(zap)`, \\ in front of $ is important.'] },
743
734
  '(Optional) Icon which is used to represent the submenu in the UI. Either a file path, an object with file paths for dark and light themes, or a theme icon references, like `\\$(zap)`'
744
- )),
735
+ ))),
745
736
  anyOf: [{
746
737
  type: 'string'
747
738
  },
@@ -749,17 +740,17 @@ var schema$1;
749
740
  type: 'object',
750
741
  properties: {
751
742
  light: {
752
- description: ( localize(
743
+ description: ( (localize(
753
744
  'vscode.extension.contributes.submenu.icon.light',
754
745
  'Icon path when a light theme is used'
755
- )),
746
+ ))),
756
747
  type: 'string'
757
748
  },
758
749
  dark: {
759
- description: ( localize(
750
+ description: ( (localize(
760
751
  'vscode.extension.contributes.submenu.icon.dark',
761
752
  'Icon path when a dark theme is used'
762
- )),
753
+ ))),
763
754
  type: 'string'
764
755
  }
765
756
  }
@@ -768,18 +759,18 @@ var schema$1;
768
759
  }
769
760
  };
770
761
  schema.menusContribution = {
771
- description: ( localize(
762
+ description: ( (localize(
772
763
  'vscode.extension.contributes.menus',
773
764
  "Contributes menu items to the editor"
774
- )),
765
+ ))),
775
766
  type: 'object',
776
767
  properties: index(apiMenus, menu => menu.key, menu => ({
777
- markdownDescription: menu.proposed ? ( localize(
768
+ markdownDescription: menu.proposed ? ( (localize(
778
769
  'proposed',
779
770
  "Proposed API, requires `enabledApiProposal: [\"{0}\"]` - {1}",
780
771
  menu.proposed,
781
772
  menu.description
782
- )) : menu.description,
773
+ ))) : menu.description,
783
774
  type: 'array',
784
775
  items: menu.supportsSubmenus === false ? menuItem : { oneOf: [menuItem, submenuItem] }
785
776
  })),
@@ -790,24 +781,24 @@ var schema$1;
790
781
  }
791
782
  };
792
783
  schema.submenusContribution = {
793
- description: ( localize(
784
+ description: ( (localize(
794
785
  'vscode.extension.contributes.submenus',
795
786
  "Contributes submenu items to the editor"
796
- )),
787
+ ))),
797
788
  type: 'array',
798
789
  items: submenu
799
790
  };
800
791
  function isValidCommand(command, collector) {
801
792
  if (!command) {
802
- collector.error(( localize('nonempty', "expected non-empty value.")));
793
+ collector.error(( (localize('nonempty', "expected non-empty value."))));
803
794
  return false;
804
795
  }
805
796
  if (isFalsyOrWhitespace(command.command)) {
806
- collector.error(( localize(
797
+ collector.error(( (localize(
807
798
  'requirestring',
808
799
  "property `{0}` is mandatory and must be of type `string`",
809
800
  'command'
810
- )));
801
+ ))));
811
802
  return false;
812
803
  }
813
804
  if (!isValidLocalizedString(command.title, collector, 'title')) {
@@ -817,11 +808,11 @@ var schema$1;
817
808
  return false;
818
809
  }
819
810
  if (command.enablement && typeof command.enablement !== 'string') {
820
- collector.error(( localize(
811
+ collector.error(( (localize(
821
812
  'optstring',
822
813
  "property `{0}` can be omitted or must be of type `string`",
823
814
  'precondition'
824
- )));
815
+ ))));
825
816
  return false;
826
817
  }
827
818
  if (command.category && !isValidLocalizedString(command.category, collector, 'category')) {
@@ -843,36 +834,36 @@ var schema$1;
843
834
  else if (typeof icon.dark === 'string' && typeof icon.light === 'string') {
844
835
  return true;
845
836
  }
846
- collector.error(( localize(
837
+ collector.error(( (localize(
847
838
  'opticon',
848
839
  "property `icon` can be omitted or must be either a string or a literal like `{dark, light}`"
849
- )));
840
+ ))));
850
841
  return false;
851
842
  }
852
843
  function isValidLocalizedString(localized, collector, propertyName) {
853
844
  if (typeof localized === 'undefined') {
854
- collector.error(( localize(
845
+ collector.error(( (localize(
855
846
  'requireStringOrObject',
856
847
  "property `{0}` is mandatory and must be of type `string` or `object`",
857
848
  propertyName
858
- )));
849
+ ))));
859
850
  return false;
860
851
  }
861
852
  else if (typeof localized === 'string' && isFalsyOrWhitespace(localized)) {
862
- collector.error(( localize(
853
+ collector.error(( (localize(
863
854
  'requirestring',
864
855
  "property `{0}` is mandatory and must be of type `string`",
865
856
  propertyName
866
- )));
857
+ ))));
867
858
  return false;
868
859
  }
869
860
  else if (typeof localized !== 'string' && (isFalsyOrWhitespace(localized.original) || isFalsyOrWhitespace(localized.value))) {
870
- collector.error(( localize(
861
+ collector.error(( (localize(
871
862
  'requirestrings',
872
863
  "properties `{0}` and `{1}` are mandatory and must be of type `string`",
873
864
  `${propertyName}.value`,
874
865
  `${propertyName}.original`
875
- )));
866
+ ))));
876
867
  return false;
877
868
  }
878
869
  return true;
@@ -882,45 +873,45 @@ var schema$1;
882
873
  required: ['command', 'title'],
883
874
  properties: {
884
875
  command: {
885
- description: ( localize(
876
+ description: ( (localize(
886
877
  'vscode.extension.contributes.commandType.command',
887
878
  'Identifier of the command to execute'
888
- )),
879
+ ))),
889
880
  type: 'string'
890
881
  },
891
882
  title: {
892
- description: ( localize(
883
+ description: ( (localize(
893
884
  'vscode.extension.contributes.commandType.title',
894
885
  'Title by which the command is represented in the UI'
895
- )),
886
+ ))),
896
887
  type: 'string'
897
888
  },
898
889
  shortTitle: {
899
- markdownDescription: ( localize(
890
+ markdownDescription: ( (localize(
900
891
  'vscode.extension.contributes.commandType.shortTitle',
901
892
  '(Optional) Short title by which the command is represented in the UI. Menus pick either `title` or `shortTitle` depending on the context in which they show commands.'
902
- )),
893
+ ))),
903
894
  type: 'string'
904
895
  },
905
896
  category: {
906
- description: ( localize(
897
+ description: ( (localize(
907
898
  'vscode.extension.contributes.commandType.category',
908
899
  '(Optional) Category string by which the command is grouped in the UI'
909
- )),
900
+ ))),
910
901
  type: 'string'
911
902
  },
912
903
  enablement: {
913
- description: ( localize(
904
+ description: ( (localize(
914
905
  'vscode.extension.contributes.commandType.precondition',
915
906
  '(Optional) Condition which must be true to enable the command in the UI (menu and keybindings). Does not prevent executing the command by other means, like the `executeCommand`-api.'
916
- )),
907
+ ))),
917
908
  type: 'string'
918
909
  },
919
910
  icon: {
920
- description: ( localize(
911
+ description: ( (localize(
921
912
  { key: 'vscode.extension.contributes.commandType.icon', comment: ['do not translate or change `\\$(zap)`, \\ in front of $ is important.'] },
922
913
  '(Optional) Icon which is used to represent the command in the UI. Either a file path, an object with file paths for dark and light themes, or a theme icon references, like `\\$(zap)`'
923
- )),
914
+ ))),
924
915
  anyOf: [{
925
916
  type: 'string'
926
917
  },
@@ -928,17 +919,17 @@ var schema$1;
928
919
  type: 'object',
929
920
  properties: {
930
921
  light: {
931
- description: ( localize(
922
+ description: ( (localize(
932
923
  'vscode.extension.contributes.commandType.icon.light',
933
924
  'Icon path when a light theme is used'
934
- )),
925
+ ))),
935
926
  type: 'string'
936
927
  },
937
928
  dark: {
938
- description: ( localize(
929
+ description: ( (localize(
939
930
  'vscode.extension.contributes.commandType.icon.dark',
940
931
  'Icon path when a dark theme is used'
941
- )),
932
+ ))),
942
933
  type: 'string'
943
934
  }
944
935
  }
@@ -947,10 +938,10 @@ var schema$1;
947
938
  }
948
939
  };
949
940
  schema.commandsContribution = {
950
- description: ( localize(
941
+ description: ( (localize(
951
942
  'vscode.extension.contributes.commands',
952
943
  "Contributes commands to the command palette."
953
- )),
944
+ ))),
954
945
  oneOf: [
955
946
  commandType,
956
947
  {
@@ -959,12 +950,12 @@ var schema$1;
959
950
  }
960
951
  ]
961
952
  };
962
- })(schema$1 || (schema$1 = {})));
963
- const _commandRegistrations = ( new DisposableStore());
964
- const commandsExtensionPoint$1 = ( ExtensionsRegistry.registerExtensionPoint({
953
+ })(schema$1 || (schema$1 = {}))));
954
+ const _commandRegistrations = ( (new DisposableStore()));
955
+ const commandsExtensionPoint$1 = ( (ExtensionsRegistry.registerExtensionPoint({
965
956
  extensionPoint: 'commands',
966
957
  jsonSchema: schema$1.commandsContribution
967
- }));
958
+ })));
968
959
  commandsExtensionPoint$1.setHandler(extensions => {
969
960
  function handleCommand(userFriendlyCommand, extension, bucket) {
970
961
  if (!schema$1.isValidCommand(userFriendlyCommand, extension.collector)) {
@@ -984,11 +975,11 @@ commandsExtensionPoint$1.setHandler(extensions => {
984
975
  }
985
976
  }
986
977
  if (MenuRegistry.getCommand(command)) {
987
- extension.collector.info(( localize(
978
+ extension.collector.info(( (localize(
988
979
  'dup',
989
980
  "Command `{0}` appears multiple times in the `commands` section.",
990
981
  userFriendlyCommand.command
991
- )));
982
+ ))));
992
983
  }
993
984
  bucket.push({
994
985
  id: command,
@@ -1016,11 +1007,11 @@ commandsExtensionPoint$1.setHandler(extensions => {
1016
1007
  }
1017
1008
  _commandRegistrations.add(MenuRegistry.addCommands(newCommands));
1018
1009
  });
1019
- const _submenus = ( new Map());
1020
- const submenusExtensionPoint = ( ExtensionsRegistry.registerExtensionPoint({
1010
+ const _submenus = ( (new Map()));
1011
+ const submenusExtensionPoint = ( (ExtensionsRegistry.registerExtensionPoint({
1021
1012
  extensionPoint: 'submenus',
1022
1013
  jsonSchema: schema$1.submenusContribution
1023
- }));
1014
+ })));
1024
1015
  submenusExtensionPoint.setHandler(extensions => {
1025
1016
  _submenus.clear();
1026
1017
  for (const extension of extensions) {
@@ -1030,27 +1021,27 @@ submenusExtensionPoint.setHandler(extensions => {
1030
1021
  return;
1031
1022
  }
1032
1023
  if (!submenuInfo.id) {
1033
- collector.warn(( localize(
1024
+ collector.warn(( (localize(
1034
1025
  'submenuId.invalid.id',
1035
1026
  "`{0}` is not a valid submenu identifier",
1036
1027
  submenuInfo.id
1037
- )));
1028
+ ))));
1038
1029
  return;
1039
1030
  }
1040
1031
  if (_submenus.has(submenuInfo.id)) {
1041
- collector.info(( localize(
1032
+ collector.info(( (localize(
1042
1033
  'submenuId.duplicate.id',
1043
1034
  "The `{0}` submenu was already previously registered.",
1044
1035
  submenuInfo.id
1045
- )));
1036
+ ))));
1046
1037
  return;
1047
1038
  }
1048
1039
  if (!submenuInfo.label) {
1049
- collector.warn(( localize(
1040
+ collector.warn(( (localize(
1050
1041
  'submenuId.invalid.label',
1051
1042
  "`{0}` is not a valid submenu label",
1052
1043
  submenuInfo.label
1053
- )));
1044
+ ))));
1054
1045
  return;
1055
1046
  }
1056
1047
  let absoluteIcon;
@@ -1074,14 +1065,14 @@ submenusExtensionPoint.setHandler(extensions => {
1074
1065
  }
1075
1066
  }
1076
1067
  });
1077
- const _apiMenusByKey = ( new Map(Iterable.map(Iterable.from(apiMenus), menu => ([menu.key, menu]))));
1078
- const _menuRegistrations = ( new DisposableStore());
1079
- const _submenuMenuItems = ( new Map());
1080
- const menusExtensionPoint = ( ExtensionsRegistry.registerExtensionPoint({
1068
+ const _apiMenusByKey = ( (new Map(Iterable.map(Iterable.from(apiMenus), menu => ([menu.key, menu])))));
1069
+ const _menuRegistrations = ( (new DisposableStore()));
1070
+ const _submenuMenuItems = ( (new Map()));
1071
+ const menusExtensionPoint = ( (ExtensionsRegistry.registerExtensionPoint({
1081
1072
  extensionPoint: 'menus',
1082
1073
  jsonSchema: schema$1.menusContribution,
1083
1074
  deps: [submenusExtensionPoint]
1084
- }));
1075
+ })));
1085
1076
  menusExtensionPoint.setHandler(extensions => {
1086
1077
  _menuRegistrations.clear();
1087
1078
  _submenuMenuItems.clear();
@@ -1107,13 +1098,13 @@ menusExtensionPoint.setHandler(extensions => {
1107
1098
  continue;
1108
1099
  }
1109
1100
  if (menu.proposed && !isProposedApiEnabled(extension.description, menu.proposed)) {
1110
- collector.error(( localize(
1101
+ collector.error(( (localize(
1111
1102
  'proposedAPI.invalid',
1112
1103
  "{0} is a proposed menu identifier. It requires 'package.json#enabledApiProposals: [\"{1}\"]' and is only available when running out of dev or with the following command line switch: --enable-proposed-api {2}",
1113
1104
  entry[0],
1114
1105
  menu.proposed,
1115
1106
  extension.description.identifier.value
1116
- )));
1107
+ ))));
1117
1108
  continue;
1118
1109
  }
1119
1110
  for (const menuItem of entry[1]) {
@@ -1122,57 +1113,57 @@ menusExtensionPoint.setHandler(extensions => {
1122
1113
  const command = MenuRegistry.getCommand(menuItem.command);
1123
1114
  const alt = menuItem.alt && MenuRegistry.getCommand(menuItem.alt) || undefined;
1124
1115
  if (!command) {
1125
- collector.error(( localize(
1116
+ collector.error(( (localize(
1126
1117
  'missing.command',
1127
1118
  "Menu item references a command `{0}` which is not defined in the 'commands' section.",
1128
1119
  menuItem.command
1129
- )));
1120
+ ))));
1130
1121
  continue;
1131
1122
  }
1132
1123
  if (menuItem.alt && !alt) {
1133
- collector.warn(( localize(
1124
+ collector.warn(( (localize(
1134
1125
  'missing.altCommand',
1135
1126
  "Menu item references an alt-command `{0}` which is not defined in the 'commands' section.",
1136
1127
  menuItem.alt
1137
- )));
1128
+ ))));
1138
1129
  }
1139
1130
  if (menuItem.command === menuItem.alt) {
1140
- collector.info(( localize(
1131
+ collector.info(( (localize(
1141
1132
  'dupe.command',
1142
1133
  "Menu item references the same command as default and alt-command"
1143
- )));
1134
+ ))));
1144
1135
  }
1145
1136
  item = { command, alt, group: undefined, order: undefined, when: undefined };
1146
1137
  }
1147
1138
  else {
1148
1139
  if (menu.supportsSubmenus === false) {
1149
- collector.error(( localize(
1140
+ collector.error(( (localize(
1150
1141
  'unsupported.submenureference',
1151
1142
  "Menu item references a submenu for a menu which doesn't have submenu support."
1152
- )));
1143
+ ))));
1153
1144
  continue;
1154
1145
  }
1155
1146
  const submenu = _submenus.get(menuItem.submenu);
1156
1147
  if (!submenu) {
1157
- collector.error(( localize(
1148
+ collector.error(( (localize(
1158
1149
  'missing.submenu',
1159
1150
  "Menu item references a submenu `{0}` which is not defined in the 'submenus' section.",
1160
1151
  menuItem.submenu
1161
- )));
1152
+ ))));
1162
1153
  continue;
1163
1154
  }
1164
1155
  let submenuRegistrations = _submenuMenuItems.get(menu.id.id);
1165
1156
  if (!submenuRegistrations) {
1166
- submenuRegistrations = ( new Set());
1157
+ submenuRegistrations = ( (new Set()));
1167
1158
  _submenuMenuItems.set(menu.id.id, submenuRegistrations);
1168
1159
  }
1169
1160
  if (submenuRegistrations.has(submenu.id.id)) {
1170
- collector.warn(( localize(
1161
+ collector.warn(( (localize(
1171
1162
  'submenuItem.duplicate',
1172
1163
  "The `{0}` submenu was already contributed to the `{1}` menu.",
1173
1164
  menuItem.submenu,
1174
1165
  entry[0]
1175
- )));
1166
+ ))));
1176
1167
  continue;
1177
1168
  }
1178
1169
  submenuRegistrations.add(submenu.id.id);
@@ -1197,7 +1188,7 @@ menusExtensionPoint.setHandler(extensions => {
1197
1188
  });
1198
1189
  function getAllUnboundCommands(boundCommands) {
1199
1190
  const unboundCommands = [];
1200
- const seenMap = ( new Map());
1191
+ const seenMap = ( (new Map()));
1201
1192
  const addCommand = (id, includeCommandWithArgs) => {
1202
1193
  if (seenMap.has(id)) {
1203
1194
  return;
@@ -1226,7 +1217,7 @@ function getAllUnboundCommands(boundCommands) {
1226
1217
  for (const editorAction of EditorExtensionsRegistry.getEditorActions()) {
1227
1218
  addCommand(editorAction.id, true);
1228
1219
  }
1229
- for (const id of ( CommandsRegistry.getCommands().keys())) {
1220
+ for (const id of ( (CommandsRegistry.getCommands().keys()))) {
1230
1221
  addCommand(id, false);
1231
1222
  }
1232
1223
  return unboundCommands;
@@ -1294,7 +1285,7 @@ class KeybindingParser {
1294
1285
  static parseSimpleKeybinding(input) {
1295
1286
  const mods = this._readModifiers(input);
1296
1287
  const keyCode = KeyCodeUtils.fromUserSettings(mods.key);
1297
- return [( new SimpleKeybinding(mods.ctrl, mods.shift, mods.alt, mods.meta, keyCode)), mods.remains];
1288
+ return [( (new SimpleKeybinding(mods.ctrl, mods.shift, mods.alt, mods.meta, keyCode))), mods.remains];
1298
1289
  }
1299
1290
  static parseKeybinding(input, OS) {
1300
1291
  if (!input) {
@@ -1306,7 +1297,9 @@ class KeybindingParser {
1306
1297
  [part, input] = this.parseSimpleKeybinding(input);
1307
1298
  parts.push(part);
1308
1299
  } while (input.length > 0);
1309
- return ( new ChordKeybinding(parts));
1300
+ return (
1301
+ (new ChordKeybinding(parts))
1302
+ );
1310
1303
  }
1311
1304
  static parseSimpleUserBinding(input) {
1312
1305
  const mods = this._readModifiers(input);
@@ -1314,10 +1307,10 @@ class KeybindingParser {
1314
1307
  if (scanCodeMatch) {
1315
1308
  const strScanCode = scanCodeMatch[1];
1316
1309
  const scanCode = ScanCodeUtils.lowerCaseToEnum(strScanCode);
1317
- return [( new ScanCodeBinding(mods.ctrl, mods.shift, mods.alt, mods.meta, scanCode)), mods.remains];
1310
+ return [( (new ScanCodeBinding(mods.ctrl, mods.shift, mods.alt, mods.meta, scanCode))), mods.remains];
1318
1311
  }
1319
1312
  const keyCode = KeyCodeUtils.fromUserSettings(mods.key);
1320
- return [( new SimpleKeybinding(mods.ctrl, mods.shift, mods.alt, mods.meta, keyCode)), mods.remains];
1313
+ return [( (new SimpleKeybinding(mods.ctrl, mods.shift, mods.alt, mods.meta, keyCode))), mods.remains];
1321
1314
  }
1322
1315
  static parseUserBinding(input) {
1323
1316
  if (!input) {
@@ -1371,7 +1364,7 @@ class KeybindingIO {
1371
1364
  }
1372
1365
  function rightPaddedString(str, minChars) {
1373
1366
  if (str.length < minChars) {
1374
- return str + (( new Array(minChars - str.length)).join(' '));
1367
+ return str + (( (new Array(minChars - str.length))).join(' '));
1375
1368
  }
1376
1369
  return str;
1377
1370
  }
@@ -1402,55 +1395,55 @@ function isContributedKeyBindingsArray(thing) {
1402
1395
  }
1403
1396
  function isValidContributedKeyBinding(keyBinding, rejects) {
1404
1397
  if (!keyBinding) {
1405
- rejects.push(( localize('nonempty', "expected non-empty value.")));
1398
+ rejects.push(( (localize('nonempty', "expected non-empty value."))));
1406
1399
  return false;
1407
1400
  }
1408
1401
  if (typeof keyBinding.command !== 'string') {
1409
- rejects.push(( localize(
1402
+ rejects.push(( (localize(
1410
1403
  'requirestring',
1411
1404
  "property `{0}` is mandatory and must be of type `string`",
1412
1405
  'command'
1413
- )));
1406
+ ))));
1414
1407
  return false;
1415
1408
  }
1416
1409
  if (keyBinding.key && typeof keyBinding.key !== 'string') {
1417
- rejects.push(( localize(
1410
+ rejects.push(( (localize(
1418
1411
  'optstring',
1419
1412
  "property `{0}` can be omitted or must be of type `string`",
1420
1413
  'key'
1421
- )));
1414
+ ))));
1422
1415
  return false;
1423
1416
  }
1424
1417
  if (keyBinding.when && typeof keyBinding.when !== 'string') {
1425
- rejects.push(( localize(
1418
+ rejects.push(( (localize(
1426
1419
  'optstring',
1427
1420
  "property `{0}` can be omitted or must be of type `string`",
1428
1421
  'when'
1429
- )));
1422
+ ))));
1430
1423
  return false;
1431
1424
  }
1432
1425
  if (keyBinding.mac && typeof keyBinding.mac !== 'string') {
1433
- rejects.push(( localize(
1426
+ rejects.push(( (localize(
1434
1427
  'optstring',
1435
1428
  "property `{0}` can be omitted or must be of type `string`",
1436
1429
  'mac'
1437
- )));
1430
+ ))));
1438
1431
  return false;
1439
1432
  }
1440
1433
  if (keyBinding.linux && typeof keyBinding.linux !== 'string') {
1441
- rejects.push(( localize(
1434
+ rejects.push(( (localize(
1442
1435
  'optstring',
1443
1436
  "property `{0}` can be omitted or must be of type `string`",
1444
1437
  'linux'
1445
- )));
1438
+ ))));
1446
1439
  return false;
1447
1440
  }
1448
1441
  if (keyBinding.win && typeof keyBinding.win !== 'string') {
1449
- rejects.push(( localize(
1442
+ rejects.push(( (localize(
1450
1443
  'optstring',
1451
1444
  "property `{0}` can be omitted or must be of type `string`",
1452
1445
  'win'
1453
- )));
1446
+ ))));
1454
1447
  return false;
1455
1448
  }
1456
1449
  return true;
@@ -1460,60 +1453,60 @@ const keybindingType = {
1460
1453
  default: { command: '', key: '' },
1461
1454
  properties: {
1462
1455
  command: {
1463
- description: ( localize(
1456
+ description: ( (localize(
1464
1457
  'vscode.extension.contributes.keybindings.command',
1465
1458
  'Identifier of the command to run when keybinding is triggered.'
1466
- )),
1459
+ ))),
1467
1460
  type: 'string'
1468
1461
  },
1469
1462
  args: {
1470
- description: ( localize(
1463
+ description: ( (localize(
1471
1464
  'vscode.extension.contributes.keybindings.args',
1472
1465
  "Arguments to pass to the command to execute."
1473
- ))
1466
+ )))
1474
1467
  },
1475
1468
  key: {
1476
- description: ( localize(
1469
+ description: ( (localize(
1477
1470
  'vscode.extension.contributes.keybindings.key',
1478
1471
  'Key or key sequence (separate keys with plus-sign and sequences with space, e.g. Ctrl+O and Ctrl+L L for a chord).'
1479
- )),
1472
+ ))),
1480
1473
  type: 'string'
1481
1474
  },
1482
1475
  mac: {
1483
- description: ( localize(
1476
+ description: ( (localize(
1484
1477
  'vscode.extension.contributes.keybindings.mac',
1485
1478
  'Mac specific key or key sequence.'
1486
- )),
1479
+ ))),
1487
1480
  type: 'string'
1488
1481
  },
1489
1482
  linux: {
1490
- description: ( localize(
1483
+ description: ( (localize(
1491
1484
  'vscode.extension.contributes.keybindings.linux',
1492
1485
  'Linux specific key or key sequence.'
1493
- )),
1486
+ ))),
1494
1487
  type: 'string'
1495
1488
  },
1496
1489
  win: {
1497
- description: ( localize(
1490
+ description: ( (localize(
1498
1491
  'vscode.extension.contributes.keybindings.win',
1499
1492
  'Windows specific key or key sequence.'
1500
- )),
1493
+ ))),
1501
1494
  type: 'string'
1502
1495
  },
1503
1496
  when: {
1504
- description: ( localize(
1497
+ description: ( (localize(
1505
1498
  'vscode.extension.contributes.keybindings.when',
1506
1499
  'Condition when the key is active.'
1507
- )),
1500
+ ))),
1508
1501
  type: 'string'
1509
1502
  },
1510
1503
  }
1511
1504
  };
1512
- const keybindingsExtPoint = ( ExtensionsRegistry.registerExtensionPoint({
1505
+ const keybindingsExtPoint = ( (ExtensionsRegistry.registerExtensionPoint({
1513
1506
  extensionPoint: 'keybindings',
1514
1507
  deps: [commandsExtensionPoint$1],
1515
1508
  jsonSchema: {
1516
- description: ( localize('vscode.extension.contributes.keybindings', "Contributes keybindings.")),
1509
+ description: ( (localize('vscode.extension.contributes.keybindings', "Contributes keybindings."))),
1517
1510
  oneOf: [
1518
1511
  keybindingType,
1519
1512
  {
@@ -1522,7 +1515,7 @@ const keybindingsExtPoint = ( ExtensionsRegistry.registerExtensionPoint({
1522
1515
  }
1523
1516
  ]
1524
1517
  }
1525
- }));
1518
+ })));
1526
1519
  const NUMPAD_PRINTABLE_SCANCODES = [
1527
1520
  90 ,
1528
1521
  91 ,
@@ -1540,7 +1533,7 @@ const NUMPAD_PRINTABLE_SCANCODES = [
1540
1533
  104 ,
1541
1534
  105
1542
1535
  ];
1543
- const otherMacNumpadMapping = ( new Map());
1536
+ const otherMacNumpadMapping = ( (new Map()));
1544
1537
  otherMacNumpadMapping.set(95 , 22 );
1545
1538
  otherMacNumpadMapping.set(96 , 23 );
1546
1539
  otherMacNumpadMapping.set(97 , 24 );
@@ -1575,7 +1568,7 @@ let WorkbenchKeybindingService = class WorkbenchKeybindingService extends Abstra
1575
1568
  this.updateResolver();
1576
1569
  });
1577
1570
  this._cachedResolver = null;
1578
- this.userKeybindings = this._register(( new UserKeybindings(userDataProfileService, fileService, logService)));
1571
+ this.userKeybindings = this._register(( (new UserKeybindings(userDataProfileService, fileService, logService))));
1579
1572
  this.userKeybindings.initialize().then(() => {
1580
1573
  if (this.userKeybindings.keybindings.length) {
1581
1574
  this.updateResolver();
@@ -1597,7 +1590,7 @@ let WorkbenchKeybindingService = class WorkbenchKeybindingService extends Abstra
1597
1590
  this._register(extensionService.onDidRegisterExtensions(() => this.updateSchema()));
1598
1591
  this._register(addDisposableListener(window, EventType.KEY_DOWN, (e) => {
1599
1592
  this.isComposingGlobalContextKey.set(e.isComposing);
1600
- const keyEvent = ( new StandardKeyboardEvent(e));
1593
+ const keyEvent = ( (new StandardKeyboardEvent(e)));
1601
1594
  this._log(`/ Received keydown event - ${printKeyboardEvent(e)}`);
1602
1595
  this._log(`| Converted keydown event - ${printStandardKeyboardEvent(keyEvent)}`);
1603
1596
  const shouldPreventDefault = this._dispatch(keyEvent, keyEvent.target);
@@ -1608,7 +1601,7 @@ let WorkbenchKeybindingService = class WorkbenchKeybindingService extends Abstra
1608
1601
  }));
1609
1602
  this._register(addDisposableListener(window, EventType.KEY_UP, (e) => {
1610
1603
  this.isComposingGlobalContextKey.set(e.isComposing);
1611
- const keyEvent = ( new StandardKeyboardEvent(e));
1604
+ const keyEvent = ( (new StandardKeyboardEvent(e)));
1612
1605
  const shouldPreventDefault = this._singleModifierDispatch(keyEvent, keyEvent.target);
1613
1606
  if (shouldPreventDefault) {
1614
1607
  keyEvent.preventDefault();
@@ -1643,9 +1636,13 @@ let WorkbenchKeybindingService = class WorkbenchKeybindingService extends Abstra
1643
1636
  _printUserBinding(parts) {
1644
1637
  return UserSettingsLabelProvider.toLabel(OS, parts, (part) => {
1645
1638
  if (part instanceof SimpleKeybinding) {
1646
- return ( KeyCodeUtils.toString(part.keyCode));
1639
+ return (
1640
+ (KeyCodeUtils.toString(part.keyCode))
1641
+ );
1647
1642
  }
1648
- return ( ScanCodeUtils.toString(part.scanCode));
1643
+ return (
1644
+ (ScanCodeUtils.toString(part.scanCode))
1645
+ );
1649
1646
  }) || '[null]';
1650
1647
  }
1651
1648
  _printResolvedKeybinding(resolvedKeybinding) {
@@ -1665,7 +1662,7 @@ let WorkbenchKeybindingService = class WorkbenchKeybindingService extends Abstra
1665
1662
  }
1666
1663
  }
1667
1664
  _dumpResolveKeybindingDebugInfo() {
1668
- const seenBindings = ( new Set());
1665
+ const seenBindings = ( (new Set()));
1669
1666
  const result = [];
1670
1667
  result.push(`Default Resolved Keybindings (unique only):`);
1671
1668
  for (const item of KeybindingsRegistry.getDefaultKeybindings()) {
@@ -1721,7 +1718,7 @@ let WorkbenchKeybindingService = class WorkbenchKeybindingService extends Abstra
1721
1718
  if (!this._cachedResolver) {
1722
1719
  const defaults = this._resolveKeybindingItems(KeybindingsRegistry.getDefaultKeybindings(), true);
1723
1720
  const overrides = this._resolveUserKeybindingItems(this.userKeybindings.keybindings.map((k) => KeybindingIO.readUserKeybindingItem(k)), false);
1724
- this._cachedResolver = ( new KeybindingResolver(defaults, overrides, (str) => this._log(str)));
1721
+ this._cachedResolver = ( (new KeybindingResolver(defaults, overrides, (str) => this._log(str))));
1725
1722
  }
1726
1723
  return this._cachedResolver;
1727
1724
  }
@@ -1735,7 +1732,7 @@ let WorkbenchKeybindingService = class WorkbenchKeybindingService extends Abstra
1735
1732
  const when = item.when || undefined;
1736
1733
  const keybinding = item.keybinding;
1737
1734
  if (!keybinding) {
1738
- result[resultLen++] = ( new ResolvedKeybindingItem(
1735
+ result[resultLen++] = ( (new ResolvedKeybindingItem(
1739
1736
  undefined,
1740
1737
  item.command,
1741
1738
  item.commandArgs,
@@ -1743,7 +1740,7 @@ let WorkbenchKeybindingService = class WorkbenchKeybindingService extends Abstra
1743
1740
  isDefault,
1744
1741
  item.extensionId,
1745
1742
  item.isBuiltinExtension
1746
- ));
1743
+ )));
1747
1744
  }
1748
1745
  else {
1749
1746
  if (this._assertBrowserConflicts(keybinding, item.command)) {
@@ -1752,7 +1749,7 @@ let WorkbenchKeybindingService = class WorkbenchKeybindingService extends Abstra
1752
1749
  const resolvedKeybindings = this._keyboardMapper.resolveUserBinding(keybinding);
1753
1750
  for (let i = resolvedKeybindings.length - 1; i >= 0; i--) {
1754
1751
  const resolvedKeybinding = resolvedKeybindings[i];
1755
- result[resultLen++] = ( new ResolvedKeybindingItem(
1752
+ result[resultLen++] = ( (new ResolvedKeybindingItem(
1756
1753
  resolvedKeybinding,
1757
1754
  item.command,
1758
1755
  item.commandArgs,
@@ -1760,7 +1757,7 @@ let WorkbenchKeybindingService = class WorkbenchKeybindingService extends Abstra
1760
1757
  isDefault,
1761
1758
  item.extensionId,
1762
1759
  item.isBuiltinExtension
1763
- ));
1760
+ )));
1764
1761
  }
1765
1762
  }
1766
1763
  }
@@ -1773,12 +1770,12 @@ let WorkbenchKeybindingService = class WorkbenchKeybindingService extends Abstra
1773
1770
  const when = item.when || undefined;
1774
1771
  const parts = item.parts;
1775
1772
  if (parts.length === 0) {
1776
- result[resultLen++] = ( new ResolvedKeybindingItem(undefined, item.command, item.commandArgs, when, isDefault, null, false));
1773
+ result[resultLen++] = ( (new ResolvedKeybindingItem(undefined, item.command, item.commandArgs, when, isDefault, null, false)));
1777
1774
  }
1778
1775
  else {
1779
1776
  const resolvedKeybindings = this._keyboardMapper.resolveUserBinding(parts);
1780
1777
  for (const resolvedKeybinding of resolvedKeybindings) {
1781
- result[resultLen++] = ( new ResolvedKeybindingItem(
1778
+ result[resultLen++] = ( (new ResolvedKeybindingItem(
1782
1779
  resolvedKeybinding,
1783
1780
  item.command,
1784
1781
  item.commandArgs,
@@ -1786,7 +1783,7 @@ let WorkbenchKeybindingService = class WorkbenchKeybindingService extends Abstra
1786
1783
  isDefault,
1787
1784
  null,
1788
1785
  false
1789
- ));
1786
+ )));
1790
1787
  }
1791
1788
  }
1792
1789
  }
@@ -1866,12 +1863,12 @@ let WorkbenchKeybindingService = class WorkbenchKeybindingService extends Abstra
1866
1863
  }
1867
1864
  }
1868
1865
  if (rejects.length > 0) {
1869
- collector.error(( localize(
1866
+ collector.error(( (localize(
1870
1867
  'invalid.keybindings',
1871
1868
  "Invalid `contributes.{0}`: {1}",
1872
1869
  keybindingsExtPoint.name,
1873
1870
  rejects.join('\n')
1874
- )));
1871
+ ))));
1875
1872
  }
1876
1873
  }
1877
1874
  static bindToCurrentPlatform(key, mac, linux, win) {
@@ -1937,7 +1934,7 @@ let WorkbenchKeybindingService = class WorkbenchKeybindingService extends Abstra
1937
1934
  + WorkbenchKeybindingService._getAllCommandsAsComment(boundCommands));
1938
1935
  }
1939
1936
  static _getDefaultKeybindings(defaultKeybindings) {
1940
- const out = ( new OutputBuilder());
1937
+ const out = ( (new OutputBuilder()));
1941
1938
  out.writeLine('[');
1942
1939
  const lastIndex = defaultKeybindings.length - 1;
1943
1940
  defaultKeybindings.forEach((k, index) => {
@@ -1950,12 +1947,14 @@ let WorkbenchKeybindingService = class WorkbenchKeybindingService extends Abstra
1950
1947
  }
1951
1948
  });
1952
1949
  out.writeLine(']');
1953
- return ( out.toString());
1950
+ return (
1951
+ (out.toString())
1952
+ );
1954
1953
  }
1955
1954
  static _getAllCommandsAsComment(boundCommands) {
1956
1955
  const unboundCommands = getAllUnboundCommands(boundCommands);
1957
1956
  const pretty = unboundCommands.sort().join('\n// - ');
1958
- return '// ' + ( localize('unboundCommands', "Here are other available commands: ")) + '\n// - ' + pretty;
1957
+ return '// ' + ( (localize('unboundCommands', "Here are other available commands: "))) + '\n// - ' + pretty;
1959
1958
  }
1960
1959
  mightProducePrintableCharacter(event) {
1961
1960
  if (event.ctrlKey || event.metaKey || event.altKey) {
@@ -1989,40 +1988,40 @@ let WorkbenchKeybindingService = class WorkbenchKeybindingService extends Abstra
1989
1988
  return true;
1990
1989
  }
1991
1990
  };
1992
- WorkbenchKeybindingService = ( __decorate([
1993
- ( __param(0, IContextKeyService)),
1994
- ( __param(1, ICommandService)),
1995
- ( __param(2, ITelemetryService)),
1996
- ( __param(3, INotificationService)),
1997
- ( __param(4, IUserDataProfileService)),
1998
- ( __param(5, IConfigurationService)),
1999
- ( __param(6, IHostService)),
2000
- ( __param(7, IExtensionService)),
2001
- ( __param(8, IFileService)),
2002
- ( __param(9, ILogService)),
2003
- ( __param(10, IKeyboardLayoutService))
2004
- ], WorkbenchKeybindingService));
1991
+ WorkbenchKeybindingService = ( (__decorate([
1992
+ ( (__param(0, IContextKeyService))),
1993
+ ( (__param(1, ICommandService))),
1994
+ ( (__param(2, ITelemetryService))),
1995
+ ( (__param(3, INotificationService))),
1996
+ ( (__param(4, IUserDataProfileService))),
1997
+ ( (__param(5, IConfigurationService))),
1998
+ ( (__param(6, IHostService))),
1999
+ ( (__param(7, IExtensionService))),
2000
+ ( (__param(8, IFileService))),
2001
+ ( (__param(9, ILogService))),
2002
+ ( (__param(10, IKeyboardLayoutService)))
2003
+ ], WorkbenchKeybindingService)));
2005
2004
  class UserKeybindings extends Disposable {
2006
2005
  constructor(userDataProfileService, fileService, logService) {
2007
2006
  super();
2008
2007
  this.userDataProfileService = userDataProfileService;
2009
2008
  this.fileService = fileService;
2010
2009
  this._keybindings = [];
2011
- this.watchDisposables = this._register(( new DisposableStore()));
2012
- this._onDidChange = this._register(( new Emitter()));
2010
+ this.watchDisposables = this._register(( (new DisposableStore())));
2011
+ this._onDidChange = this._register(( (new Emitter())));
2013
2012
  this.onDidChange = this._onDidChange.event;
2014
2013
  this.watch();
2015
- this.reloadConfigurationScheduler = this._register(( new RunOnceScheduler(() => this.reload().then(changed => {
2014
+ this.reloadConfigurationScheduler = this._register(( (new RunOnceScheduler(() => this.reload().then(changed => {
2016
2015
  if (changed) {
2017
2016
  this._onDidChange.fire();
2018
2017
  }
2019
- }), 50)));
2018
+ }), 50))));
2020
2019
  this._register(Event.filter(this.fileService.onDidFilesChange, e => e.contains(this.userDataProfileService.currentProfile.keybindingsResource))(() => {
2021
2020
  logService.debug('Keybindings file changed');
2022
2021
  this.reloadConfigurationScheduler.schedule();
2023
2022
  }));
2024
2023
  this._register(this.fileService.onDidRunOperation((e) => {
2025
- if (e.operation === 4 && ( e.resource.toString()) === ( this.userDataProfileService.currentProfile.keybindingsResource.toString())) {
2024
+ if (e.operation === 4 && ( (e.resource.toString())) === ( (this.userDataProfileService.currentProfile.keybindingsResource.toString()))) {
2026
2025
  logService.debug('Keybindings file written');
2027
2026
  this.reloadConfigurationScheduler.schedule();
2028
2027
  }
@@ -2051,7 +2050,7 @@ class UserKeybindings extends Disposable {
2051
2050
  const existing = this._keybindings;
2052
2051
  try {
2053
2052
  const content = await this.fileService.readFile(this.userDataProfileService.currentProfile.keybindingsResource);
2054
- const value = parse(( content.value.toString()));
2053
+ const value = parse(( (content.value.toString())));
2055
2054
  this._keybindings = isArray(value) ? value : [];
2056
2055
  }
2057
2056
  catch (e) {
@@ -2067,7 +2066,7 @@ const commandsEnumDescriptions = [];
2067
2066
  const schema = {
2068
2067
  id: schemaId,
2069
2068
  type: 'array',
2070
- title: ( localize('keybindings.json.title', "Keybindings configuration")),
2069
+ title: ( (localize('keybindings.json.title', "Keybindings configuration"))),
2071
2070
  allowTrailingCommas: true,
2072
2071
  allowComments: true,
2073
2072
  definitions: {
@@ -2095,7 +2094,7 @@ const schema = {
2095
2094
  'properties': {
2096
2095
  'key': {
2097
2096
  'type': 'string',
2098
- 'description': ( localize('keybindings.json.key', "Key or key sequence (separated by space)")),
2097
+ 'description': ( (localize('keybindings.json.key', "Key or key sequence (separated by space)"))),
2099
2098
  },
2100
2099
  'command': {
2101
2100
  'anyOf': [
@@ -2103,7 +2102,7 @@ const schema = {
2103
2102
  'type': 'string',
2104
2103
  'enum': commandsEnum,
2105
2104
  'enumDescriptions': commandsEnumDescriptions,
2106
- 'description': ( localize('keybindings.json.command', "Name of the command to execute")),
2105
+ 'description': ( (localize('keybindings.json.command', "Name of the command to execute"))),
2107
2106
  },
2108
2107
  {
2109
2108
  'type': 'string'
@@ -2112,22 +2111,22 @@ const schema = {
2112
2111
  },
2113
2112
  'when': {
2114
2113
  'type': 'string',
2115
- 'description': ( localize('keybindings.json.when', "Condition when the key is active."))
2114
+ 'description': ( (localize('keybindings.json.when', "Condition when the key is active.")))
2116
2115
  },
2117
2116
  'args': {
2118
- 'description': ( localize('keybindings.json.args', "Arguments to pass to the command to execute."))
2117
+ 'description': ( (localize('keybindings.json.args', "Arguments to pass to the command to execute.")))
2119
2118
  }
2120
2119
  },
2121
2120
  'allOf': commandsSchemas
2122
2121
  }
2123
2122
  };
2124
- const schemaRegistry = ( Registry.as(Extensions.JSONContribution));
2123
+ const schemaRegistry = ( (Registry.as(Extensions.JSONContribution)));
2125
2124
  schemaRegistry.registerSchema(schemaId, schema);
2126
2125
  function updateSchema(additionalContributions) {
2127
2126
  commandsSchemas.length = 0;
2128
2127
  commandsEnum.length = 0;
2129
2128
  commandsEnumDescriptions.length = 0;
2130
- const knownCommands = ( new Set());
2129
+ const knownCommands = ( (new Set()));
2131
2130
  const addKnownCommand = (commandId, description) => {
2132
2131
  if (!/^_/.test(commandId)) {
2133
2132
  if (!knownCommands.has(commandId)) {
@@ -2166,28 +2165,28 @@ function updateSchema(additionalContributions) {
2166
2165
  commandsSchemas.push(addition);
2167
2166
  }
2168
2167
  const menuCommands = MenuRegistry.getCommands();
2169
- for (const commandId of ( menuCommands.keys())) {
2168
+ for (const commandId of ( (menuCommands.keys()))) {
2170
2169
  addKnownCommand(commandId);
2171
2170
  }
2172
2171
  commandsSchemas.push(...additionalContributions);
2173
2172
  schemaRegistry.notifySchemaChanged(schemaId);
2174
2173
  }
2175
- const configurationRegistry = ( Registry.as(Extensions$1.Configuration));
2174
+ const configurationRegistry = ( (Registry.as(Extensions$1.Configuration)));
2176
2175
  const keyboardConfiguration = {
2177
2176
  'id': 'keyboard',
2178
2177
  'order': 15,
2179
2178
  'type': 'object',
2180
- 'title': ( localize('keyboardConfigurationTitle', "Keyboard")),
2179
+ 'title': ( (localize('keyboardConfigurationTitle', "Keyboard"))),
2181
2180
  'properties': {
2182
2181
  'keyboard.dispatch': {
2183
2182
  scope: 1 ,
2184
2183
  type: 'string',
2185
2184
  enum: ['code', 'keyCode'],
2186
2185
  default: 'code',
2187
- markdownDescription: ( localize(
2186
+ markdownDescription: ( (localize(
2188
2187
  'dispatch',
2189
2188
  "Controls the dispatching logic for key presses to use either `code` (recommended) or `keyCode`."
2190
- )),
2189
+ ))),
2191
2190
  included: OS === 2 || OS === 3
2192
2191
  }
2193
2192
  }
@@ -2198,7 +2197,7 @@ let CommandsQuickAccessProvider = class CommandsQuickAccessProvider extends Abst
2198
2197
  super({
2199
2198
  showAlias: !Language.isDefaultVariant(),
2200
2199
  noResultsPick: {
2201
- label: ( localize('noCommandResults', "No matching commands")),
2200
+ label: ( (localize('noCommandResults', "No matching commands"))),
2202
2201
  commandId: ''
2203
2202
  }
2204
2203
  }, instantiationService, keybindingService, commandService, telemetryService, dialogService);
@@ -2238,7 +2237,7 @@ let CommandsQuickAccessProvider = class CommandsQuickAccessProvider extends Abst
2238
2237
  ...c,
2239
2238
  buttons: [{
2240
2239
  iconClass: Codicon.gear.classNames,
2241
- tooltip: ( localize('configure keybinding', "Configure Keybinding")),
2240
+ tooltip: ( (localize('configure keybinding', "Configure Keybinding"))),
2242
2241
  }],
2243
2242
  trigger: () => {
2244
2243
  this.preferencesService.openGlobalKeybindingSettings(false, { query: `@command:${c.commandId}` });
@@ -2257,7 +2256,7 @@ let CommandsQuickAccessProvider = class CommandsQuickAccessProvider extends Abst
2257
2256
  let label = (typeof action.item.title === 'string' ? action.item.title : action.item.title.value) || action.item.id;
2258
2257
  const category = typeof action.item.category === 'string' ? action.item.category : action.item.category?.value;
2259
2258
  if (category) {
2260
- label = ( localize('commandWithCategory', "{0}: {1}", category, label));
2259
+ label = ( (localize('commandWithCategory', "{0}: {1}", category, label)));
2261
2260
  }
2262
2261
  const aliasLabel = typeof action.item.title !== 'string' ? action.item.title.original : undefined;
2263
2262
  const aliasCategory = (category && action.item.category && typeof action.item.category !== 'string') ? action.item.category.original : undefined;
@@ -2275,68 +2274,19 @@ let CommandsQuickAccessProvider = class CommandsQuickAccessProvider extends Abst
2275
2274
  return globalCommandPicks;
2276
2275
  }
2277
2276
  };
2278
- CommandsQuickAccessProvider = ( __decorate([
2279
- ( __param(0, IEditorService)),
2280
- ( __param(1, IMenuService)),
2281
- ( __param(2, IExtensionService)),
2282
- ( __param(3, IInstantiationService)),
2283
- ( __param(4, IKeybindingService)),
2284
- ( __param(5, ICommandService)),
2285
- ( __param(6, ITelemetryService)),
2286
- ( __param(7, IDialogService)),
2287
- ( __param(8, IConfigurationService)),
2288
- ( __param(9, IEditorGroupsService)),
2289
- ( __param(10, IPreferencesService))
2290
- ], CommandsQuickAccessProvider));
2291
- class ShowAllCommandsAction extends Action2 {
2292
- constructor() {
2293
- super({
2294
- id: ShowAllCommandsAction.ID,
2295
- title: { value: ( localize('showTriggerActions', "Show All Commands")), original: 'Show All Commands' },
2296
- keybinding: {
2297
- weight: 200 ,
2298
- when: undefined,
2299
- primary: !isFirefox ? ((2048 | 1024 | 46) ) : undefined,
2300
- secondary: [59 ]
2301
- },
2302
- f1: true
2303
- });
2304
- }
2305
- async run(accessor) {
2306
- accessor.get(IQuickInputService).quickAccess.show(CommandsQuickAccessProvider.PREFIX);
2307
- }
2308
- }
2309
- ShowAllCommandsAction.ID = 'workbench.action.showCommands';
2310
- class ClearCommandHistoryAction extends Action2 {
2311
- constructor() {
2312
- super({
2313
- id: 'workbench.action.clearCommandHistory',
2314
- title: { value: ( localize('clearCommandHistory', "Clear Command History")), original: 'Clear Command History' },
2315
- f1: true
2316
- });
2317
- }
2318
- async run(accessor) {
2319
- const configurationService = accessor.get(IConfigurationService);
2320
- const storageService = accessor.get(IStorageService);
2321
- const dialogService = accessor.get(IDialogService);
2322
- const commandHistoryLength = CommandsHistory.getConfiguredCommandHistoryLength(configurationService);
2323
- if (commandHistoryLength > 0) {
2324
- const { confirmed } = await dialogService.confirm({
2325
- message: ( localize(
2326
- 'confirmClearMessage',
2327
- "Do you want to clear the history of recently used commands?"
2328
- )),
2329
- detail: ( localize('confirmClearDetail', "This action is irreversible!")),
2330
- primaryButton: ( localize({ key: 'clearButtonLabel', comment: ['&& denotes a mnemonic'] }, "&&Clear")),
2331
- type: 'warning'
2332
- });
2333
- if (!confirmed) {
2334
- return;
2335
- }
2336
- CommandsHistory.clearHistory(configurationService, storageService);
2337
- }
2338
- }
2339
- }
2277
+ CommandsQuickAccessProvider = ( (__decorate([
2278
+ ( (__param(0, IEditorService))),
2279
+ ( (__param(1, IMenuService))),
2280
+ ( (__param(2, IExtensionService))),
2281
+ ( (__param(3, IInstantiationService))),
2282
+ ( (__param(4, IKeybindingService))),
2283
+ ( (__param(5, ICommandService))),
2284
+ ( (__param(6, ITelemetryService))),
2285
+ ( (__param(7, IDialogService))),
2286
+ ( (__param(8, IConfigurationService))),
2287
+ ( (__param(9, IEditorGroupsService))),
2288
+ ( (__param(10, IPreferencesService)))
2289
+ ], CommandsQuickAccessProvider)));
2340
2290
  let DelegateStandaloneKeybindingService = class DelegateStandaloneKeybindingService extends createInjectedClass(StandaloneKeybindingService) {
2341
2291
  constructor(instantiationService) {
2342
2292
  super(instantiationService);
@@ -2358,10 +2308,10 @@ let DelegateStandaloneKeybindingService = class DelegateStandaloneKeybindingServ
2358
2308
  return this._cachedOverridenResolver;
2359
2309
  }
2360
2310
  };
2361
- DelegateStandaloneKeybindingService = __decorate([
2362
- __param(0, IInstantiationService)
2363
- ], DelegateStandaloneKeybindingService);
2364
- const quickAccessRegistry = Registry.as(Extensions$2.Quickaccess);
2311
+ DelegateStandaloneKeybindingService = ( __decorate([
2312
+ ( __param(0, IInstantiationService))
2313
+ ], DelegateStandaloneKeybindingService));
2314
+ const quickAccessRegistry = ( Registry.as(Extensions$2.Quickaccess));
2365
2315
  const provider = quickAccessRegistry.getQuickAccessProviders().find(provider => provider.ctor === StandaloneCommandsQuickAccessProvider);
2366
2316
  if (provider != null) {
2367
2317
  provider.ctor = class extends CommandsQuickAccessProvider {
@@ -2397,7 +2347,7 @@ function updateUserKeybindings(keybindingsJson) {
2397
2347
  function getServiceOverride() {
2398
2348
  return {
2399
2349
  ...getServiceOverride$1(),
2400
- [IKeybindingService.toString()]: new SyncDescriptor(DelegateStandaloneKeybindingService)
2350
+ [( IKeybindingService.toString())]: new SyncDescriptor(DelegateStandaloneKeybindingService)
2401
2351
  };
2402
2352
  }
2403
2353
  export { getServiceOverride as default, setCommands, setKeybindings, updateUserKeybindings };