@codingame/monaco-vscode-output-service-override 25.1.2 → 26.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -42,7 +42,7 @@ import { basename } from '@codingame/monaco-vscode-api/vscode/vs/base/common/res
42
42
  import { hasKey } from '@codingame/monaco-vscode-api/vscode/vs/base/common/types';
43
43
  import { IDefaultLogLevelsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/log/common/defaultLogLevels.service';
44
44
 
45
- const IMPORTED_LOG_ID_PREFIX = 'importedLog.';
45
+ const IMPORTED_LOG_ID_PREFIX = "importedLog.";
46
46
  ModesRegistry.registerLanguage({
47
47
  id: OUTPUT_MODE_ID,
48
48
  extensions: [],
@@ -53,38 +53,39 @@ ModesRegistry.registerLanguage({
53
53
  extensions: [],
54
54
  mimetypes: [LOG_MIME]
55
55
  });
56
- const outputViewIcon = registerIcon('output-view-icon', Codicon.output, ( localize(9790, 'View icon of the output view.')));
56
+ const outputViewIcon = registerIcon("output-view-icon", Codicon.output, ( localize(10110, "View icon of the output view.")));
57
57
  const VIEW_CONTAINER = ( Registry.as(Extensions.ViewContainersRegistry)).registerViewContainer({
58
58
  id: OUTPUT_VIEW_ID,
59
- title: ( localize2(9791, "Output")),
59
+ title: ( localize2(10111, "Output")),
60
60
  icon: outputViewIcon,
61
61
  order: 1,
62
- ctorDescriptor: ( new SyncDescriptor(
63
- ViewPaneContainer,
64
- [OUTPUT_VIEW_ID, { mergeViewWithContainerWhenSingleView: true }]
65
- )),
62
+ ctorDescriptor: ( new SyncDescriptor(ViewPaneContainer, [OUTPUT_VIEW_ID, {
63
+ mergeViewWithContainerWhenSingleView: true
64
+ }])),
66
65
  storageId: OUTPUT_VIEW_ID,
67
- hideIfEmpty: true,
68
- }, ViewContainerLocation.Panel, { doNotRegisterOpenCommand: true });
66
+ hideIfEmpty: true
67
+ }, ViewContainerLocation.Panel, {
68
+ doNotRegisterOpenCommand: true
69
+ });
69
70
  ( Registry.as(Extensions.ViewsRegistry)).registerViews([{
70
- id: OUTPUT_VIEW_ID,
71
- name: ( localize2(9791, "Output")),
72
- containerIcon: outputViewIcon,
73
- canMoveView: true,
74
- canToggleVisibility: true,
75
- ctorDescriptor: ( new SyncDescriptor(OutputViewPane)),
76
- openCommandActionDescriptor: {
77
- id: 'workbench.action.output.toggleOutput',
78
- mnemonicTitle: ( localize(9792, "&&Output")),
79
- keybindings: {
80
- primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyU,
81
- linux: {
82
- primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KeyK, KeyMod.CtrlCmd | KeyCode.KeyH)
83
- }
84
- },
85
- order: 1,
86
- }
87
- }], VIEW_CONTAINER);
71
+ id: OUTPUT_VIEW_ID,
72
+ name: ( localize2(10111, "Output")),
73
+ containerIcon: outputViewIcon,
74
+ canMoveView: true,
75
+ canToggleVisibility: true,
76
+ ctorDescriptor: ( new SyncDescriptor(OutputViewPane)),
77
+ openCommandActionDescriptor: {
78
+ id: "workbench.action.output.toggleOutput",
79
+ mnemonicTitle: ( localize(10112, "&&Output")),
80
+ keybindings: {
81
+ primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyU,
82
+ linux: {
83
+ primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KeyK, KeyMod.CtrlCmd | KeyCode.KeyH)
84
+ }
85
+ },
86
+ order: 1
87
+ }
88
+ }], VIEW_CONTAINER);
88
89
  let OutputContribution = class OutputContribution extends Disposable {
89
90
  constructor(outputService, editorService) {
90
91
  super();
@@ -115,7 +116,7 @@ let OutputContribution = class OutputContribution extends Disposable {
115
116
  constructor() {
116
117
  super({
117
118
  id: `workbench.output.action.switchBetweenOutputs`,
118
- title: ( localize(9793, "Switch Output")),
119
+ title: ( localize(10113, "Switch Output"))
119
120
  });
120
121
  }
121
122
  async run(accessor, channelId) {
@@ -124,21 +125,21 @@ let OutputContribution = class OutputContribution extends Disposable {
124
125
  }
125
126
  }
126
127
  }));
127
- const switchOutputMenu = ( new MenuId('workbench.output.menu.switchOutput'));
128
+ const switchOutputMenu = ( new MenuId("workbench.output.menu.switchOutput"));
128
129
  this._register(MenuRegistry.appendMenuItem(MenuId.ViewTitle, {
129
130
  submenu: switchOutputMenu,
130
- title: ( localize(9794, "Switch Output")),
131
- group: 'navigation',
132
- when: ( ContextKeyExpr.equals('view', OUTPUT_VIEW_ID)),
131
+ title: ( localize(10114, "Switch Output")),
132
+ group: "navigation",
133
+ when: ( ContextKeyExpr.equals("view", OUTPUT_VIEW_ID)),
133
134
  order: 1,
134
135
  isSelection: true
135
136
  }));
136
137
  const registeredChannels = ( new Map());
137
138
  this._register(toDisposable(() => dispose(( registeredChannels.values()))));
138
- const registerOutputChannels = (channels) => {
139
+ const registerOutputChannels = channels => {
139
140
  for (const channel of channels) {
140
141
  const title = channel.label;
141
- const group = channel.user ? '2_user_outputchannels' : channel.extensionId ? '0_ext_outputchannels' : '1_core_outputchannels';
142
+ const group = channel.user ? "2_user_outputchannels" : channel.extensionId ? "0_ext_outputchannels" : "1_core_outputchannels";
142
143
  registeredChannels.set(channel.id, registerAction2(class extends Action2 {
143
144
  constructor() {
144
145
  super({
@@ -147,7 +148,7 @@ let OutputContribution = class OutputContribution extends Disposable {
147
148
  toggled: ( ACTIVE_OUTPUT_CHANNEL_CONTEXT.isEqualTo(channel.id)),
148
149
  menu: {
149
150
  id: switchOutputMenu,
150
- group,
151
+ group
151
152
  }
152
153
  });
153
154
  }
@@ -174,15 +175,15 @@ let OutputContribution = class OutputContribution extends Disposable {
174
175
  this._register(registerAction2(class extends Action2 {
175
176
  constructor() {
176
177
  super({
177
- id: 'workbench.action.output.addCompoundLog',
178
- title: ( localize2(9795, "Add Compound Log...")),
179
- category: ( localize2(9791, "Output")),
178
+ id: "workbench.action.output.addCompoundLog",
179
+ title: ( localize2(10115, "Add Compound Log...")),
180
+ category: ( localize2(10111, "Output")),
180
181
  f1: true,
181
182
  menu: [{
182
- id: MenuId.ViewTitle,
183
- when: ( ContextKeyExpr.equals('view', OUTPUT_VIEW_ID)),
184
- group: '2_add',
185
- }],
183
+ id: MenuId.ViewTitle,
184
+ when: ( ContextKeyExpr.equals("view", OUTPUT_VIEW_ID)),
185
+ group: "2_add"
186
+ }]
186
187
  });
187
188
  }
188
189
  async run(accessor) {
@@ -193,8 +194,7 @@ let OutputContribution = class OutputContribution extends Disposable {
193
194
  if (channel.log && !channel.user) {
194
195
  if (channel.extensionId) {
195
196
  extensionLogs.push(channel);
196
- }
197
- else {
197
+ } else {
198
198
  logs.push(channel);
199
199
  }
200
200
  }
@@ -204,12 +204,18 @@ let OutputContribution = class OutputContribution extends Disposable {
204
204
  entries.push(log);
205
205
  }
206
206
  if (extensionLogs.length && logs.length) {
207
- entries.push({ type: 'separator', label: ( localize(9796, "Extension Logs")) });
207
+ entries.push({
208
+ type: "separator",
209
+ label: ( localize(10116, "Extension Logs"))
210
+ });
208
211
  }
209
212
  for (const log of extensionLogs.sort((a, b) => a.label.localeCompare(b.label))) {
210
213
  entries.push(log);
211
214
  }
212
- const result = await quickInputService.pick(entries, { placeHolder: ( localize(9797, "Select Log")), canPickMany: true });
215
+ const result = await quickInputService.pick(entries, {
216
+ placeHolder: ( localize(10117, "Select Log")),
217
+ canPickMany: true
218
+ });
213
219
  if (result?.length) {
214
220
  outputService.showChannel(outputService.registerCompoundLogChannel(result));
215
221
  }
@@ -220,9 +226,9 @@ let OutputContribution = class OutputContribution extends Disposable {
220
226
  this._register(registerAction2(class extends Action2 {
221
227
  constructor() {
222
228
  super({
223
- id: 'workbench.action.output.remove',
224
- title: ( localize2(9798, "Remove Output...")),
225
- category: ( localize2(9791, "Output")),
229
+ id: "workbench.action.output.remove",
230
+ title: ( localize2(10118, "Remove Output...")),
231
+ category: ( localize2(10111, "Output")),
226
232
  f1: true
227
233
  });
228
234
  }
@@ -232,10 +238,13 @@ let OutputContribution = class OutputContribution extends Disposable {
232
238
  const notificationService = accessor.get(INotificationService);
233
239
  const entries = outputService.getChannelDescriptors().filter(channel => channel.user);
234
240
  if (entries.length === 0) {
235
- notificationService.info(( localize(9799, "No custom outputs to remove.")));
241
+ notificationService.info(( localize(10119, "No custom outputs to remove.")));
236
242
  return;
237
243
  }
238
- const result = await quickInputService.pick(entries, { placeHolder: ( localize(9797, "Select Log")), canPickMany: true });
244
+ const result = await quickInputService.pick(entries, {
245
+ placeHolder: ( localize(10117, "Select Log")),
246
+ canPickMany: true
247
+ });
239
248
  if (!result?.length) {
240
249
  return;
241
250
  }
@@ -250,9 +259,9 @@ let OutputContribution = class OutputContribution extends Disposable {
250
259
  this._register(registerAction2(class extends Action2 {
251
260
  constructor() {
252
261
  super({
253
- id: 'workbench.action.showOutputChannels',
254
- title: ( localize2(9800, "Show Output Channels...")),
255
- category: ( localize2(9791, "Output")),
262
+ id: "workbench.action.showOutputChannels",
263
+ title: ( localize2(10120, "Show Output Channels...")),
264
+ category: ( localize2(10111, "Output")),
256
265
  f1: true
257
266
  });
258
267
  }
@@ -263,22 +272,37 @@ let OutputContribution = class OutputContribution extends Disposable {
263
272
  for (const channel of outputService.getChannelDescriptors()) {
264
273
  if (channel.extensionId) {
265
274
  extensionChannels.push(channel);
266
- }
267
- else {
275
+ } else {
268
276
  coreChannels.push(channel);
269
277
  }
270
278
  }
271
279
  const entries = [];
272
- for (const { id, label } of extensionChannels) {
273
- entries.push({ id, label });
280
+ for (const {
281
+ id,
282
+ label
283
+ } of extensionChannels) {
284
+ entries.push({
285
+ id,
286
+ label
287
+ });
274
288
  }
275
289
  if (extensionChannels.length && coreChannels.length) {
276
- entries.push({ type: 'separator' });
290
+ entries.push({
291
+ type: "separator"
292
+ });
277
293
  }
278
- for (const { id, label } of coreChannels) {
279
- entries.push({ id, label });
294
+ for (const {
295
+ id,
296
+ label
297
+ } of coreChannels) {
298
+ entries.push({
299
+ id,
300
+ label
301
+ });
280
302
  }
281
- const entry = await quickInputService.pick(entries, { placeHolder: ( localize(9801, "Select Output Channel")) });
303
+ const entry = await quickInputService.pick(entries, {
304
+ placeHolder: ( localize(10121, "Select Output Channel"))
305
+ });
282
306
  if (entry) {
283
307
  return outputService.showChannel(entry.id);
284
308
  }
@@ -290,19 +314,19 @@ let OutputContribution = class OutputContribution extends Disposable {
290
314
  constructor() {
291
315
  super({
292
316
  id: `workbench.output.action.clearOutput`,
293
- title: ( localize2(9802, "Clear Output")),
317
+ title: ( localize2(10122, "Clear Output")),
294
318
  category: Categories.View,
295
319
  menu: [{
296
- id: MenuId.ViewTitle,
297
- when: ( ContextKeyExpr.equals('view', OUTPUT_VIEW_ID)),
298
- group: 'navigation',
299
- order: 2
300
- }, {
301
- id: MenuId.CommandPalette
302
- }, {
303
- id: MenuId.EditorContext,
304
- when: CONTEXT_IN_OUTPUT
305
- }],
320
+ id: MenuId.ViewTitle,
321
+ when: ( ContextKeyExpr.equals("view", OUTPUT_VIEW_ID)),
322
+ group: "navigation",
323
+ order: 2
324
+ }, {
325
+ id: MenuId.CommandPalette
326
+ }, {
327
+ id: MenuId.EditorContext,
328
+ when: CONTEXT_IN_OUTPUT
329
+ }],
306
330
  icon: Codicon.clearAll
307
331
  });
308
332
  }
@@ -322,19 +346,19 @@ let OutputContribution = class OutputContribution extends Disposable {
322
346
  constructor() {
323
347
  super({
324
348
  id: `workbench.output.action.toggleAutoScroll`,
325
- title: ( localize2(9803, "Toggle Auto Scrolling")),
326
- tooltip: ( localize(9804, "Turn Auto Scrolling Off")),
349
+ title: ( localize2(10123, "Toggle Auto Scrolling")),
350
+ tooltip: ( localize(10124, "Turn Auto Scrolling Off")),
327
351
  menu: {
328
352
  id: MenuId.ViewTitle,
329
- when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('view', OUTPUT_VIEW_ID)))),
330
- group: 'navigation',
331
- order: 3,
353
+ when: ( ContextKeyExpr.and(( ContextKeyExpr.equals("view", OUTPUT_VIEW_ID)))),
354
+ group: "navigation",
355
+ order: 3
332
356
  },
333
357
  icon: Codicon.lock,
334
358
  toggled: {
335
359
  condition: CONTEXT_OUTPUT_SCROLL_LOCK,
336
360
  icon: Codicon.unlock,
337
- tooltip: ( localize(9805, "Turn Auto Scrolling On"))
361
+ tooltip: ( localize(10125, "Turn Auto Scrolling On"))
338
362
  }
339
363
  });
340
364
  }
@@ -350,15 +374,15 @@ let OutputContribution = class OutputContribution extends Disposable {
350
374
  constructor() {
351
375
  super({
352
376
  id: `workbench.action.openActiveLogOutputFile`,
353
- title: ( localize2(9806, "Open Output in Editor")),
377
+ title: ( localize2(10126, "Open Output in Editor")),
354
378
  menu: [{
355
- id: MenuId.ViewTitle,
356
- when: ( ContextKeyExpr.equals('view', OUTPUT_VIEW_ID)),
357
- group: 'navigation',
358
- order: 4,
359
- isHiddenByDefault: true
360
- }],
361
- icon: Codicon.goToFile,
379
+ id: MenuId.ViewTitle,
380
+ when: ( ContextKeyExpr.equals("view", OUTPUT_VIEW_ID)),
381
+ group: "navigation",
382
+ order: 4,
383
+ isHiddenByDefault: true
384
+ }],
385
+ icon: Codicon.goToFile
362
386
  });
363
387
  }
364
388
  async run() {
@@ -372,15 +396,15 @@ let OutputContribution = class OutputContribution extends Disposable {
372
396
  constructor() {
373
397
  super({
374
398
  id: `workbench.action.openActiveLogOutputFileInNewWindow`,
375
- title: ( localize2(9807, "Open Output in New Window")),
399
+ title: ( localize2(10127, "Open Output in New Window")),
376
400
  menu: [{
377
- id: MenuId.ViewTitle,
378
- when: ( ContextKeyExpr.equals('view', OUTPUT_VIEW_ID)),
379
- group: 'navigation',
380
- order: 5,
381
- isHiddenByDefault: true
382
- }],
383
- icon: Codicon.emptyWindow,
401
+ id: MenuId.ViewTitle,
402
+ when: ( ContextKeyExpr.equals("view", OUTPUT_VIEW_ID)),
403
+ group: "navigation",
404
+ order: 5,
405
+ isHiddenByDefault: true
406
+ }],
407
+ icon: Codicon.emptyWindow
384
408
  });
385
409
  }
386
410
  async run() {
@@ -393,13 +417,13 @@ let OutputContribution = class OutputContribution extends Disposable {
393
417
  constructor() {
394
418
  super({
395
419
  id: `workbench.action.saveActiveLogOutputAs`,
396
- title: ( localize2(9808, "Save Output As...")),
420
+ title: ( localize2(10128, "Save Output As...")),
397
421
  menu: [{
398
- id: MenuId.ViewTitle,
399
- when: ( ContextKeyExpr.equals('view', OUTPUT_VIEW_ID)),
400
- group: '1_export',
401
- order: 1
402
- }],
422
+ id: MenuId.ViewTitle,
423
+ when: ( ContextKeyExpr.equals("view", OUTPUT_VIEW_ID)),
424
+ group: "1_export",
425
+ order: 1
426
+ }]
403
427
  });
404
428
  }
405
429
  async run(accessor) {
@@ -420,23 +444,23 @@ let OutputContribution = class OutputContribution extends Disposable {
420
444
  await this.editorService.openEditor({
421
445
  resource: channel.uri,
422
446
  options: {
423
- pinned: true,
424
- },
447
+ pinned: true
448
+ }
425
449
  }, group);
426
450
  }
427
451
  }
428
452
  registerConfigureActiveOutputLogLevelAction() {
429
- const logLevelMenu = ( new MenuId('workbench.output.menu.logLevel'));
453
+ const logLevelMenu = ( new MenuId("workbench.output.menu.logLevel"));
430
454
  this._register(MenuRegistry.appendMenuItem(MenuId.ViewTitle, {
431
455
  submenu: logLevelMenu,
432
- title: ( localize(9809, "Set Log Level...")),
433
- group: 'navigation',
434
- when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('view', OUTPUT_VIEW_ID)), CONTEXT_ACTIVE_OUTPUT_LEVEL_SETTABLE)),
456
+ title: ( localize(10129, "Set Log Level...")),
457
+ group: "navigation",
458
+ when: ( ContextKeyExpr.and(( ContextKeyExpr.equals("view", OUTPUT_VIEW_ID)), CONTEXT_ACTIVE_OUTPUT_LEVEL_SETTABLE)),
435
459
  icon: Codicon.gear,
436
460
  order: 6
437
461
  }));
438
462
  let order = 0;
439
- const registerLogLevel = (logLevel) => {
463
+ const registerLogLevel = logLevel => {
440
464
  this._register(registerAction2(class extends Action2 {
441
465
  constructor() {
442
466
  super({
@@ -446,7 +470,7 @@ let OutputContribution = class OutputContribution extends Disposable {
446
470
  menu: {
447
471
  id: logLevelMenu,
448
472
  order: order++,
449
- group: '0_level'
473
+ group: "0_level"
450
474
  }
451
475
  });
452
476
  }
@@ -472,11 +496,11 @@ let OutputContribution = class OutputContribution extends Disposable {
472
496
  constructor() {
473
497
  super({
474
498
  id: `workbench.action.output.activeOutputLogLevelDefault`,
475
- title: ( localize(9810, "Set As Default")),
499
+ title: ( localize(10130, "Set As Default")),
476
500
  menu: {
477
501
  id: logLevelMenu,
478
502
  order,
479
- group: '1_default'
503
+ group: "1_default"
480
504
  },
481
505
  precondition: ( CONTEXT_ACTIVE_OUTPUT_LEVEL_IS_DEFAULT.negate())
482
506
  });
@@ -500,12 +524,12 @@ let OutputContribution = class OutputContribution extends Disposable {
500
524
  this._register(registerAction2(class extends Action2 {
501
525
  constructor() {
502
526
  super({
503
- id: 'workbench.action.showLogs',
504
- title: ( localize2(9811, "Show Logs...")),
527
+ id: "workbench.action.showLogs",
528
+ title: ( localize2(10131, "Show Logs...")),
505
529
  category: Categories.Developer,
506
530
  menu: {
507
- id: MenuId.CommandPalette,
508
- },
531
+ id: MenuId.CommandPalette
532
+ }
509
533
  });
510
534
  }
511
535
  async run(accessor) {
@@ -516,23 +540,39 @@ let OutputContribution = class OutputContribution extends Disposable {
516
540
  if (channel.log) {
517
541
  if (channel.extensionId) {
518
542
  extensionLogs.push(channel);
519
- }
520
- else {
543
+ } else {
521
544
  logs.push(channel);
522
545
  }
523
546
  }
524
547
  }
525
548
  const entries = [];
526
- for (const { id, label } of logs) {
527
- entries.push({ id, label });
549
+ for (const {
550
+ id,
551
+ label
552
+ } of logs) {
553
+ entries.push({
554
+ id,
555
+ label
556
+ });
528
557
  }
529
558
  if (extensionLogs.length && logs.length) {
530
- entries.push({ type: 'separator', label: ( localize(9796, "Extension Logs")) });
559
+ entries.push({
560
+ type: "separator",
561
+ label: ( localize(10116, "Extension Logs"))
562
+ });
531
563
  }
532
- for (const { id, label } of extensionLogs) {
533
- entries.push({ id, label });
564
+ for (const {
565
+ id,
566
+ label
567
+ } of extensionLogs) {
568
+ entries.push({
569
+ id,
570
+ label
571
+ });
534
572
  }
535
- const entry = await quickInputService.pick(entries, { placeHolder: ( localize(9797, "Select Log")) });
573
+ const entry = await quickInputService.pick(entries, {
574
+ placeHolder: ( localize(10117, "Select Log"))
575
+ });
536
576
  if (entry) {
537
577
  return outputService.showChannel(entry.id);
538
578
  }
@@ -543,25 +583,25 @@ let OutputContribution = class OutputContribution extends Disposable {
543
583
  this._register(registerAction2(class extends Action2 {
544
584
  constructor() {
545
585
  super({
546
- id: 'workbench.action.openLogFile',
547
- title: ( localize2(9812, "Open Log...")),
586
+ id: "workbench.action.openLogFile",
587
+ title: ( localize2(10132, "Open Log...")),
548
588
  category: Categories.Developer,
549
589
  menu: {
550
- id: MenuId.CommandPalette,
590
+ id: MenuId.CommandPalette
551
591
  },
552
592
  metadata: {
553
- description: 'workbench.action.openLogFile',
593
+ description: "workbench.action.openLogFile",
554
594
  args: [{
555
- name: 'logFile',
556
- schema: {
557
- markdownDescription: ( localize(
558
- 9813,
559
- "The id of the log file to open, for example `\"window\"`. Currently the best way to get this is to get the ID by checking the `workbench.action.output.show.<id>` commands"
560
- )),
561
- type: 'string'
562
- }
563
- }]
564
- },
595
+ name: "logFile",
596
+ schema: {
597
+ markdownDescription: ( localize(
598
+ 10133,
599
+ "The id of the log file to open, for example `\"window\"`. Currently the best way to get this is to get the ID by checking the `workbench.action.output.show.<id>` commands"
600
+ )),
601
+ type: "string"
602
+ }
603
+ }]
604
+ }
565
605
  });
566
606
  }
567
607
  async run(accessor, args) {
@@ -569,16 +609,18 @@ let OutputContribution = class OutputContribution extends Disposable {
569
609
  const quickInputService = accessor.get(IQuickInputService);
570
610
  const editorService = accessor.get(IEditorService);
571
611
  let entry;
572
- const argName = args && typeof args === 'string' ? args : undefined;
612
+ const argName = args && typeof args === "string" ? args : undefined;
573
613
  const extensionChannels = [];
574
614
  const coreChannels = [];
575
615
  for (const c of outputService.getChannelDescriptors()) {
576
616
  if (c.log) {
577
- const e = { id: c.id, label: c.label };
617
+ const e = {
618
+ id: c.id,
619
+ label: c.label
620
+ };
578
621
  if (c.extensionId) {
579
622
  extensionChannels.push(e);
580
- }
581
- else {
623
+ } else {
582
624
  coreChannels.push(e);
583
625
  }
584
626
  if (e.id === argName) {
@@ -589,10 +631,14 @@ let OutputContribution = class OutputContribution extends Disposable {
589
631
  if (!entry) {
590
632
  const entries = [...extensionChannels.sort((a, b) => a.label.localeCompare(b.label))];
591
633
  if (entries.length && coreChannels.length) {
592
- entries.push({ type: 'separator' });
634
+ entries.push({
635
+ type: "separator"
636
+ });
593
637
  entries.push(...coreChannels.sort((a, b) => a.label.localeCompare(b.label)));
594
638
  }
595
- entry = await quickInputService.pick(entries, { placeHolder: ( localize(9814, "Select Log File")) });
639
+ entry = await quickInputService.pick(entries, {
640
+ placeHolder: ( localize(10134, "Select Log File"))
641
+ });
596
642
  }
597
643
  if (entry?.id) {
598
644
  const channel = outputService.getChannel(entry.id);
@@ -600,7 +646,7 @@ let OutputContribution = class OutputContribution extends Disposable {
600
646
  await editorService.openEditor({
601
647
  resource: channel.uri,
602
648
  options: {
603
- pinned: true,
649
+ pinned: true
604
650
  }
605
651
  });
606
652
  }
@@ -618,7 +664,7 @@ let OutputContribution = class OutputContribution extends Disposable {
618
664
  title: LogLevelToLocalizedString(logLevel).value,
619
665
  metadata: {
620
666
  description: ( localize2(
621
- 9815,
667
+ 10135,
622
668
  "Show or hide {0} messages in the output",
623
669
  LogLevelToString(logLevel)
624
670
  ))
@@ -626,8 +672,8 @@ let OutputContribution = class OutputContribution extends Disposable {
626
672
  toggled,
627
673
  menu: {
628
674
  id: viewFilterSubmenu,
629
- group: '2_log_filter',
630
- when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('view', OUTPUT_VIEW_ID)), CONTEXT_ACTIVE_LOG_FILE_OUTPUT)),
675
+ group: "2_log_filter",
676
+ when: ( ContextKeyExpr.and(( ContextKeyExpr.equals("view", OUTPUT_VIEW_ID)), CONTEXT_ACTIVE_LOG_FILE_OUTPUT)),
631
677
  order: order++
632
678
  },
633
679
  viewId: OUTPUT_VIEW_ID
@@ -638,21 +684,21 @@ let OutputContribution = class OutputContribution extends Disposable {
638
684
  }
639
685
  toggleLogLevelFilter(outputService, logLevel) {
640
686
  switch (logLevel) {
641
- case LogLevel.Trace:
642
- outputService.filters.trace = !outputService.filters.trace;
643
- break;
644
- case LogLevel.Debug:
645
- outputService.filters.debug = !outputService.filters.debug;
646
- break;
647
- case LogLevel.Info:
648
- outputService.filters.info = !outputService.filters.info;
649
- break;
650
- case LogLevel.Warning:
651
- outputService.filters.warning = !outputService.filters.warning;
652
- break;
653
- case LogLevel.Error:
654
- outputService.filters.error = !outputService.filters.error;
655
- break;
687
+ case LogLevel.Trace:
688
+ outputService.filters.trace = !outputService.filters.trace;
689
+ break;
690
+ case LogLevel.Debug:
691
+ outputService.filters.debug = !outputService.filters.debug;
692
+ break;
693
+ case LogLevel.Info:
694
+ outputService.filters.info = !outputService.filters.info;
695
+ break;
696
+ case LogLevel.Warning:
697
+ outputService.filters.warning = !outputService.filters.warning;
698
+ break;
699
+ case LogLevel.Error:
700
+ outputService.filters.error = !outputService.filters.error;
701
+ break;
656
702
  }
657
703
  }
658
704
  }));
@@ -668,7 +714,7 @@ let OutputContribution = class OutputContribution extends Disposable {
668
714
  constructor() {
669
715
  super({
670
716
  id: `workbench.actions.${OUTPUT_VIEW_ID}.clearFilterText`,
671
- title: ( localize(9816, "Clear filters text")),
717
+ title: ( localize(10136, "Clear filters text")),
672
718
  keybinding: {
673
719
  when: OUTPUT_FILTER_FOCUS_CONTEXT,
674
720
  weight: KeybindingWeight.WorkbenchContrib,
@@ -687,15 +733,15 @@ let OutputContribution = class OutputContribution extends Disposable {
687
733
  constructor() {
688
734
  super({
689
735
  id: `workbench.action.exportLogs`,
690
- title: ( localize2(9817, "Export Logs...")),
736
+ title: ( localize2(10137, "Export Logs...")),
691
737
  f1: true,
692
738
  category: Categories.Developer,
693
739
  menu: [{
694
- id: MenuId.ViewTitle,
695
- when: ( ContextKeyExpr.equals('view', OUTPUT_VIEW_ID)),
696
- group: '1_export',
697
- order: 2,
698
- }],
740
+ id: MenuId.ViewTitle,
741
+ when: ( ContextKeyExpr.equals("view", OUTPUT_VIEW_ID)),
742
+ group: "1_export",
743
+ order: 2
744
+ }]
699
745
  });
700
746
  }
701
747
  async run(accessor, arg) {
@@ -706,11 +752,9 @@ let OutputContribution = class OutputContribution extends Disposable {
706
752
  if (channel.log) {
707
753
  if (channel.extensionId) {
708
754
  extensionLogs.push(channel);
709
- }
710
- else if (channel.user) {
755
+ } else if (channel.user) {
711
756
  userLogs.push(channel);
712
- }
713
- else {
757
+ } else {
714
758
  logs.push(channel);
715
759
  }
716
760
  }
@@ -720,13 +764,19 @@ let OutputContribution = class OutputContribution extends Disposable {
720
764
  entries.push(log);
721
765
  }
722
766
  if (extensionLogs.length && logs.length) {
723
- entries.push({ type: 'separator', label: ( localize(9796, "Extension Logs")) });
767
+ entries.push({
768
+ type: "separator",
769
+ label: ( localize(10116, "Extension Logs"))
770
+ });
724
771
  }
725
772
  for (const log of extensionLogs.sort((a, b) => a.label.localeCompare(b.label))) {
726
773
  entries.push(log);
727
774
  }
728
775
  if (userLogs.length && (extensionLogs.length || logs.length)) {
729
- entries.push({ type: 'separator', label: ( localize(9818, "User Logs")) });
776
+ entries.push({
777
+ type: "separator",
778
+ label: ( localize(10138, "User Logs"))
779
+ });
730
780
  }
731
781
  for (const log of userLogs.sort((a, b) => a.label.localeCompare(b.label))) {
732
782
  entries.push(log);
@@ -734,19 +784,22 @@ let OutputContribution = class OutputContribution extends Disposable {
734
784
  let selectedOutputChannels;
735
785
  if (arg?.outputChannelIds) {
736
786
  const requestedIdsNormalized = ( arg.outputChannelIds.map(id => id.trim().toLowerCase()));
737
- const candidates = entries.filter((e) => {
738
- const isSeparator = hasKey(e, { type: true }) && e.type === 'separator';
787
+ const candidates = entries.filter(e => {
788
+ const isSeparator = hasKey(e, {
789
+ type: true
790
+ }) && e.type === "separator";
739
791
  return !isSeparator;
740
792
  });
741
- if (requestedIdsNormalized.includes('*')) {
793
+ if (requestedIdsNormalized.includes("*")) {
742
794
  selectedOutputChannels = candidates;
743
- }
744
- else {
795
+ } else {
745
796
  selectedOutputChannels = candidates.filter(candidate => requestedIdsNormalized.includes(candidate.id.toLowerCase()));
746
797
  }
747
- }
748
- else {
749
- selectedOutputChannels = await quickInputService.pick(entries, { placeHolder: ( localize(9797, "Select Log")), canPickMany: true });
798
+ } else {
799
+ selectedOutputChannels = await quickInputService.pick(entries, {
800
+ placeHolder: ( localize(10117, "Select Log")),
801
+ canPickMany: true
802
+ });
750
803
  }
751
804
  if (selectedOutputChannels?.length) {
752
805
  await outputService.saveOutputAs(arg?.outputPath, ...selectedOutputChannels);
@@ -759,29 +812,29 @@ let OutputContribution = class OutputContribution extends Disposable {
759
812
  constructor() {
760
813
  super({
761
814
  id: `workbench.action.importLog`,
762
- title: ( localize2(9819, "Import Log...")),
815
+ title: ( localize2(10139, "Import Log...")),
763
816
  f1: true,
764
817
  category: Categories.Developer,
765
818
  menu: [{
766
- id: MenuId.ViewTitle,
767
- when: ( ContextKeyExpr.equals('view', OUTPUT_VIEW_ID)),
768
- group: '2_add',
769
- order: 2,
770
- }],
819
+ id: MenuId.ViewTitle,
820
+ when: ( ContextKeyExpr.equals("view", OUTPUT_VIEW_ID)),
821
+ group: "2_add",
822
+ order: 2
823
+ }]
771
824
  });
772
825
  }
773
826
  async run(accessor) {
774
827
  const outputService = accessor.get(IOutputService);
775
828
  const fileDialogService = accessor.get(IFileDialogService);
776
829
  const result = await fileDialogService.showOpenDialog({
777
- title: ( localize(9820, "Import Log File")),
830
+ title: ( localize(10140, "Import Log File")),
778
831
  canSelectFiles: true,
779
832
  canSelectFolders: false,
780
833
  canSelectMany: true,
781
834
  filters: [{
782
- name: ( localize(9821, "Log Files")),
783
- extensions: ['log']
784
- }]
835
+ name: ( localize(10141, "Log Files")),
836
+ extensions: ["log"]
837
+ }]
785
838
  });
786
839
  if (result?.length) {
787
840
  const channelName = basename(result[0]);
@@ -791,9 +844,12 @@ let OutputContribution = class OutputContribution extends Disposable {
791
844
  label: channelName,
792
845
  log: true,
793
846
  user: true,
794
- source: result.length === 1
795
- ? { resource: result[0] }
796
- : ( result.map(resource => ({ resource, name: basename(resource).split('.')[0] })))
847
+ source: result.length === 1 ? {
848
+ resource: result[0]
849
+ } : ( result.map(resource => ({
850
+ resource,
851
+ name: basename(resource).split(".")[0]
852
+ })))
797
853
  });
798
854
  outputService.showChannel(channelId);
799
855
  }
@@ -801,31 +857,28 @@ let OutputContribution = class OutputContribution extends Disposable {
801
857
  }));
802
858
  }
803
859
  };
804
- OutputContribution = ( __decorate([
805
- ( __param(0, IOutputService)),
806
- ( __param(1, IEditorService))
807
- ], OutputContribution));
860
+ OutputContribution = ( __decorate([( __param(0, IOutputService)), ( __param(1, IEditorService))], OutputContribution));
808
861
  ( Registry.as(Extensions$2.Workbench)).registerWorkbenchContribution(OutputContribution, LifecyclePhase.Restored);
809
862
  ( Registry.as(Extensions$3.Configuration)).registerConfiguration({
810
- id: 'output',
863
+ id: "output",
811
864
  order: 30,
812
- title: ( localize(9791, "Output")),
813
- type: 'object',
865
+ title: ( localize(10111, "Output")),
866
+ type: "object",
814
867
  properties: {
815
- 'output.smartScroll.enabled': {
816
- type: 'boolean',
868
+ "output.smartScroll.enabled": {
869
+ type: "boolean",
817
870
  description: ( localize(
818
- 9822,
871
+ 10142,
819
872
  "Enable/disable the ability of smart scrolling in the output view. Smart scrolling allows you to lock scrolling automatically when you click in the output view and unlocks when you click in the last line."
820
873
  )),
821
874
  default: true,
822
875
  scope: ConfigurationScope.WINDOW,
823
- tags: ['output']
876
+ tags: ["output"]
824
877
  }
825
878
  }
826
879
  });
827
880
  KeybindingsRegistry.registerKeybindingRule({
828
- id: 'cursorWordAccessibilityLeft',
881
+ id: "cursorWordAccessibilityLeft",
829
882
  when: ( ContextKeyExpr.and(
830
883
  EditorContextKeys.textInputFocus,
831
884
  CONTEXT_ACCESSIBILITY_MODE_ENABLED,
@@ -836,7 +889,7 @@ KeybindingsRegistry.registerKeybindingRule({
836
889
  weight: KeybindingWeight.WorkbenchContrib
837
890
  });
838
891
  KeybindingsRegistry.registerKeybindingRule({
839
- id: 'cursorWordAccessibilityLeftSelect',
892
+ id: "cursorWordAccessibilityLeftSelect",
840
893
  when: ( ContextKeyExpr.and(
841
894
  EditorContextKeys.textInputFocus,
842
895
  CONTEXT_ACCESSIBILITY_MODE_ENABLED,
@@ -847,7 +900,7 @@ KeybindingsRegistry.registerKeybindingRule({
847
900
  weight: KeybindingWeight.WorkbenchContrib
848
901
  });
849
902
  KeybindingsRegistry.registerKeybindingRule({
850
- id: 'cursorWordAccessibilityRight',
903
+ id: "cursorWordAccessibilityRight",
851
904
  when: ( ContextKeyExpr.and(
852
905
  EditorContextKeys.textInputFocus,
853
906
  CONTEXT_ACCESSIBILITY_MODE_ENABLED,
@@ -858,7 +911,7 @@ KeybindingsRegistry.registerKeybindingRule({
858
911
  weight: KeybindingWeight.WorkbenchContrib
859
912
  });
860
913
  KeybindingsRegistry.registerKeybindingRule({
861
- id: 'cursorWordAccessibilityRightSelect',
914
+ id: "cursorWordAccessibilityRightSelect",
862
915
  when: ( ContextKeyExpr.and(
863
916
  EditorContextKeys.textInputFocus,
864
917
  CONTEXT_ACCESSIBILITY_MODE_ENABLED,