@codingame/monaco-vscode-output-service-override 26.2.2 → 27.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 +46 -43
- package/vscode/src/vs/workbench/contrib/output/browser/outputAccessibilityHelp.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/output/browser/outputAccessibilityHelp.js +127 -0
- package/vscode/src/vs/workbench/contrib/output/browser/outputLinkProvider.js +1 -1
- 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/vscode/src/vs/workbench/contrib/output/common/outputChannelModel.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-output-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "27.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": "27.0.0",
|
|
19
|
+
"@codingame/monaco-vscode-log-service-override": "27.0.0"
|
|
20
20
|
},
|
|
21
21
|
"main": "index.js",
|
|
22
22
|
"module": "index.js",
|
|
@@ -41,8 +41,11 @@ import { IFileDialogService } from '@codingame/monaco-vscode-api/vscode/vs/platf
|
|
|
41
41
|
import { basename } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
|
|
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
|
+
import { AccessibleViewRegistry } from '@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/browser/accessibleViewRegistry';
|
|
45
|
+
import { OutputAccessibilityHelp } from './outputAccessibilityHelp.js';
|
|
44
46
|
|
|
45
47
|
const IMPORTED_LOG_ID_PREFIX = "importedLog.";
|
|
48
|
+
AccessibleViewRegistry.register(( new OutputAccessibilityHelp()));
|
|
46
49
|
ModesRegistry.registerLanguage({
|
|
47
50
|
id: OUTPUT_MODE_ID,
|
|
48
51
|
extensions: [],
|
|
@@ -53,10 +56,10 @@ ModesRegistry.registerLanguage({
|
|
|
53
56
|
extensions: [],
|
|
54
57
|
mimetypes: [LOG_MIME]
|
|
55
58
|
});
|
|
56
|
-
const outputViewIcon = registerIcon("output-view-icon", Codicon.output, ( localize(
|
|
59
|
+
const outputViewIcon = registerIcon("output-view-icon", Codicon.output, ( localize(11015, "View icon of the output view.")));
|
|
57
60
|
const VIEW_CONTAINER = ( Registry.as(Extensions.ViewContainersRegistry)).registerViewContainer({
|
|
58
61
|
id: OUTPUT_VIEW_ID,
|
|
59
|
-
title: ( localize2(
|
|
62
|
+
title: ( localize2(11016, "Output")),
|
|
60
63
|
icon: outputViewIcon,
|
|
61
64
|
order: 1,
|
|
62
65
|
ctorDescriptor: ( new SyncDescriptor(ViewPaneContainer, [OUTPUT_VIEW_ID, {
|
|
@@ -69,14 +72,14 @@ const VIEW_CONTAINER = ( Registry.as(Extensions.ViewContainersRegistry)).registe
|
|
|
69
72
|
});
|
|
70
73
|
( Registry.as(Extensions.ViewsRegistry)).registerViews([{
|
|
71
74
|
id: OUTPUT_VIEW_ID,
|
|
72
|
-
name: ( localize2(
|
|
75
|
+
name: ( localize2(11016, "Output")),
|
|
73
76
|
containerIcon: outputViewIcon,
|
|
74
77
|
canMoveView: true,
|
|
75
78
|
canToggleVisibility: true,
|
|
76
79
|
ctorDescriptor: ( new SyncDescriptor(OutputViewPane)),
|
|
77
80
|
openCommandActionDescriptor: {
|
|
78
81
|
id: "workbench.action.output.toggleOutput",
|
|
79
|
-
mnemonicTitle: ( localize(
|
|
82
|
+
mnemonicTitle: ( localize(11017, "&&Output")),
|
|
80
83
|
keybindings: {
|
|
81
84
|
primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyU,
|
|
82
85
|
linux: {
|
|
@@ -116,7 +119,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
116
119
|
constructor() {
|
|
117
120
|
super({
|
|
118
121
|
id: `workbench.output.action.switchBetweenOutputs`,
|
|
119
|
-
title: ( localize(
|
|
122
|
+
title: ( localize(11018, "Switch Output"))
|
|
120
123
|
});
|
|
121
124
|
}
|
|
122
125
|
async run(accessor, channelId) {
|
|
@@ -128,7 +131,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
128
131
|
const switchOutputMenu = ( new MenuId("workbench.output.menu.switchOutput"));
|
|
129
132
|
this._register(MenuRegistry.appendMenuItem(MenuId.ViewTitle, {
|
|
130
133
|
submenu: switchOutputMenu,
|
|
131
|
-
title: ( localize(
|
|
134
|
+
title: ( localize(11019, "Switch Output")),
|
|
132
135
|
group: "navigation",
|
|
133
136
|
when: ( ContextKeyExpr.equals("view", OUTPUT_VIEW_ID)),
|
|
134
137
|
order: 1,
|
|
@@ -176,8 +179,8 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
176
179
|
constructor() {
|
|
177
180
|
super({
|
|
178
181
|
id: "workbench.action.output.addCompoundLog",
|
|
179
|
-
title: ( localize2(
|
|
180
|
-
category: ( localize2(
|
|
182
|
+
title: ( localize2(11020, "Add Compound Log...")),
|
|
183
|
+
category: ( localize2(11016, "Output")),
|
|
181
184
|
f1: true,
|
|
182
185
|
menu: [{
|
|
183
186
|
id: MenuId.ViewTitle,
|
|
@@ -206,14 +209,14 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
206
209
|
if (extensionLogs.length && logs.length) {
|
|
207
210
|
entries.push({
|
|
208
211
|
type: "separator",
|
|
209
|
-
label: ( localize(
|
|
212
|
+
label: ( localize(11021, "Extension Logs"))
|
|
210
213
|
});
|
|
211
214
|
}
|
|
212
215
|
for (const log of extensionLogs.sort((a, b) => a.label.localeCompare(b.label))) {
|
|
213
216
|
entries.push(log);
|
|
214
217
|
}
|
|
215
218
|
const result = await quickInputService.pick(entries, {
|
|
216
|
-
placeHolder: ( localize(
|
|
219
|
+
placeHolder: ( localize(11022, "Select Log")),
|
|
217
220
|
canPickMany: true
|
|
218
221
|
});
|
|
219
222
|
if (result?.length) {
|
|
@@ -227,8 +230,8 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
227
230
|
constructor() {
|
|
228
231
|
super({
|
|
229
232
|
id: "workbench.action.output.remove",
|
|
230
|
-
title: ( localize2(
|
|
231
|
-
category: ( localize2(
|
|
233
|
+
title: ( localize2(11023, "Remove Output...")),
|
|
234
|
+
category: ( localize2(11016, "Output")),
|
|
232
235
|
f1: true
|
|
233
236
|
});
|
|
234
237
|
}
|
|
@@ -238,11 +241,11 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
238
241
|
const notificationService = accessor.get(INotificationService);
|
|
239
242
|
const entries = outputService.getChannelDescriptors().filter(channel => channel.user);
|
|
240
243
|
if (entries.length === 0) {
|
|
241
|
-
notificationService.info(( localize(
|
|
244
|
+
notificationService.info(( localize(11024, "No custom outputs to remove.")));
|
|
242
245
|
return;
|
|
243
246
|
}
|
|
244
247
|
const result = await quickInputService.pick(entries, {
|
|
245
|
-
placeHolder: ( localize(
|
|
248
|
+
placeHolder: ( localize(11022, "Select Log")),
|
|
246
249
|
canPickMany: true
|
|
247
250
|
});
|
|
248
251
|
if (!result?.length) {
|
|
@@ -260,8 +263,8 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
260
263
|
constructor() {
|
|
261
264
|
super({
|
|
262
265
|
id: "workbench.action.showOutputChannels",
|
|
263
|
-
title: ( localize2(
|
|
264
|
-
category: ( localize2(
|
|
266
|
+
title: ( localize2(11025, "Show Output Channels...")),
|
|
267
|
+
category: ( localize2(11016, "Output")),
|
|
265
268
|
f1: true
|
|
266
269
|
});
|
|
267
270
|
}
|
|
@@ -301,7 +304,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
301
304
|
});
|
|
302
305
|
}
|
|
303
306
|
const entry = await quickInputService.pick(entries, {
|
|
304
|
-
placeHolder: ( localize(
|
|
307
|
+
placeHolder: ( localize(11026, "Select Output Channel"))
|
|
305
308
|
});
|
|
306
309
|
if (entry) {
|
|
307
310
|
return outputService.showChannel(entry.id);
|
|
@@ -314,7 +317,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
314
317
|
constructor() {
|
|
315
318
|
super({
|
|
316
319
|
id: `workbench.output.action.clearOutput`,
|
|
317
|
-
title: ( localize2(
|
|
320
|
+
title: ( localize2(11027, "Clear Output")),
|
|
318
321
|
category: Categories.View,
|
|
319
322
|
menu: [{
|
|
320
323
|
id: MenuId.ViewTitle,
|
|
@@ -346,8 +349,8 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
346
349
|
constructor() {
|
|
347
350
|
super({
|
|
348
351
|
id: `workbench.output.action.toggleAutoScroll`,
|
|
349
|
-
title: ( localize2(
|
|
350
|
-
tooltip: ( localize(
|
|
352
|
+
title: ( localize2(11028, "Toggle Auto Scrolling")),
|
|
353
|
+
tooltip: ( localize(11029, "Turn Auto Scrolling Off")),
|
|
351
354
|
menu: {
|
|
352
355
|
id: MenuId.ViewTitle,
|
|
353
356
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals("view", OUTPUT_VIEW_ID)))),
|
|
@@ -358,7 +361,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
358
361
|
toggled: {
|
|
359
362
|
condition: CONTEXT_OUTPUT_SCROLL_LOCK,
|
|
360
363
|
icon: Codicon.unlock,
|
|
361
|
-
tooltip: ( localize(
|
|
364
|
+
tooltip: ( localize(11030, "Turn Auto Scrolling On"))
|
|
362
365
|
}
|
|
363
366
|
});
|
|
364
367
|
}
|
|
@@ -374,7 +377,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
374
377
|
constructor() {
|
|
375
378
|
super({
|
|
376
379
|
id: `workbench.action.openActiveLogOutputFile`,
|
|
377
|
-
title: ( localize2(
|
|
380
|
+
title: ( localize2(11031, "Open Output in Editor")),
|
|
378
381
|
menu: [{
|
|
379
382
|
id: MenuId.ViewTitle,
|
|
380
383
|
when: ( ContextKeyExpr.equals("view", OUTPUT_VIEW_ID)),
|
|
@@ -396,7 +399,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
396
399
|
constructor() {
|
|
397
400
|
super({
|
|
398
401
|
id: `workbench.action.openActiveLogOutputFileInNewWindow`,
|
|
399
|
-
title: ( localize2(
|
|
402
|
+
title: ( localize2(11032, "Open Output in New Window")),
|
|
400
403
|
menu: [{
|
|
401
404
|
id: MenuId.ViewTitle,
|
|
402
405
|
when: ( ContextKeyExpr.equals("view", OUTPUT_VIEW_ID)),
|
|
@@ -417,7 +420,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
417
420
|
constructor() {
|
|
418
421
|
super({
|
|
419
422
|
id: `workbench.action.saveActiveLogOutputAs`,
|
|
420
|
-
title: ( localize2(
|
|
423
|
+
title: ( localize2(11033, "Save Output As...")),
|
|
421
424
|
menu: [{
|
|
422
425
|
id: MenuId.ViewTitle,
|
|
423
426
|
when: ( ContextKeyExpr.equals("view", OUTPUT_VIEW_ID)),
|
|
@@ -453,7 +456,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
453
456
|
const logLevelMenu = ( new MenuId("workbench.output.menu.logLevel"));
|
|
454
457
|
this._register(MenuRegistry.appendMenuItem(MenuId.ViewTitle, {
|
|
455
458
|
submenu: logLevelMenu,
|
|
456
|
-
title: ( localize(
|
|
459
|
+
title: ( localize(11034, "Set Log Level...")),
|
|
457
460
|
group: "navigation",
|
|
458
461
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals("view", OUTPUT_VIEW_ID)), CONTEXT_ACTIVE_OUTPUT_LEVEL_SETTABLE)),
|
|
459
462
|
icon: Codicon.gear,
|
|
@@ -496,7 +499,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
496
499
|
constructor() {
|
|
497
500
|
super({
|
|
498
501
|
id: `workbench.action.output.activeOutputLogLevelDefault`,
|
|
499
|
-
title: ( localize(
|
|
502
|
+
title: ( localize(11035, "Set As Default")),
|
|
500
503
|
menu: {
|
|
501
504
|
id: logLevelMenu,
|
|
502
505
|
order,
|
|
@@ -525,7 +528,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
525
528
|
constructor() {
|
|
526
529
|
super({
|
|
527
530
|
id: "workbench.action.showLogs",
|
|
528
|
-
title: ( localize2(
|
|
531
|
+
title: ( localize2(11036, "Show Logs...")),
|
|
529
532
|
category: Categories.Developer,
|
|
530
533
|
menu: {
|
|
531
534
|
id: MenuId.CommandPalette
|
|
@@ -558,7 +561,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
558
561
|
if (extensionLogs.length && logs.length) {
|
|
559
562
|
entries.push({
|
|
560
563
|
type: "separator",
|
|
561
|
-
label: ( localize(
|
|
564
|
+
label: ( localize(11021, "Extension Logs"))
|
|
562
565
|
});
|
|
563
566
|
}
|
|
564
567
|
for (const {
|
|
@@ -571,7 +574,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
571
574
|
});
|
|
572
575
|
}
|
|
573
576
|
const entry = await quickInputService.pick(entries, {
|
|
574
|
-
placeHolder: ( localize(
|
|
577
|
+
placeHolder: ( localize(11022, "Select Log"))
|
|
575
578
|
});
|
|
576
579
|
if (entry) {
|
|
577
580
|
return outputService.showChannel(entry.id);
|
|
@@ -584,7 +587,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
584
587
|
constructor() {
|
|
585
588
|
super({
|
|
586
589
|
id: "workbench.action.openLogFile",
|
|
587
|
-
title: ( localize2(
|
|
590
|
+
title: ( localize2(11037, "Open Log...")),
|
|
588
591
|
category: Categories.Developer,
|
|
589
592
|
menu: {
|
|
590
593
|
id: MenuId.CommandPalette
|
|
@@ -595,7 +598,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
595
598
|
name: "logFile",
|
|
596
599
|
schema: {
|
|
597
600
|
markdownDescription: ( localize(
|
|
598
|
-
|
|
601
|
+
11038,
|
|
599
602
|
"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
603
|
)),
|
|
601
604
|
type: "string"
|
|
@@ -637,7 +640,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
637
640
|
entries.push(...coreChannels.sort((a, b) => a.label.localeCompare(b.label)));
|
|
638
641
|
}
|
|
639
642
|
entry = await quickInputService.pick(entries, {
|
|
640
|
-
placeHolder: ( localize(
|
|
643
|
+
placeHolder: ( localize(11039, "Select Log File"))
|
|
641
644
|
});
|
|
642
645
|
}
|
|
643
646
|
if (entry?.id) {
|
|
@@ -664,7 +667,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
664
667
|
title: LogLevelToLocalizedString(logLevel).value,
|
|
665
668
|
metadata: {
|
|
666
669
|
description: ( localize2(
|
|
667
|
-
|
|
670
|
+
11040,
|
|
668
671
|
"Show or hide {0} messages in the output",
|
|
669
672
|
LogLevelToString(logLevel)
|
|
670
673
|
))
|
|
@@ -714,7 +717,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
714
717
|
constructor() {
|
|
715
718
|
super({
|
|
716
719
|
id: `workbench.actions.${OUTPUT_VIEW_ID}.clearFilterText`,
|
|
717
|
-
title: ( localize(
|
|
720
|
+
title: ( localize(11041, "Clear filters text")),
|
|
718
721
|
keybinding: {
|
|
719
722
|
when: OUTPUT_FILTER_FOCUS_CONTEXT,
|
|
720
723
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -733,7 +736,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
733
736
|
constructor() {
|
|
734
737
|
super({
|
|
735
738
|
id: `workbench.action.exportLogs`,
|
|
736
|
-
title: ( localize2(
|
|
739
|
+
title: ( localize2(11042, "Export Logs...")),
|
|
737
740
|
f1: true,
|
|
738
741
|
category: Categories.Developer,
|
|
739
742
|
menu: [{
|
|
@@ -766,7 +769,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
766
769
|
if (extensionLogs.length && logs.length) {
|
|
767
770
|
entries.push({
|
|
768
771
|
type: "separator",
|
|
769
|
-
label: ( localize(
|
|
772
|
+
label: ( localize(11021, "Extension Logs"))
|
|
770
773
|
});
|
|
771
774
|
}
|
|
772
775
|
for (const log of extensionLogs.sort((a, b) => a.label.localeCompare(b.label))) {
|
|
@@ -775,7 +778,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
775
778
|
if (userLogs.length && (extensionLogs.length || logs.length)) {
|
|
776
779
|
entries.push({
|
|
777
780
|
type: "separator",
|
|
778
|
-
label: ( localize(
|
|
781
|
+
label: ( localize(11043, "User Logs"))
|
|
779
782
|
});
|
|
780
783
|
}
|
|
781
784
|
for (const log of userLogs.sort((a, b) => a.label.localeCompare(b.label))) {
|
|
@@ -797,7 +800,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
797
800
|
}
|
|
798
801
|
} else {
|
|
799
802
|
selectedOutputChannels = await quickInputService.pick(entries, {
|
|
800
|
-
placeHolder: ( localize(
|
|
803
|
+
placeHolder: ( localize(11022, "Select Log")),
|
|
801
804
|
canPickMany: true
|
|
802
805
|
});
|
|
803
806
|
}
|
|
@@ -812,7 +815,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
812
815
|
constructor() {
|
|
813
816
|
super({
|
|
814
817
|
id: `workbench.action.importLog`,
|
|
815
|
-
title: ( localize2(
|
|
818
|
+
title: ( localize2(11044, "Import Log...")),
|
|
816
819
|
f1: true,
|
|
817
820
|
category: Categories.Developer,
|
|
818
821
|
menu: [{
|
|
@@ -827,12 +830,12 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
827
830
|
const outputService = accessor.get(IOutputService);
|
|
828
831
|
const fileDialogService = accessor.get(IFileDialogService);
|
|
829
832
|
const result = await fileDialogService.showOpenDialog({
|
|
830
|
-
title: ( localize(
|
|
833
|
+
title: ( localize(11045, "Import Log File")),
|
|
831
834
|
canSelectFiles: true,
|
|
832
835
|
canSelectFolders: false,
|
|
833
836
|
canSelectMany: true,
|
|
834
837
|
filters: [{
|
|
835
|
-
name: ( localize(
|
|
838
|
+
name: ( localize(11046, "Log Files")),
|
|
836
839
|
extensions: ["log"]
|
|
837
840
|
}]
|
|
838
841
|
});
|
|
@@ -862,13 +865,13 @@ OutputContribution = ( __decorate([( __param(0, IOutputService)), ( __param(1, I
|
|
|
862
865
|
( Registry.as(Extensions$3.Configuration)).registerConfiguration({
|
|
863
866
|
id: "output",
|
|
864
867
|
order: 30,
|
|
865
|
-
title: ( localize(
|
|
868
|
+
title: ( localize(11016, "Output")),
|
|
866
869
|
type: "object",
|
|
867
870
|
properties: {
|
|
868
871
|
"output.smartScroll.enabled": {
|
|
869
872
|
type: "boolean",
|
|
870
873
|
description: ( localize(
|
|
871
|
-
|
|
874
|
+
11047,
|
|
872
875
|
"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."
|
|
873
876
|
)),
|
|
874
877
|
default: true,
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AccessibleViewType, AccessibleContentProvider } from "@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/browser/accessibleView";
|
|
2
|
+
import { IAccessibleViewImplementation } from "@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/browser/accessibleViewRegistry";
|
|
3
|
+
import { ServicesAccessor } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
4
|
+
export declare class OutputAccessibilityHelp implements IAccessibleViewImplementation {
|
|
5
|
+
readonly type = AccessibleViewType.Help;
|
|
6
|
+
readonly priority = 105;
|
|
7
|
+
readonly name = "outputFilter";
|
|
8
|
+
readonly when: import("@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey").RawContextKey<boolean>;
|
|
9
|
+
getProvider(accessor: ServicesAccessor): AccessibleContentProvider;
|
|
10
|
+
}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
|
|
2
|
+
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
3
|
+
import { AccessibleViewType, AccessibleViewProviderId } from '@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/browser/accessibleView';
|
|
4
|
+
import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
5
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
6
|
+
import { AccessibilityVerbositySettingId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration';
|
|
7
|
+
import { OUTPUT_FILTER_FOCUS_CONTEXT } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/output/common/output';
|
|
8
|
+
|
|
9
|
+
class OutputAccessibilityHelp {
|
|
10
|
+
constructor() {
|
|
11
|
+
this.type = AccessibleViewType.Help;
|
|
12
|
+
this.priority = 105;
|
|
13
|
+
this.name = "outputFilter";
|
|
14
|
+
this.when = OUTPUT_FILTER_FOCUS_CONTEXT;
|
|
15
|
+
}
|
|
16
|
+
getProvider(accessor) {
|
|
17
|
+
return ( new OutputAccessibilityHelpProvider(accessor.get(IKeybindingService)));
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
class OutputAccessibilityHelpProvider extends Disposable {
|
|
21
|
+
constructor(_keybindingService) {
|
|
22
|
+
super();
|
|
23
|
+
this._keybindingService = _keybindingService;
|
|
24
|
+
this.id = AccessibleViewProviderId.OutputFindHelp;
|
|
25
|
+
this.verbositySettingKey = AccessibilityVerbositySettingId.Find;
|
|
26
|
+
this.options = {
|
|
27
|
+
type: AccessibleViewType.Help
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
provideContent() {
|
|
31
|
+
const lines = [];
|
|
32
|
+
lines.push(( localize(11048, "Accessibility Help: Output Panel Filter")));
|
|
33
|
+
lines.push(( localize(
|
|
34
|
+
11049,
|
|
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
|
+
)));
|
|
37
|
+
lines.push("");
|
|
38
|
+
lines.push(( localize(11050, "Current Filter Status:")));
|
|
39
|
+
lines.push(( localize(11051, "You are filtering the output.")));
|
|
40
|
+
lines.push("");
|
|
41
|
+
lines.push(( localize(11052, "Inside the Filter Input (What It Does):")));
|
|
42
|
+
lines.push(( localize(
|
|
43
|
+
11053,
|
|
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
|
+
)));
|
|
46
|
+
lines.push("");
|
|
47
|
+
lines.push(( localize(11054, "What Happens When You Filter:")));
|
|
48
|
+
lines.push(( localize(
|
|
49
|
+
11055,
|
|
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
|
+
)));
|
|
52
|
+
lines.push(( localize(
|
|
53
|
+
11056,
|
|
54
|
+
"New output from your running program is appended to the panel and automatically filtered, so matching new output appears instantly."
|
|
55
|
+
)));
|
|
56
|
+
lines.push("");
|
|
57
|
+
lines.push(( localize(11057, "Focus Behavior (Important):")));
|
|
58
|
+
lines.push(( localize(
|
|
59
|
+
11058,
|
|
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
|
+
)));
|
|
62
|
+
lines.push(( localize(
|
|
63
|
+
11059,
|
|
64
|
+
"If you want to review the filtered output, press Down Arrow to move focus from the filter into the output content below."
|
|
65
|
+
)));
|
|
66
|
+
lines.push(( localize(
|
|
67
|
+
11060,
|
|
68
|
+
"If you want to clear the filter and see all output, press Escape or delete all filter text."
|
|
69
|
+
)));
|
|
70
|
+
lines.push("");
|
|
71
|
+
lines.push(( localize(11061, "Filter Syntax and Patterns:")));
|
|
72
|
+
lines.push(( localize(
|
|
73
|
+
11062,
|
|
74
|
+
"- Type text: Shows only lines containing that text (case-insensitive by default)."
|
|
75
|
+
)));
|
|
76
|
+
lines.push(( localize(
|
|
77
|
+
11063,
|
|
78
|
+
"- !text (exclude): Hides lines containing 'text', showing all other lines."
|
|
79
|
+
)));
|
|
80
|
+
lines.push(( localize(
|
|
81
|
+
11064,
|
|
82
|
+
"- \\\\! (escape): Use backslash to search for a literal \"!\" character."
|
|
83
|
+
)));
|
|
84
|
+
lines.push(( localize(
|
|
85
|
+
11065,
|
|
86
|
+
"- text1, text2 (multiple patterns): Separate patterns with commas to show lines matching ANY pattern."
|
|
87
|
+
)));
|
|
88
|
+
lines.push(( localize(
|
|
89
|
+
11066,
|
|
90
|
+
"Example: typing \"error, warning\" shows lines containing either \"error\" or \"warning\"."
|
|
91
|
+
)));
|
|
92
|
+
lines.push("");
|
|
93
|
+
lines.push(( localize(11067, "Keyboard Navigation Summary:")));
|
|
94
|
+
lines.push(( localize(11068, "- Down Arrow: Move focus from filter into the output content.")));
|
|
95
|
+
lines.push(( localize(11069, "- Tab: Move to log level filter buttons if available.")));
|
|
96
|
+
lines.push(( localize(11070, "- Escape: Clear the filter and return to showing all output.")));
|
|
97
|
+
lines.push("");
|
|
98
|
+
lines.push(( localize(
|
|
99
|
+
11071,
|
|
100
|
+
"Settings You Can Adjust ({0} opens Settings):",
|
|
101
|
+
this._describeCommand("workbench.action.openSettings") || "Ctrl+,"
|
|
102
|
+
)));
|
|
103
|
+
lines.push(( localize(11072, "These settings affect how the Output panel works.")));
|
|
104
|
+
lines.push(( localize(
|
|
105
|
+
11073,
|
|
106
|
+
"- `accessibility.verbosity.find`: Controls whether the filter input announces the Accessibility Help hint."
|
|
107
|
+
)));
|
|
108
|
+
lines.push(( localize(
|
|
109
|
+
11074,
|
|
110
|
+
"- `output.smartScroll.enabled`: Automatically scroll to the latest output when messages arrive."
|
|
111
|
+
)));
|
|
112
|
+
lines.push("");
|
|
113
|
+
lines.push(( localize(11075, "Closing:")));
|
|
114
|
+
lines.push(( localize(
|
|
115
|
+
11076,
|
|
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
|
+
)));
|
|
118
|
+
return lines.join("\n");
|
|
119
|
+
}
|
|
120
|
+
_describeCommand(commandId) {
|
|
121
|
+
const kb = this._keybindingService.lookupKeybinding(commandId);
|
|
122
|
+
return kb?.getAriaLabel() ?? undefined;
|
|
123
|
+
}
|
|
124
|
+
onClose() {}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export { OutputAccessibilityHelp };
|
|
@@ -25,7 +25,7 @@ let OutputLinkProvider = class OutputLinkProvider extends Disposable {
|
|
|
25
25
|
this.modelService = modelService;
|
|
26
26
|
this.languageFeaturesService = languageFeaturesService;
|
|
27
27
|
this.webWorkerService = webWorkerService;
|
|
28
|
-
this.disposeWorkerScheduler = ( new RunOnceScheduler(() => this.disposeWorker(), OutputLinkProvider_1.DISPOSE_WORKER_TIME));
|
|
28
|
+
this.disposeWorkerScheduler = this._register(( new RunOnceScheduler(() => this.disposeWorker(), OutputLinkProvider_1.DISPOSE_WORKER_TIME)));
|
|
29
29
|
this.registerListeners();
|
|
30
30
|
this.updateLinkProviderWorker();
|
|
31
31
|
}
|
|
@@ -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(11077, "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(11078, "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(11079, "{0} - Output", channel.label)), ( localize(11080, "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(11081, "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(11082, "Output panel"));
|
|
269
269
|
}
|
|
270
270
|
computeAriaLabel() {
|
|
271
271
|
return this.input ? computeEditorAriaLabel(this.input, undefined, undefined, this.editorGroupService.count) : this.getAriaLabel();
|
|
@@ -128,8 +128,8 @@ let FileContentProvider = class FileContentProvider extends Disposable {
|
|
|
128
128
|
this.fileService = fileService;
|
|
129
129
|
this.instantiationService = instantiationService;
|
|
130
130
|
this.logService = logService;
|
|
131
|
-
this._onDidAppend = ( new Emitter());
|
|
132
|
-
this._onDidReset = ( new Emitter());
|
|
131
|
+
this._onDidAppend = this._register(( new Emitter()));
|
|
132
|
+
this._onDidReset = this._register(( new Emitter()));
|
|
133
133
|
this.watching = false;
|
|
134
134
|
this.etag = "";
|
|
135
135
|
this.logEntries = [];
|