@codingame/monaco-vscode-output-service-override 7.1.0 → 7.1.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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-output-service-override",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.1",
|
|
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@7.1.
|
|
33
|
-
"@codingame/monaco-vscode-log-service-override": "7.1.
|
|
32
|
+
"vscode": "npm:@codingame/monaco-vscode-api@7.1.1",
|
|
33
|
+
"@codingame/monaco-vscode-log-service-override": "7.1.1"
|
|
34
34
|
}
|
|
35
35
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
|
|
2
|
-
import {
|
|
2
|
+
import { localize, localize2 } from 'vscode/vscode/vs/nls';
|
|
3
3
|
import { KeyMod, KeyCode, KeyChord } from 'vscode/vscode/vs/base/common/keyCodes';
|
|
4
4
|
import { ModesRegistry } from 'vscode/vscode/vs/editor/common/languages/modesRegistry';
|
|
5
5
|
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
@@ -32,7 +32,6 @@ import { LogLevelToLocalizedString, LogLevelToString, LogLevel } from 'vscode/vs
|
|
|
32
32
|
import { ILoggerService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
33
33
|
import { IDefaultLogLevelsService } from 'vscode/vscode/vs/workbench/contrib/logs/common/defaultLogLevels.service';
|
|
34
34
|
|
|
35
|
-
const _moduleId = "vs/workbench/contrib/output/browser/output.contribution";
|
|
36
35
|
ModesRegistry.registerLanguage({
|
|
37
36
|
id: OUTPUT_MODE_ID,
|
|
38
37
|
extensions: [],
|
|
@@ -43,10 +42,10 @@ ModesRegistry.registerLanguage({
|
|
|
43
42
|
extensions: [],
|
|
44
43
|
mimetypes: [LOG_MIME]
|
|
45
44
|
});
|
|
46
|
-
const outputViewIcon = registerIcon('output-view-icon', Codicon.output, (
|
|
45
|
+
const outputViewIcon = registerIcon('output-view-icon', Codicon.output, ( localize(2728, 'View icon of the output view.')));
|
|
47
46
|
const VIEW_CONTAINER = ( (Registry.as(Extensions.ViewContainersRegistry))).registerViewContainer({
|
|
48
47
|
id: OUTPUT_VIEW_ID,
|
|
49
|
-
title: (
|
|
48
|
+
title: ( localize2(2729, "Output")),
|
|
50
49
|
icon: outputViewIcon,
|
|
51
50
|
order: 1,
|
|
52
51
|
ctorDescriptor: ( (new SyncDescriptor(
|
|
@@ -58,14 +57,14 @@ const VIEW_CONTAINER = ( (Registry.as(Extensions.ViewContainersRegistry))).regis
|
|
|
58
57
|
}, ViewContainerLocation.Panel, { doNotRegisterOpenCommand: true });
|
|
59
58
|
( (Registry.as(Extensions.ViewsRegistry))).registerViews([{
|
|
60
59
|
id: OUTPUT_VIEW_ID,
|
|
61
|
-
name: (
|
|
60
|
+
name: ( localize2(2729, "Output")),
|
|
62
61
|
containerIcon: outputViewIcon,
|
|
63
62
|
canMoveView: true,
|
|
64
63
|
canToggleVisibility: false,
|
|
65
64
|
ctorDescriptor: ( (new SyncDescriptor(OutputViewPane))),
|
|
66
65
|
openCommandActionDescriptor: {
|
|
67
66
|
id: 'workbench.action.output.toggleOutput',
|
|
68
|
-
mnemonicTitle: (
|
|
67
|
+
mnemonicTitle: ( localize(2730, "&&Output")),
|
|
69
68
|
keybindings: {
|
|
70
69
|
primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyU,
|
|
71
70
|
linux: {
|
|
@@ -99,7 +98,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
99
98
|
constructor() {
|
|
100
99
|
super({
|
|
101
100
|
id: `workbench.output.action.switchBetweenOutputs`,
|
|
102
|
-
title: (
|
|
101
|
+
title: ( localize(2731, "Switch Output")),
|
|
103
102
|
});
|
|
104
103
|
}
|
|
105
104
|
async run(accessor, channelId) {
|
|
@@ -111,7 +110,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
111
110
|
const switchOutputMenu = ( (new MenuId('workbench.output.menu.switchOutput')));
|
|
112
111
|
this._register(MenuRegistry.appendMenuItem(MenuId.ViewTitle, {
|
|
113
112
|
submenu: switchOutputMenu,
|
|
114
|
-
title: (
|
|
113
|
+
title: ( localize(2732, "Switch Output")),
|
|
115
114
|
group: 'navigation',
|
|
116
115
|
when: ( (ContextKeyExpr.equals('view', OUTPUT_VIEW_ID))),
|
|
117
116
|
order: 1,
|
|
@@ -159,8 +158,8 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
159
158
|
constructor() {
|
|
160
159
|
super({
|
|
161
160
|
id: 'workbench.action.showOutputChannels',
|
|
162
|
-
title: (
|
|
163
|
-
category: (
|
|
161
|
+
title: ( localize2(2733, "Show Output Channels...")),
|
|
162
|
+
category: ( localize2(2733, "Output")),
|
|
164
163
|
f1: true
|
|
165
164
|
});
|
|
166
165
|
}
|
|
@@ -186,7 +185,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
186
185
|
for (const { id, label } of coreChannels) {
|
|
187
186
|
entries.push({ id, label });
|
|
188
187
|
}
|
|
189
|
-
const entry = await quickInputService.pick(entries, { placeHolder: (
|
|
188
|
+
const entry = await quickInputService.pick(entries, { placeHolder: ( localize(2734, "Select Output Channel")) });
|
|
190
189
|
if (entry) {
|
|
191
190
|
return outputService.showChannel(entry.id);
|
|
192
191
|
}
|
|
@@ -198,7 +197,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
198
197
|
constructor() {
|
|
199
198
|
super({
|
|
200
199
|
id: `workbench.output.action.clearOutput`,
|
|
201
|
-
title: (
|
|
200
|
+
title: ( localize2(2735, "Clear Output")),
|
|
202
201
|
category: Categories.View,
|
|
203
202
|
menu: [{
|
|
204
203
|
id: MenuId.ViewTitle,
|
|
@@ -230,8 +229,8 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
230
229
|
constructor() {
|
|
231
230
|
super({
|
|
232
231
|
id: `workbench.output.action.toggleAutoScroll`,
|
|
233
|
-
title: (
|
|
234
|
-
tooltip: (
|
|
232
|
+
title: ( localize2(2736, "Toggle Auto Scrolling")),
|
|
233
|
+
tooltip: ( localize(2737, "Turn Auto Scrolling Off")),
|
|
235
234
|
menu: {
|
|
236
235
|
id: MenuId.ViewTitle,
|
|
237
236
|
when: ( (ContextKeyExpr.and( (ContextKeyExpr.equals('view', OUTPUT_VIEW_ID))))),
|
|
@@ -242,7 +241,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
242
241
|
toggled: {
|
|
243
242
|
condition: CONTEXT_OUTPUT_SCROLL_LOCK,
|
|
244
243
|
icon: Codicon.unlock,
|
|
245
|
-
tooltip: (
|
|
244
|
+
tooltip: ( localize(2738, "Turn Auto Scrolling On"))
|
|
246
245
|
}
|
|
247
246
|
});
|
|
248
247
|
}
|
|
@@ -258,7 +257,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
258
257
|
constructor() {
|
|
259
258
|
super({
|
|
260
259
|
id: `workbench.action.openActiveLogOutputFile`,
|
|
261
|
-
title: (
|
|
260
|
+
title: ( localize2(2739, "Open Output in Editor")),
|
|
262
261
|
menu: [{
|
|
263
262
|
id: MenuId.ViewTitle,
|
|
264
263
|
when: ( (ContextKeyExpr.equals('view', OUTPUT_VIEW_ID))),
|
|
@@ -281,7 +280,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
281
280
|
constructor() {
|
|
282
281
|
super({
|
|
283
282
|
id: `workbench.action.openActiveLogOutputFileInNewWindow`,
|
|
284
|
-
title: (
|
|
283
|
+
title: ( localize2(2740, "Open Output in New Window")),
|
|
285
284
|
menu: [{
|
|
286
285
|
id: MenuId.ViewTitle,
|
|
287
286
|
when: ( (ContextKeyExpr.equals('view', OUTPUT_VIEW_ID))),
|
|
@@ -325,7 +324,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
325
324
|
const logLevelMenu = ( (new MenuId('workbench.output.menu.logLevel')));
|
|
326
325
|
this._register(MenuRegistry.appendMenuItem(MenuId.ViewTitle, {
|
|
327
326
|
submenu: logLevelMenu,
|
|
328
|
-
title: (
|
|
327
|
+
title: ( localize(2741, "Set Log Level...")),
|
|
329
328
|
group: 'navigation',
|
|
330
329
|
when: ( (ContextKeyExpr.and(
|
|
331
330
|
(ContextKeyExpr.equals('view', OUTPUT_VIEW_ID)),
|
|
@@ -370,7 +369,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
370
369
|
constructor() {
|
|
371
370
|
super({
|
|
372
371
|
id: `workbench.action.output.activeOutputLogLevelDefault`,
|
|
373
|
-
title: (
|
|
372
|
+
title: ( localize(2742, "Set As Default")),
|
|
374
373
|
menu: {
|
|
375
374
|
id: logLevelMenu,
|
|
376
375
|
order,
|
|
@@ -396,7 +395,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
396
395
|
constructor() {
|
|
397
396
|
super({
|
|
398
397
|
id: 'workbench.action.showLogs',
|
|
399
|
-
title: (
|
|
398
|
+
title: ( localize2(2743, "Show Logs...")),
|
|
400
399
|
category: Categories.Developer,
|
|
401
400
|
menu: {
|
|
402
401
|
id: MenuId.CommandPalette,
|
|
@@ -422,12 +421,12 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
422
421
|
entries.push({ id, label });
|
|
423
422
|
}
|
|
424
423
|
if (extensionLogs.length && logs.length) {
|
|
425
|
-
entries.push({ type: 'separator', label: (
|
|
424
|
+
entries.push({ type: 'separator', label: ( localize(2744, "Extension Logs")) });
|
|
426
425
|
}
|
|
427
426
|
for (const { id, label } of extensionLogs) {
|
|
428
427
|
entries.push({ id, label });
|
|
429
428
|
}
|
|
430
|
-
const entry = await quickInputService.pick(entries, { placeHolder: (
|
|
429
|
+
const entry = await quickInputService.pick(entries, { placeHolder: ( localize(2745, "Select Log")) });
|
|
431
430
|
if (entry) {
|
|
432
431
|
return outputService.showChannel(entry.id);
|
|
433
432
|
}
|
|
@@ -439,7 +438,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
439
438
|
constructor() {
|
|
440
439
|
super({
|
|
441
440
|
id: 'workbench.action.openLogFile',
|
|
442
|
-
title: (
|
|
441
|
+
title: ( localize2(2746, "Open Log File...")),
|
|
443
442
|
category: Categories.Developer,
|
|
444
443
|
menu: {
|
|
445
444
|
id: MenuId.CommandPalette,
|
|
@@ -449,9 +448,8 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
449
448
|
args: [{
|
|
450
449
|
name: 'logFile',
|
|
451
450
|
schema: {
|
|
452
|
-
markdownDescription: (
|
|
453
|
-
|
|
454
|
-
19,
|
|
451
|
+
markdownDescription: ( localize(
|
|
452
|
+
2747,
|
|
455
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"
|
|
456
454
|
)),
|
|
457
455
|
type: 'string'
|
|
@@ -489,7 +487,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
489
487
|
entries.push({ type: 'separator' });
|
|
490
488
|
entries.push(...coreChannels.sort((a, b) => a.label.localeCompare(b.label)));
|
|
491
489
|
}
|
|
492
|
-
entry = await quickInputService.pick(entries, { placeHolder: (
|
|
490
|
+
entry = await quickInputService.pick(entries, { placeHolder: ( localize(2748, "Select Log File")) });
|
|
493
491
|
}
|
|
494
492
|
if (entry) {
|
|
495
493
|
const resource = assertIsDefined(entry.channel.file);
|
|
@@ -514,14 +512,13 @@ OutputContribution = ( (__decorate([
|
|
|
514
512
|
( (Registry.as(Extensions$3.Configuration))).registerConfiguration({
|
|
515
513
|
id: 'output',
|
|
516
514
|
order: 30,
|
|
517
|
-
title: (
|
|
515
|
+
title: ( localize(2748, "Output")),
|
|
518
516
|
type: 'object',
|
|
519
517
|
properties: {
|
|
520
518
|
'output.smartScroll.enabled': {
|
|
521
519
|
type: 'boolean',
|
|
522
|
-
description: (
|
|
523
|
-
|
|
524
|
-
21,
|
|
520
|
+
description: ( localize(
|
|
521
|
+
2749,
|
|
525
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."
|
|
526
523
|
)),
|
|
527
524
|
default: true,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
|
|
2
2
|
import './output.css.js';
|
|
3
|
-
import {
|
|
3
|
+
import { localize } from 'vscode/vscode/vs/nls';
|
|
4
4
|
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry.service';
|
|
5
5
|
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
|
|
6
6
|
import { ITextResourceConfigurationService } from 'vscode/vscode/vs/editor/common/services/textResourceConfiguration';
|
|
@@ -27,7 +27,6 @@ import { ServiceCollection } from 'vscode/vscode/vs/platform/instantiation/commo
|
|
|
27
27
|
import { computeEditorAriaLabel } from 'vscode/vscode/vs/workbench/browser/editor';
|
|
28
28
|
import { IHoverService } from 'vscode/vscode/vs/platform/hover/browser/hover.service';
|
|
29
29
|
|
|
30
|
-
const _moduleId = "vs/workbench/contrib/output/browser/outputView";
|
|
31
30
|
let OutputViewPane = class OutputViewPane extends ViewPane {
|
|
32
31
|
get scrollLock() { return !!this.scrollLockContextKey.get(); }
|
|
33
32
|
set scrollLock(scrollLock) { this.scrollLockContextKey.set(scrollLock); }
|
|
@@ -35,8 +34,8 @@ let OutputViewPane = class OutputViewPane extends ViewPane {
|
|
|
35
34
|
super(options, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, telemetryService, hoverService);
|
|
36
35
|
this.editorPromise = null;
|
|
37
36
|
this.scrollLockContextKey = CONTEXT_OUTPUT_SCROLL_LOCK.bindTo(this.contextKeyService);
|
|
38
|
-
const editorInstantiationService = instantiationService.createChild(( (new ServiceCollection([IContextKeyService, this.scopedContextKeyService]))));
|
|
39
|
-
this.editor = editorInstantiationService.createInstance(OutputEditor);
|
|
37
|
+
const editorInstantiationService = this._register(instantiationService.createChild(( (new ServiceCollection([IContextKeyService, this.scopedContextKeyService])))));
|
|
38
|
+
this.editor = this._register(editorInstantiationService.createInstance(OutputEditor));
|
|
40
39
|
this._register(this.editor.onTitleAreaUpdate(() => {
|
|
41
40
|
this.updateTitle(this.editor.getTitle());
|
|
42
41
|
this.updateActions();
|
|
@@ -106,7 +105,7 @@ let OutputViewPane = class OutputViewPane extends ViewPane {
|
|
|
106
105
|
this.editorPromise = null;
|
|
107
106
|
}
|
|
108
107
|
createInput(channel) {
|
|
109
|
-
return this.instantiationService.createInstance(TextResourceEditorInput, channel.uri, (
|
|
108
|
+
return this.instantiationService.createInstance(TextResourceEditorInput, channel.uri, ( localize(6174, "{0} - Output", channel.label)), ( localize(6175, "Output channel for '{0}'", channel.label)), undefined, undefined);
|
|
110
109
|
}
|
|
111
110
|
};
|
|
112
111
|
OutputViewPane = ( (__decorate([
|
|
@@ -131,7 +130,7 @@ let OutputEditor = class OutputEditor extends AbstractTextResourceEditor {
|
|
|
131
130
|
return OUTPUT_VIEW_ID;
|
|
132
131
|
}
|
|
133
132
|
getTitle() {
|
|
134
|
-
return (
|
|
133
|
+
return ( localize(6176, "Output"));
|
|
135
134
|
}
|
|
136
135
|
getConfigurationOverrides(configuration) {
|
|
137
136
|
const options = super.getConfigurationOverrides(configuration);
|
|
@@ -165,7 +164,7 @@ let OutputEditor = class OutputEditor extends AbstractTextResourceEditor {
|
|
|
165
164
|
return options;
|
|
166
165
|
}
|
|
167
166
|
getAriaLabel() {
|
|
168
|
-
return this.input ? this.input.getAriaLabel() : (
|
|
167
|
+
return this.input ? this.input.getAriaLabel() : ( localize(6177, "Output panel"));
|
|
169
168
|
}
|
|
170
169
|
computeAriaLabel() {
|
|
171
170
|
return this.input ? computeEditorAriaLabel(this.input, undefined, undefined, this.editorGroupService.count) : this.getAriaLabel();
|