@codingame/monaco-vscode-output-service-override 9.0.0 → 9.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-output-service-override",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.2",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"vscode": "npm:@codingame/monaco-vscode-api@9.0.
|
|
33
|
-
"@codingame/monaco-vscode-log-service-override": "9.0.
|
|
32
|
+
"vscode": "npm:@codingame/monaco-vscode-api@9.0.2",
|
|
33
|
+
"@codingame/monaco-vscode-log-service-override": "9.0.2"
|
|
34
34
|
}
|
|
35
35
|
}
|
|
@@ -42,10 +42,10 @@ ModesRegistry.registerLanguage({
|
|
|
42
42
|
extensions: [],
|
|
43
43
|
mimetypes: [LOG_MIME]
|
|
44
44
|
});
|
|
45
|
-
const outputViewIcon = registerIcon('output-view-icon', Codicon.output, ( localize(
|
|
45
|
+
const outputViewIcon = registerIcon('output-view-icon', Codicon.output, ( localize(2741, 'View icon of the output view.')));
|
|
46
46
|
const VIEW_CONTAINER = ( (Registry.as(Extensions.ViewContainersRegistry))).registerViewContainer({
|
|
47
47
|
id: OUTPUT_VIEW_ID,
|
|
48
|
-
title: ( localize2(
|
|
48
|
+
title: ( localize2(2742, "Output")),
|
|
49
49
|
icon: outputViewIcon,
|
|
50
50
|
order: 1,
|
|
51
51
|
ctorDescriptor: ( (new SyncDescriptor(
|
|
@@ -57,14 +57,14 @@ const VIEW_CONTAINER = ( (Registry.as(Extensions.ViewContainersRegistry))).regis
|
|
|
57
57
|
}, ViewContainerLocation.Panel, { doNotRegisterOpenCommand: true });
|
|
58
58
|
( (Registry.as(Extensions.ViewsRegistry))).registerViews([{
|
|
59
59
|
id: OUTPUT_VIEW_ID,
|
|
60
|
-
name: ( localize2(
|
|
60
|
+
name: ( localize2(2742, "Output")),
|
|
61
61
|
containerIcon: outputViewIcon,
|
|
62
62
|
canMoveView: true,
|
|
63
63
|
canToggleVisibility: false,
|
|
64
64
|
ctorDescriptor: ( (new SyncDescriptor(OutputViewPane))),
|
|
65
65
|
openCommandActionDescriptor: {
|
|
66
66
|
id: 'workbench.action.output.toggleOutput',
|
|
67
|
-
mnemonicTitle: ( localize(
|
|
67
|
+
mnemonicTitle: ( localize(2743, "&&Output")),
|
|
68
68
|
keybindings: {
|
|
69
69
|
primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyU,
|
|
70
70
|
linux: {
|
|
@@ -98,7 +98,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
98
98
|
constructor() {
|
|
99
99
|
super({
|
|
100
100
|
id: `workbench.output.action.switchBetweenOutputs`,
|
|
101
|
-
title: ( localize(
|
|
101
|
+
title: ( localize(2744, "Switch Output")),
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
104
|
async run(accessor, channelId) {
|
|
@@ -110,7 +110,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
110
110
|
const switchOutputMenu = ( (new MenuId('workbench.output.menu.switchOutput')));
|
|
111
111
|
this._register(MenuRegistry.appendMenuItem(MenuId.ViewTitle, {
|
|
112
112
|
submenu: switchOutputMenu,
|
|
113
|
-
title: ( localize(
|
|
113
|
+
title: ( localize(2745, "Switch Output")),
|
|
114
114
|
group: 'navigation',
|
|
115
115
|
when: ( (ContextKeyExpr.equals('view', OUTPUT_VIEW_ID))),
|
|
116
116
|
order: 1,
|
|
@@ -158,8 +158,8 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
158
158
|
constructor() {
|
|
159
159
|
super({
|
|
160
160
|
id: 'workbench.action.showOutputChannels',
|
|
161
|
-
title: ( localize2(
|
|
162
|
-
category: ( localize2(
|
|
161
|
+
title: ( localize2(2746, "Show Output Channels...")),
|
|
162
|
+
category: ( localize2(2742, "Output")),
|
|
163
163
|
f1: true
|
|
164
164
|
});
|
|
165
165
|
}
|
|
@@ -185,7 +185,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
185
185
|
for (const { id, label } of coreChannels) {
|
|
186
186
|
entries.push({ id, label });
|
|
187
187
|
}
|
|
188
|
-
const entry = await quickInputService.pick(entries, { placeHolder: ( localize(
|
|
188
|
+
const entry = await quickInputService.pick(entries, { placeHolder: ( localize(2747, "Select Output Channel")) });
|
|
189
189
|
if (entry) {
|
|
190
190
|
return outputService.showChannel(entry.id);
|
|
191
191
|
}
|
|
@@ -197,7 +197,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
197
197
|
constructor() {
|
|
198
198
|
super({
|
|
199
199
|
id: `workbench.output.action.clearOutput`,
|
|
200
|
-
title: ( localize2(
|
|
200
|
+
title: ( localize2(2748, "Clear Output")),
|
|
201
201
|
category: Categories.View,
|
|
202
202
|
menu: [{
|
|
203
203
|
id: MenuId.ViewTitle,
|
|
@@ -229,8 +229,8 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
229
229
|
constructor() {
|
|
230
230
|
super({
|
|
231
231
|
id: `workbench.output.action.toggleAutoScroll`,
|
|
232
|
-
title: ( localize2(
|
|
233
|
-
tooltip: ( localize(
|
|
232
|
+
title: ( localize2(2749, "Toggle Auto Scrolling")),
|
|
233
|
+
tooltip: ( localize(2750, "Turn Auto Scrolling Off")),
|
|
234
234
|
menu: {
|
|
235
235
|
id: MenuId.ViewTitle,
|
|
236
236
|
when: ( (ContextKeyExpr.and( (ContextKeyExpr.equals('view', OUTPUT_VIEW_ID))))),
|
|
@@ -241,7 +241,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
241
241
|
toggled: {
|
|
242
242
|
condition: CONTEXT_OUTPUT_SCROLL_LOCK,
|
|
243
243
|
icon: Codicon.unlock,
|
|
244
|
-
tooltip: ( localize(
|
|
244
|
+
tooltip: ( localize(2751, "Turn Auto Scrolling On"))
|
|
245
245
|
}
|
|
246
246
|
});
|
|
247
247
|
}
|
|
@@ -257,7 +257,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
257
257
|
constructor() {
|
|
258
258
|
super({
|
|
259
259
|
id: `workbench.action.openActiveLogOutputFile`,
|
|
260
|
-
title: ( localize2(
|
|
260
|
+
title: ( localize2(2752, "Open Output in Editor")),
|
|
261
261
|
menu: [{
|
|
262
262
|
id: MenuId.ViewTitle,
|
|
263
263
|
when: ( (ContextKeyExpr.equals('view', OUTPUT_VIEW_ID))),
|
|
@@ -280,7 +280,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
280
280
|
constructor() {
|
|
281
281
|
super({
|
|
282
282
|
id: `workbench.action.openActiveLogOutputFileInNewWindow`,
|
|
283
|
-
title: ( localize2(
|
|
283
|
+
title: ( localize2(2753, "Open Output in New Window")),
|
|
284
284
|
menu: [{
|
|
285
285
|
id: MenuId.ViewTitle,
|
|
286
286
|
when: ( (ContextKeyExpr.equals('view', OUTPUT_VIEW_ID))),
|
|
@@ -324,7 +324,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
324
324
|
const logLevelMenu = ( (new MenuId('workbench.output.menu.logLevel')));
|
|
325
325
|
this._register(MenuRegistry.appendMenuItem(MenuId.ViewTitle, {
|
|
326
326
|
submenu: logLevelMenu,
|
|
327
|
-
title: ( localize(
|
|
327
|
+
title: ( localize(2754, "Set Log Level...")),
|
|
328
328
|
group: 'navigation',
|
|
329
329
|
when: ( (ContextKeyExpr.and(
|
|
330
330
|
(ContextKeyExpr.equals('view', OUTPUT_VIEW_ID)),
|
|
@@ -369,7 +369,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
369
369
|
constructor() {
|
|
370
370
|
super({
|
|
371
371
|
id: `workbench.action.output.activeOutputLogLevelDefault`,
|
|
372
|
-
title: ( localize(
|
|
372
|
+
title: ( localize(2755, "Set As Default")),
|
|
373
373
|
menu: {
|
|
374
374
|
id: logLevelMenu,
|
|
375
375
|
order,
|
|
@@ -395,7 +395,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
395
395
|
constructor() {
|
|
396
396
|
super({
|
|
397
397
|
id: 'workbench.action.showLogs',
|
|
398
|
-
title: ( localize2(
|
|
398
|
+
title: ( localize2(2756, "Show Logs...")),
|
|
399
399
|
category: Categories.Developer,
|
|
400
400
|
menu: {
|
|
401
401
|
id: MenuId.CommandPalette,
|
|
@@ -421,12 +421,12 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
421
421
|
entries.push({ id, label });
|
|
422
422
|
}
|
|
423
423
|
if (extensionLogs.length && logs.length) {
|
|
424
|
-
entries.push({ type: 'separator', label: ( localize(
|
|
424
|
+
entries.push({ type: 'separator', label: ( localize(2757, "Extension Logs")) });
|
|
425
425
|
}
|
|
426
426
|
for (const { id, label } of extensionLogs) {
|
|
427
427
|
entries.push({ id, label });
|
|
428
428
|
}
|
|
429
|
-
const entry = await quickInputService.pick(entries, { placeHolder: ( localize(
|
|
429
|
+
const entry = await quickInputService.pick(entries, { placeHolder: ( localize(2758, "Select Log")) });
|
|
430
430
|
if (entry) {
|
|
431
431
|
return outputService.showChannel(entry.id);
|
|
432
432
|
}
|
|
@@ -438,7 +438,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
438
438
|
constructor() {
|
|
439
439
|
super({
|
|
440
440
|
id: 'workbench.action.openLogFile',
|
|
441
|
-
title: ( localize2(
|
|
441
|
+
title: ( localize2(2759, "Open Log File...")),
|
|
442
442
|
category: Categories.Developer,
|
|
443
443
|
menu: {
|
|
444
444
|
id: MenuId.CommandPalette,
|
|
@@ -449,7 +449,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
449
449
|
name: 'logFile',
|
|
450
450
|
schema: {
|
|
451
451
|
markdownDescription: ( localize(
|
|
452
|
-
|
|
452
|
+
2760,
|
|
453
453
|
"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"
|
|
454
454
|
)),
|
|
455
455
|
type: 'string'
|
|
@@ -487,7 +487,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
487
487
|
entries.push({ type: 'separator' });
|
|
488
488
|
entries.push(...coreChannels.sort((a, b) => a.label.localeCompare(b.label)));
|
|
489
489
|
}
|
|
490
|
-
entry = await quickInputService.pick(entries, { placeHolder: ( localize(
|
|
490
|
+
entry = await quickInputService.pick(entries, { placeHolder: ( localize(2761, "Select Log File")) });
|
|
491
491
|
}
|
|
492
492
|
if (entry) {
|
|
493
493
|
const resource = assertIsDefined(entry.channel.file);
|
|
@@ -512,13 +512,13 @@ OutputContribution = ( (__decorate([
|
|
|
512
512
|
( (Registry.as(Extensions$3.Configuration))).registerConfiguration({
|
|
513
513
|
id: 'output',
|
|
514
514
|
order: 30,
|
|
515
|
-
title: ( localize(
|
|
515
|
+
title: ( localize(2742, "Output")),
|
|
516
516
|
type: 'object',
|
|
517
517
|
properties: {
|
|
518
518
|
'output.smartScroll.enabled': {
|
|
519
519
|
type: 'boolean',
|
|
520
520
|
description: ( localize(
|
|
521
|
-
|
|
521
|
+
2762,
|
|
522
522
|
"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."
|
|
523
523
|
)),
|
|
524
524
|
default: true,
|
|
@@ -105,7 +105,7 @@ let OutputViewPane = class OutputViewPane extends ViewPane {
|
|
|
105
105
|
this.editorPromise = null;
|
|
106
106
|
}
|
|
107
107
|
createInput(channel) {
|
|
108
|
-
return this.instantiationService.createInstance(TextResourceEditorInput, channel.uri, ( localize(
|
|
108
|
+
return this.instantiationService.createInstance(TextResourceEditorInput, channel.uri, ( localize(6152, "{0} - Output", channel.label)), ( localize(6153, "Output channel for '{0}'", channel.label)), undefined, undefined);
|
|
109
109
|
}
|
|
110
110
|
};
|
|
111
111
|
OutputViewPane = ( (__decorate([
|
|
@@ -130,7 +130,7 @@ let OutputEditor = class OutputEditor extends AbstractTextResourceEditor {
|
|
|
130
130
|
return OUTPUT_VIEW_ID;
|
|
131
131
|
}
|
|
132
132
|
getTitle() {
|
|
133
|
-
return ( localize(
|
|
133
|
+
return ( localize(6154, "Output"));
|
|
134
134
|
}
|
|
135
135
|
getConfigurationOverrides(configuration) {
|
|
136
136
|
const options = super.getConfigurationOverrides(configuration);
|
|
@@ -164,7 +164,7 @@ let OutputEditor = class OutputEditor extends AbstractTextResourceEditor {
|
|
|
164
164
|
return options;
|
|
165
165
|
}
|
|
166
166
|
getAriaLabel() {
|
|
167
|
-
return this.input ? this.input.getAriaLabel() : ( localize(
|
|
167
|
+
return this.input ? this.input.getAriaLabel() : ( localize(6155, "Output panel"));
|
|
168
168
|
}
|
|
169
169
|
computeAriaLabel() {
|
|
170
170
|
return this.input ? computeEditorAriaLabel(this.input, undefined, undefined, this.editorGroupService.count) : this.getAriaLabel();
|