@codingame/monaco-vscode-output-service-override 31.0.1 → 32.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/vscode/src/vs/workbench/contrib/output/browser/output.contribution.js +48 -46
- package/vscode/src/vs/workbench/contrib/output/browser/outputAccessibilityHelp.js +29 -29
- package/vscode/src/vs/workbench/contrib/output/browser/outputServices.js +1 -1
- package/vscode/src/vs/workbench/contrib/output/browser/outputView.js +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-output-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "32.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - output service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "
|
|
19
|
-
"@codingame/monaco-vscode-log-service-override": "
|
|
18
|
+
"@codingame/monaco-vscode-api": "32.0.0",
|
|
19
|
+
"@codingame/monaco-vscode-log-service-override": "32.0.0"
|
|
20
20
|
},
|
|
21
21
|
"main": "index.js",
|
|
22
22
|
"module": "index.js",
|
|
@@ -13,7 +13,7 @@ import { OutputViewPane } from './outputView.js';
|
|
|
13
13
|
import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/descriptors';
|
|
14
14
|
import { Extensions as Extensions$2 } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
|
|
15
15
|
import { LifecyclePhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle';
|
|
16
|
-
import { Extensions, ViewContainerLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views';
|
|
16
|
+
import { Extensions, WindowEnablement, ViewContainerLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views';
|
|
17
17
|
import { IViewsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/views/common/viewsService.service';
|
|
18
18
|
import { ViewPaneContainer } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
|
|
19
19
|
import { Extensions as Extensions$3, ConfigurationScope } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
@@ -56,30 +56,31 @@ ModesRegistry.registerLanguage({
|
|
|
56
56
|
extensions: [],
|
|
57
57
|
mimetypes: [LOG_MIME]
|
|
58
58
|
});
|
|
59
|
-
const outputViewIcon = registerIcon("output-view-icon", Codicon.output, ( localize(
|
|
59
|
+
const outputViewIcon = registerIcon("output-view-icon", Codicon.output, ( localize(11960, "View icon of the output view.")));
|
|
60
60
|
const VIEW_CONTAINER = ( Registry.as(Extensions.ViewContainersRegistry)).registerViewContainer({
|
|
61
61
|
id: OUTPUT_VIEW_ID,
|
|
62
|
-
title: ( localize2(
|
|
62
|
+
title: ( localize2(11961, "Output")),
|
|
63
63
|
icon: outputViewIcon,
|
|
64
64
|
order: 1,
|
|
65
65
|
ctorDescriptor: ( new SyncDescriptor(ViewPaneContainer, [OUTPUT_VIEW_ID, {
|
|
66
66
|
mergeViewWithContainerWhenSingleView: true
|
|
67
67
|
}])),
|
|
68
68
|
storageId: OUTPUT_VIEW_ID,
|
|
69
|
-
hideIfEmpty: true
|
|
69
|
+
hideIfEmpty: true,
|
|
70
|
+
windowEnablement: WindowEnablement.Both
|
|
70
71
|
}, ViewContainerLocation.Panel, {
|
|
71
72
|
doNotRegisterOpenCommand: true
|
|
72
73
|
});
|
|
73
74
|
( Registry.as(Extensions.ViewsRegistry)).registerViews([{
|
|
74
75
|
id: OUTPUT_VIEW_ID,
|
|
75
|
-
name: ( localize2(
|
|
76
|
+
name: ( localize2(11961, "Output")),
|
|
76
77
|
containerIcon: outputViewIcon,
|
|
77
78
|
canMoveView: true,
|
|
78
79
|
canToggleVisibility: true,
|
|
79
80
|
ctorDescriptor: ( new SyncDescriptor(OutputViewPane)),
|
|
80
81
|
openCommandActionDescriptor: {
|
|
81
82
|
id: "workbench.action.output.toggleOutput",
|
|
82
|
-
mnemonicTitle: ( localize(
|
|
83
|
+
mnemonicTitle: ( localize(11962, "&&Output")),
|
|
83
84
|
keybindings: {
|
|
84
85
|
primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyU,
|
|
85
86
|
linux: {
|
|
@@ -87,7 +88,8 @@ const VIEW_CONTAINER = ( Registry.as(Extensions.ViewContainersRegistry)).registe
|
|
|
87
88
|
}
|
|
88
89
|
},
|
|
89
90
|
order: 1
|
|
90
|
-
}
|
|
91
|
+
},
|
|
92
|
+
windowEnablement: WindowEnablement.Both
|
|
91
93
|
}], VIEW_CONTAINER);
|
|
92
94
|
let OutputContribution = class OutputContribution extends Disposable {
|
|
93
95
|
constructor(outputService, editorService) {
|
|
@@ -119,7 +121,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
119
121
|
constructor() {
|
|
120
122
|
super({
|
|
121
123
|
id: `workbench.output.action.switchBetweenOutputs`,
|
|
122
|
-
title: ( localize(
|
|
124
|
+
title: ( localize(11963, "Switch Output"))
|
|
123
125
|
});
|
|
124
126
|
}
|
|
125
127
|
async run(accessor, channelId) {
|
|
@@ -131,7 +133,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
131
133
|
const switchOutputMenu = ( new MenuId("workbench.output.menu.switchOutput"));
|
|
132
134
|
this._register(MenuRegistry.appendMenuItem(MenuId.ViewTitle, {
|
|
133
135
|
submenu: switchOutputMenu,
|
|
134
|
-
title: ( localize(
|
|
136
|
+
title: ( localize(11964, "Switch Output")),
|
|
135
137
|
group: "navigation",
|
|
136
138
|
when: ( ContextKeyExpr.equals("view", OUTPUT_VIEW_ID)),
|
|
137
139
|
order: 1,
|
|
@@ -179,8 +181,8 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
179
181
|
constructor() {
|
|
180
182
|
super({
|
|
181
183
|
id: "workbench.action.output.addCompoundLog",
|
|
182
|
-
title: ( localize2(
|
|
183
|
-
category: ( localize2(
|
|
184
|
+
title: ( localize2(11965, "Add Compound Log...")),
|
|
185
|
+
category: ( localize2(11961, "Output")),
|
|
184
186
|
f1: true,
|
|
185
187
|
menu: [{
|
|
186
188
|
id: MenuId.ViewTitle,
|
|
@@ -209,14 +211,14 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
209
211
|
if (extensionLogs.length && logs.length) {
|
|
210
212
|
entries.push({
|
|
211
213
|
type: "separator",
|
|
212
|
-
label: ( localize(
|
|
214
|
+
label: ( localize(11966, "Extension Logs"))
|
|
213
215
|
});
|
|
214
216
|
}
|
|
215
217
|
for (const log of extensionLogs.sort((a, b) => a.label.localeCompare(b.label))) {
|
|
216
218
|
entries.push(log);
|
|
217
219
|
}
|
|
218
220
|
const result = await quickInputService.pick(entries, {
|
|
219
|
-
placeHolder: ( localize(
|
|
221
|
+
placeHolder: ( localize(11967, "Select Log")),
|
|
220
222
|
canPickMany: true
|
|
221
223
|
});
|
|
222
224
|
if (result?.length) {
|
|
@@ -230,8 +232,8 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
230
232
|
constructor() {
|
|
231
233
|
super({
|
|
232
234
|
id: "workbench.action.output.remove",
|
|
233
|
-
title: ( localize2(
|
|
234
|
-
category: ( localize2(
|
|
235
|
+
title: ( localize2(11968, "Remove Output...")),
|
|
236
|
+
category: ( localize2(11961, "Output")),
|
|
235
237
|
f1: true
|
|
236
238
|
});
|
|
237
239
|
}
|
|
@@ -241,11 +243,11 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
241
243
|
const notificationService = accessor.get(INotificationService);
|
|
242
244
|
const entries = outputService.getChannelDescriptors().filter(channel => channel.user);
|
|
243
245
|
if (entries.length === 0) {
|
|
244
|
-
notificationService.info(( localize(
|
|
246
|
+
notificationService.info(( localize(11969, "No custom outputs to remove.")));
|
|
245
247
|
return;
|
|
246
248
|
}
|
|
247
249
|
const result = await quickInputService.pick(entries, {
|
|
248
|
-
placeHolder: ( localize(
|
|
250
|
+
placeHolder: ( localize(11967, "Select Log")),
|
|
249
251
|
canPickMany: true
|
|
250
252
|
});
|
|
251
253
|
if (!result?.length) {
|
|
@@ -263,8 +265,8 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
263
265
|
constructor() {
|
|
264
266
|
super({
|
|
265
267
|
id: "workbench.action.showOutputChannels",
|
|
266
|
-
title: ( localize2(
|
|
267
|
-
category: ( localize2(
|
|
268
|
+
title: ( localize2(11970, "Show Output Channels...")),
|
|
269
|
+
category: ( localize2(11961, "Output")),
|
|
268
270
|
f1: true
|
|
269
271
|
});
|
|
270
272
|
}
|
|
@@ -304,7 +306,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
304
306
|
});
|
|
305
307
|
}
|
|
306
308
|
const entry = await quickInputService.pick(entries, {
|
|
307
|
-
placeHolder: ( localize(
|
|
309
|
+
placeHolder: ( localize(11971, "Select Output Channel"))
|
|
308
310
|
});
|
|
309
311
|
if (entry) {
|
|
310
312
|
return outputService.showChannel(entry.id);
|
|
@@ -317,7 +319,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
317
319
|
constructor() {
|
|
318
320
|
super({
|
|
319
321
|
id: `workbench.output.action.clearOutput`,
|
|
320
|
-
title: ( localize2(
|
|
322
|
+
title: ( localize2(11972, "Clear Output")),
|
|
321
323
|
category: Categories.View,
|
|
322
324
|
menu: [{
|
|
323
325
|
id: MenuId.ViewTitle,
|
|
@@ -349,8 +351,8 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
349
351
|
constructor() {
|
|
350
352
|
super({
|
|
351
353
|
id: `workbench.output.action.toggleAutoScroll`,
|
|
352
|
-
title: ( localize2(
|
|
353
|
-
tooltip: ( localize(
|
|
354
|
+
title: ( localize2(11973, "Toggle Auto Scrolling")),
|
|
355
|
+
tooltip: ( localize(11974, "Turn Auto Scrolling Off")),
|
|
354
356
|
menu: {
|
|
355
357
|
id: MenuId.ViewTitle,
|
|
356
358
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals("view", OUTPUT_VIEW_ID)))),
|
|
@@ -361,7 +363,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
361
363
|
toggled: {
|
|
362
364
|
condition: CONTEXT_OUTPUT_SCROLL_LOCK,
|
|
363
365
|
icon: Codicon.unlock,
|
|
364
|
-
tooltip: ( localize(
|
|
366
|
+
tooltip: ( localize(11975, "Turn Auto Scrolling On"))
|
|
365
367
|
}
|
|
366
368
|
});
|
|
367
369
|
}
|
|
@@ -377,7 +379,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
377
379
|
constructor() {
|
|
378
380
|
super({
|
|
379
381
|
id: `workbench.action.openActiveLogOutputFile`,
|
|
380
|
-
title: ( localize2(
|
|
382
|
+
title: ( localize2(11976, "Open Output in Editor")),
|
|
381
383
|
menu: [{
|
|
382
384
|
id: MenuId.ViewTitle,
|
|
383
385
|
when: ( ContextKeyExpr.equals("view", OUTPUT_VIEW_ID)),
|
|
@@ -399,7 +401,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
399
401
|
constructor() {
|
|
400
402
|
super({
|
|
401
403
|
id: `workbench.action.openActiveLogOutputFileInNewWindow`,
|
|
402
|
-
title: ( localize2(
|
|
404
|
+
title: ( localize2(11977, "Open Output in New Window")),
|
|
403
405
|
menu: [{
|
|
404
406
|
id: MenuId.ViewTitle,
|
|
405
407
|
when: ( ContextKeyExpr.equals("view", OUTPUT_VIEW_ID)),
|
|
@@ -420,7 +422,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
420
422
|
constructor() {
|
|
421
423
|
super({
|
|
422
424
|
id: `workbench.action.saveActiveLogOutputAs`,
|
|
423
|
-
title: ( localize2(
|
|
425
|
+
title: ( localize2(11978, "Save Output As...")),
|
|
424
426
|
menu: [{
|
|
425
427
|
id: MenuId.ViewTitle,
|
|
426
428
|
when: ( ContextKeyExpr.equals("view", OUTPUT_VIEW_ID)),
|
|
@@ -456,7 +458,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
456
458
|
const logLevelMenu = ( new MenuId("workbench.output.menu.logLevel"));
|
|
457
459
|
this._register(MenuRegistry.appendMenuItem(MenuId.ViewTitle, {
|
|
458
460
|
submenu: logLevelMenu,
|
|
459
|
-
title: ( localize(
|
|
461
|
+
title: ( localize(11979, "Set Log Level...")),
|
|
460
462
|
group: "navigation",
|
|
461
463
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals("view", OUTPUT_VIEW_ID)), CONTEXT_ACTIVE_OUTPUT_LEVEL_SETTABLE)),
|
|
462
464
|
icon: Codicon.gear,
|
|
@@ -499,7 +501,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
499
501
|
constructor() {
|
|
500
502
|
super({
|
|
501
503
|
id: `workbench.action.output.activeOutputLogLevelDefault`,
|
|
502
|
-
title: ( localize(
|
|
504
|
+
title: ( localize(11980, "Set As Default")),
|
|
503
505
|
menu: {
|
|
504
506
|
id: logLevelMenu,
|
|
505
507
|
order,
|
|
@@ -528,7 +530,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
528
530
|
constructor() {
|
|
529
531
|
super({
|
|
530
532
|
id: "workbench.action.showLogs",
|
|
531
|
-
title: ( localize2(
|
|
533
|
+
title: ( localize2(11981, "Show Logs...")),
|
|
532
534
|
category: Categories.Developer,
|
|
533
535
|
menu: {
|
|
534
536
|
id: MenuId.CommandPalette
|
|
@@ -561,7 +563,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
561
563
|
if (extensionLogs.length && logs.length) {
|
|
562
564
|
entries.push({
|
|
563
565
|
type: "separator",
|
|
564
|
-
label: ( localize(
|
|
566
|
+
label: ( localize(11966, "Extension Logs"))
|
|
565
567
|
});
|
|
566
568
|
}
|
|
567
569
|
for (const {
|
|
@@ -574,7 +576,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
574
576
|
});
|
|
575
577
|
}
|
|
576
578
|
const entry = await quickInputService.pick(entries, {
|
|
577
|
-
placeHolder: ( localize(
|
|
579
|
+
placeHolder: ( localize(11967, "Select Log"))
|
|
578
580
|
});
|
|
579
581
|
if (entry) {
|
|
580
582
|
return outputService.showChannel(entry.id);
|
|
@@ -587,7 +589,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
587
589
|
constructor() {
|
|
588
590
|
super({
|
|
589
591
|
id: "workbench.action.openLogFile",
|
|
590
|
-
title: ( localize2(
|
|
592
|
+
title: ( localize2(11982, "Open Log...")),
|
|
591
593
|
category: Categories.Developer,
|
|
592
594
|
menu: {
|
|
593
595
|
id: MenuId.CommandPalette
|
|
@@ -598,7 +600,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
598
600
|
name: "logFile",
|
|
599
601
|
schema: {
|
|
600
602
|
markdownDescription: ( localize(
|
|
601
|
-
|
|
603
|
+
11983,
|
|
602
604
|
"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"
|
|
603
605
|
)),
|
|
604
606
|
type: "string"
|
|
@@ -640,7 +642,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
640
642
|
entries.push(...coreChannels.sort((a, b) => a.label.localeCompare(b.label)));
|
|
641
643
|
}
|
|
642
644
|
entry = await quickInputService.pick(entries, {
|
|
643
|
-
placeHolder: ( localize(
|
|
645
|
+
placeHolder: ( localize(11984, "Select Log File"))
|
|
644
646
|
});
|
|
645
647
|
}
|
|
646
648
|
if (entry?.id) {
|
|
@@ -667,7 +669,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
667
669
|
title: LogLevelToLocalizedString(logLevel).value,
|
|
668
670
|
metadata: {
|
|
669
671
|
description: ( localize2(
|
|
670
|
-
|
|
672
|
+
11985,
|
|
671
673
|
"Show or hide {0} messages in the output",
|
|
672
674
|
LogLevelToString(logLevel)
|
|
673
675
|
))
|
|
@@ -717,7 +719,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
717
719
|
constructor() {
|
|
718
720
|
super({
|
|
719
721
|
id: `workbench.actions.${OUTPUT_VIEW_ID}.clearFilterText`,
|
|
720
|
-
title: ( localize(
|
|
722
|
+
title: ( localize(11986, "Clear filters text")),
|
|
721
723
|
keybinding: {
|
|
722
724
|
when: OUTPUT_FILTER_FOCUS_CONTEXT,
|
|
723
725
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -736,7 +738,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
736
738
|
constructor() {
|
|
737
739
|
super({
|
|
738
740
|
id: `workbench.action.exportLogs`,
|
|
739
|
-
title: ( localize2(
|
|
741
|
+
title: ( localize2(11987, "Export Logs...")),
|
|
740
742
|
f1: true,
|
|
741
743
|
category: Categories.Developer,
|
|
742
744
|
menu: [{
|
|
@@ -769,7 +771,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
769
771
|
if (extensionLogs.length && logs.length) {
|
|
770
772
|
entries.push({
|
|
771
773
|
type: "separator",
|
|
772
|
-
label: ( localize(
|
|
774
|
+
label: ( localize(11966, "Extension Logs"))
|
|
773
775
|
});
|
|
774
776
|
}
|
|
775
777
|
for (const log of extensionLogs.sort((a, b) => a.label.localeCompare(b.label))) {
|
|
@@ -778,7 +780,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
778
780
|
if (userLogs.length && (extensionLogs.length || logs.length)) {
|
|
779
781
|
entries.push({
|
|
780
782
|
type: "separator",
|
|
781
|
-
label: ( localize(
|
|
783
|
+
label: ( localize(11988, "User Logs"))
|
|
782
784
|
});
|
|
783
785
|
}
|
|
784
786
|
for (const log of userLogs.sort((a, b) => a.label.localeCompare(b.label))) {
|
|
@@ -800,7 +802,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
800
802
|
}
|
|
801
803
|
} else {
|
|
802
804
|
selectedOutputChannels = await quickInputService.pick(entries, {
|
|
803
|
-
placeHolder: ( localize(
|
|
805
|
+
placeHolder: ( localize(11967, "Select Log")),
|
|
804
806
|
canPickMany: true
|
|
805
807
|
});
|
|
806
808
|
}
|
|
@@ -815,7 +817,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
815
817
|
constructor() {
|
|
816
818
|
super({
|
|
817
819
|
id: `workbench.action.importLog`,
|
|
818
|
-
title: ( localize2(
|
|
820
|
+
title: ( localize2(11989, "Import Log...")),
|
|
819
821
|
f1: true,
|
|
820
822
|
category: Categories.Developer,
|
|
821
823
|
menu: [{
|
|
@@ -830,12 +832,12 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
830
832
|
const outputService = accessor.get(IOutputService);
|
|
831
833
|
const fileDialogService = accessor.get(IFileDialogService);
|
|
832
834
|
const result = await fileDialogService.showOpenDialog({
|
|
833
|
-
title: ( localize(
|
|
835
|
+
title: ( localize(11990, "Import Log File")),
|
|
834
836
|
canSelectFiles: true,
|
|
835
837
|
canSelectFolders: false,
|
|
836
838
|
canSelectMany: true,
|
|
837
839
|
filters: [{
|
|
838
|
-
name: ( localize(
|
|
840
|
+
name: ( localize(11991, "Log Files")),
|
|
839
841
|
extensions: ["log"]
|
|
840
842
|
}]
|
|
841
843
|
});
|
|
@@ -865,13 +867,13 @@ OutputContribution = ( __decorate([( __param(0, IOutputService)), ( __param(1, I
|
|
|
865
867
|
( Registry.as(Extensions$3.Configuration)).registerConfiguration({
|
|
866
868
|
id: "output",
|
|
867
869
|
order: 30,
|
|
868
|
-
title: ( localize(
|
|
870
|
+
title: ( localize(11961, "Output")),
|
|
869
871
|
type: "object",
|
|
870
872
|
properties: {
|
|
871
873
|
"output.smartScroll.enabled": {
|
|
872
874
|
type: "boolean",
|
|
873
875
|
description: ( localize(
|
|
874
|
-
|
|
876
|
+
11992,
|
|
875
877
|
"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."
|
|
876
878
|
)),
|
|
877
879
|
default: true,
|
|
@@ -29,90 +29,90 @@ class OutputAccessibilityHelpProvider extends Disposable {
|
|
|
29
29
|
}
|
|
30
30
|
provideContent() {
|
|
31
31
|
const lines = [];
|
|
32
|
-
lines.push(( localize(
|
|
32
|
+
lines.push(( localize(11993, "Accessibility Help: Output Panel Filter")));
|
|
33
33
|
lines.push(( localize(
|
|
34
|
-
|
|
34
|
+
11994,
|
|
35
35
|
"You are in the Output panel filter input. This is NOT a navigating search. Instead, it instantly hides lines that do not match your filter, showing only the lines you want to see."
|
|
36
36
|
)));
|
|
37
37
|
lines.push("");
|
|
38
|
-
lines.push(( localize(
|
|
39
|
-
lines.push(( localize(
|
|
38
|
+
lines.push(( localize(11995, "Current Filter Status:")));
|
|
39
|
+
lines.push(( localize(11996, "You are filtering the output.")));
|
|
40
40
|
lines.push("");
|
|
41
|
-
lines.push(( localize(
|
|
41
|
+
lines.push(( localize(11997, "Inside the Filter Input (What It Does):")));
|
|
42
42
|
lines.push(( localize(
|
|
43
|
-
|
|
43
|
+
11998,
|
|
44
44
|
"While you are in the filter input, your focus stays in the field. You can type, edit, or adjust your filter without leaving the input. As you type, the Output panel instantly updates to show only lines matching your filter."
|
|
45
45
|
)));
|
|
46
46
|
lines.push("");
|
|
47
|
-
lines.push(( localize(
|
|
47
|
+
lines.push(( localize(11999, "What Happens When You Filter:")));
|
|
48
48
|
lines.push(( localize(
|
|
49
|
-
|
|
49
|
+
12000,
|
|
50
50
|
"Each time you change the filter text, the panel instantly regenerates to show only matching lines. Your screen reader announces how many lines are now visible. This is live feedback: as you type or delete characters, the displayed lines update immediately."
|
|
51
51
|
)));
|
|
52
52
|
lines.push(( localize(
|
|
53
|
-
|
|
53
|
+
12001,
|
|
54
54
|
"New output from your running program is appended to the panel and automatically filtered, so matching new output appears instantly."
|
|
55
55
|
)));
|
|
56
56
|
lines.push("");
|
|
57
|
-
lines.push(( localize(
|
|
57
|
+
lines.push(( localize(12002, "Focus Behavior (Important):")));
|
|
58
58
|
lines.push(( localize(
|
|
59
|
-
|
|
59
|
+
12003,
|
|
60
60
|
"Your focus stays in the filter input while the panel updates in the background. This is intentional, so you can keep typing without losing your place."
|
|
61
61
|
)));
|
|
62
62
|
lines.push(( localize(
|
|
63
|
-
|
|
63
|
+
12004,
|
|
64
64
|
"If you want to review the filtered output, press Down Arrow to move focus from the filter into the output content below."
|
|
65
65
|
)));
|
|
66
66
|
lines.push(( localize(
|
|
67
|
-
|
|
67
|
+
12005,
|
|
68
68
|
"If you want to clear the filter and see all output, press Escape or delete all filter text."
|
|
69
69
|
)));
|
|
70
70
|
lines.push("");
|
|
71
|
-
lines.push(( localize(
|
|
71
|
+
lines.push(( localize(12006, "Filter Syntax and Patterns:")));
|
|
72
72
|
lines.push(( localize(
|
|
73
|
-
|
|
73
|
+
12007,
|
|
74
74
|
"- Type text: Shows only lines containing that text (case-insensitive by default)."
|
|
75
75
|
)));
|
|
76
76
|
lines.push(( localize(
|
|
77
|
-
|
|
77
|
+
12008,
|
|
78
78
|
"- !text (exclude): Hides lines containing 'text', showing all other lines."
|
|
79
79
|
)));
|
|
80
80
|
lines.push(( localize(
|
|
81
|
-
|
|
81
|
+
12009,
|
|
82
82
|
"- \\\\! (escape): Use backslash to search for a literal \"!\" character."
|
|
83
83
|
)));
|
|
84
84
|
lines.push(( localize(
|
|
85
|
-
|
|
85
|
+
12010,
|
|
86
86
|
"- text1, text2 (multiple patterns): Separate patterns with commas to show lines matching ANY pattern."
|
|
87
87
|
)));
|
|
88
88
|
lines.push(( localize(
|
|
89
|
-
|
|
89
|
+
12011,
|
|
90
90
|
"Example: typing \"error, warning\" shows lines containing either \"error\" or \"warning\"."
|
|
91
91
|
)));
|
|
92
92
|
lines.push("");
|
|
93
|
-
lines.push(( localize(
|
|
94
|
-
lines.push(( localize(
|
|
95
|
-
lines.push(( localize(
|
|
96
|
-
lines.push(( localize(
|
|
93
|
+
lines.push(( localize(12012, "Keyboard Navigation Summary:")));
|
|
94
|
+
lines.push(( localize(12013, "- Down Arrow: Move focus from filter into the output content.")));
|
|
95
|
+
lines.push(( localize(12014, "- Tab: Move to log level filter buttons if available.")));
|
|
96
|
+
lines.push(( localize(12015, "- Escape: Clear the filter and return to showing all output.")));
|
|
97
97
|
lines.push("");
|
|
98
98
|
lines.push(( localize(
|
|
99
|
-
|
|
99
|
+
12016,
|
|
100
100
|
"Settings You Can Adjust ({0} opens Settings):",
|
|
101
101
|
this._describeCommand("workbench.action.openSettings") || "Ctrl+,"
|
|
102
102
|
)));
|
|
103
|
-
lines.push(( localize(
|
|
103
|
+
lines.push(( localize(12017, "These settings affect how the Output panel works.")));
|
|
104
104
|
lines.push(( localize(
|
|
105
|
-
|
|
105
|
+
12018,
|
|
106
106
|
"- `accessibility.verbosity.find`: Controls whether the filter input announces the Accessibility Help hint."
|
|
107
107
|
)));
|
|
108
108
|
lines.push(( localize(
|
|
109
|
-
|
|
109
|
+
12019,
|
|
110
110
|
"- `output.smartScroll.enabled`: Automatically scroll to the latest output when messages arrive."
|
|
111
111
|
)));
|
|
112
112
|
lines.push("");
|
|
113
|
-
lines.push(( localize(
|
|
113
|
+
lines.push(( localize(12020, "Closing:")));
|
|
114
114
|
lines.push(( localize(
|
|
115
|
-
|
|
115
|
+
12021,
|
|
116
116
|
"Press Escape to clear the filter and see all output, or close the Output panel. Your filter text is preserved if you reopen the panel."
|
|
117
117
|
)));
|
|
118
118
|
return lines.join("\n");
|
|
@@ -448,7 +448,7 @@ let OutputService = class OutputService extends Disposable {
|
|
|
448
448
|
if (!uri) {
|
|
449
449
|
const name = channels.length > 1 ? "output" : channels[0].label;
|
|
450
450
|
uri = await this.fileDialogService.showSaveDialog({
|
|
451
|
-
title: ( localize(
|
|
451
|
+
title: ( localize(12022, "Save Output As")),
|
|
452
452
|
availableFileSystems: [Schemas.file],
|
|
453
453
|
defaultUri: joinPath(await this.fileDialogService.defaultFilePath(), `${name}.log`),
|
|
454
454
|
filters: [{
|
|
@@ -69,7 +69,7 @@ let OutputViewPane = class OutputViewPane extends FilterViewPane {
|
|
|
69
69
|
super({
|
|
70
70
|
...options,
|
|
71
71
|
filterOptions: {
|
|
72
|
-
placeholder: ( localize(
|
|
72
|
+
placeholder: ( localize(12023, "Filter (e.g. text, !excludeText, text1,text2)")),
|
|
73
73
|
focusContextKey: OUTPUT_FILTER_FOCUS_CONTEXT.key,
|
|
74
74
|
text: viewState.filter || "",
|
|
75
75
|
history: []
|
|
@@ -179,7 +179,7 @@ let OutputViewPane = class OutputViewPane extends FilterViewPane {
|
|
|
179
179
|
this.editorPromise = null;
|
|
180
180
|
}
|
|
181
181
|
createInput(channel) {
|
|
182
|
-
return this.instantiationService.createInstance(TextResourceEditorInput, channel.uri, ( localize(
|
|
182
|
+
return this.instantiationService.createInstance(TextResourceEditorInput, channel.uri, ( localize(12024, "{0} - Output", channel.label)), ( localize(12025, "Output channel for '{0}'", channel.label)), undefined, undefined);
|
|
183
183
|
}
|
|
184
184
|
saveState() {
|
|
185
185
|
const filters = this.outputService.filters;
|
|
@@ -226,7 +226,7 @@ let OutputEditor = class OutputEditor extends AbstractTextResourceEditor {
|
|
|
226
226
|
return OUTPUT_VIEW_ID;
|
|
227
227
|
}
|
|
228
228
|
getTitle() {
|
|
229
|
-
return localize(
|
|
229
|
+
return localize(12026, "Output");
|
|
230
230
|
}
|
|
231
231
|
getConfigurationOverrides(configuration) {
|
|
232
232
|
const options = super.getConfigurationOverrides(configuration);
|
|
@@ -265,7 +265,7 @@ let OutputEditor = class OutputEditor extends AbstractTextResourceEditor {
|
|
|
265
265
|
return options;
|
|
266
266
|
}
|
|
267
267
|
getAriaLabel() {
|
|
268
|
-
return this.input ? this.input.getAriaLabel() : ( localize(
|
|
268
|
+
return this.input ? this.input.getAriaLabel() : ( localize(12027, "Output panel"));
|
|
269
269
|
}
|
|
270
270
|
computeAriaLabel() {
|
|
271
271
|
return this.input ? computeEditorAriaLabel(this.input, undefined, undefined, this.editorGroupService.count) : this.getAriaLabel();
|