@codingame/monaco-vscode-output-service-override 9.0.3 → 10.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 +83 -36
- package/vscode/src/vs/workbench/contrib/output/browser/outputServices.js +3 -4
- package/vscode/src/vs/workbench/contrib/output/browser/outputView.js +4 -5
- package/vscode/src/vs/workbench/contrib/output/common/outputChannelModelService.js +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-output-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.0",
|
|
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@
|
|
33
|
-
"@codingame/monaco-vscode-log-service-override": "
|
|
32
|
+
"vscode": "npm:@codingame/monaco-vscode-api@10.0.0",
|
|
33
|
+
"@codingame/monaco-vscode-log-service-override": "10.0.0"
|
|
34
34
|
}
|
|
35
35
|
}
|
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
|
|
2
2
|
import { localize, localize2 } from 'vscode/vscode/vs/nls';
|
|
3
|
-
import {
|
|
3
|
+
import { 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';
|
|
6
6
|
import { registerAction2, Action2, MenuId, MenuRegistry } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
7
|
-
import 'vscode/vscode/vs/platform/instantiation/common/
|
|
7
|
+
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
8
8
|
import './outputServices.js';
|
|
9
9
|
import { OUTPUT_MODE_ID, OUTPUT_MIME, LOG_MODE_ID, LOG_MIME, OUTPUT_VIEW_ID, ACTIVE_OUTPUT_CHANNEL_CONTEXT, Extensions as Extensions$1, CONTEXT_IN_OUTPUT, CONTEXT_OUTPUT_SCROLL_LOCK, CONTEXT_ACTIVE_FILE_OUTPUT, CONTEXT_ACTIVE_OUTPUT_LEVEL_SETTABLE, CONTEXT_ACTIVE_OUTPUT_LEVEL, CONTEXT_ACTIVE_OUTPUT_LEVEL_IS_DEFAULT } from 'vscode/vscode/vs/workbench/services/output/common/output';
|
|
10
10
|
import { IOutputService } from 'vscode/vscode/vs/workbench/services/output/common/output.service';
|
|
11
11
|
import { OutputViewPane } from './outputView.js';
|
|
12
|
-
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
13
12
|
import { Extensions as Extensions$2 } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
14
|
-
import {
|
|
15
|
-
import { Extensions, ViewContainerLocation } from 'vscode/vscode/vs/workbench/common/views';
|
|
13
|
+
import { Extensions } from 'vscode/vscode/vs/workbench/common/views';
|
|
16
14
|
import { IViewsService } from 'vscode/vscode/vs/workbench/services/views/common/viewsService.service';
|
|
17
15
|
import { ViewPaneContainer } from 'vscode/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
|
|
18
|
-
import { Extensions as Extensions$3
|
|
16
|
+
import { Extensions as Extensions$3 } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
19
17
|
import { IQuickInputService } from 'vscode/vscode/vs/platform/quickinput/common/quickInput.service';
|
|
20
18
|
import { AUX_WINDOW_GROUP } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
|
|
21
19
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
@@ -31,6 +29,11 @@ import { IAccessibilitySignalService } from 'vscode/vscode/vs/platform/accessibi
|
|
|
31
29
|
import { LogLevelToLocalizedString, LogLevelToString, LogLevel } from 'vscode/vscode/vs/platform/log/common/log';
|
|
32
30
|
import { ILoggerService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
33
31
|
import { IDefaultLogLevelsService } from 'vscode/vscode/vs/workbench/contrib/logs/common/defaultLogLevels.service';
|
|
32
|
+
import { KeybindingsRegistry } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
33
|
+
import { EditorContextKeys } from 'vscode/vscode/vs/editor/common/editorContextKeys';
|
|
34
|
+
import { CONTEXT_ACCESSIBILITY_MODE_ENABLED } from 'vscode/vscode/vs/platform/accessibility/common/accessibility';
|
|
35
|
+
import { IsWindowsContext } from 'vscode/vscode/vs/platform/contextkey/common/contextkeys';
|
|
36
|
+
import { FocusedViewContext } from 'vscode/vscode/vs/workbench/common/contextkeys';
|
|
34
37
|
|
|
35
38
|
ModesRegistry.registerLanguage({
|
|
36
39
|
id: OUTPUT_MODE_ID,
|
|
@@ -42,10 +45,10 @@ ModesRegistry.registerLanguage({
|
|
|
42
45
|
extensions: [],
|
|
43
46
|
mimetypes: [LOG_MIME]
|
|
44
47
|
});
|
|
45
|
-
const outputViewIcon = registerIcon('output-view-icon', Codicon.output, ( localize(
|
|
48
|
+
const outputViewIcon = registerIcon('output-view-icon', Codicon.output, ( localize(2757, 'View icon of the output view.')));
|
|
46
49
|
const VIEW_CONTAINER = ( (Registry.as(Extensions.ViewContainersRegistry))).registerViewContainer({
|
|
47
50
|
id: OUTPUT_VIEW_ID,
|
|
48
|
-
title: ( localize2(
|
|
51
|
+
title: ( localize2(2758, "Output")),
|
|
49
52
|
icon: outputViewIcon,
|
|
50
53
|
order: 1,
|
|
51
54
|
ctorDescriptor: ( (new SyncDescriptor(
|
|
@@ -54,21 +57,21 @@ const VIEW_CONTAINER = ( (Registry.as(Extensions.ViewContainersRegistry))).regis
|
|
|
54
57
|
))),
|
|
55
58
|
storageId: OUTPUT_VIEW_ID,
|
|
56
59
|
hideIfEmpty: true,
|
|
57
|
-
},
|
|
60
|
+
}, 1 , { doNotRegisterOpenCommand: true });
|
|
58
61
|
( (Registry.as(Extensions.ViewsRegistry))).registerViews([{
|
|
59
62
|
id: OUTPUT_VIEW_ID,
|
|
60
|
-
name: ( localize2(
|
|
63
|
+
name: ( localize2(2758, "Output")),
|
|
61
64
|
containerIcon: outputViewIcon,
|
|
62
65
|
canMoveView: true,
|
|
63
66
|
canToggleVisibility: false,
|
|
64
67
|
ctorDescriptor: ( (new SyncDescriptor(OutputViewPane))),
|
|
65
68
|
openCommandActionDescriptor: {
|
|
66
69
|
id: 'workbench.action.output.toggleOutput',
|
|
67
|
-
mnemonicTitle: ( localize(
|
|
70
|
+
mnemonicTitle: ( localize(2759, "&&Output")),
|
|
68
71
|
keybindings: {
|
|
69
|
-
primary:
|
|
72
|
+
primary: 2048 | 1024 | 51 ,
|
|
70
73
|
linux: {
|
|
71
|
-
primary: KeyChord(
|
|
74
|
+
primary: KeyChord(2048 | 41 , 2048 | 38 )
|
|
72
75
|
}
|
|
73
76
|
},
|
|
74
77
|
order: 1,
|
|
@@ -98,7 +101,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
98
101
|
constructor() {
|
|
99
102
|
super({
|
|
100
103
|
id: `workbench.output.action.switchBetweenOutputs`,
|
|
101
|
-
title: ( localize(
|
|
104
|
+
title: ( localize(2760, "Switch Output")),
|
|
102
105
|
});
|
|
103
106
|
}
|
|
104
107
|
async run(accessor, channelId) {
|
|
@@ -110,7 +113,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
110
113
|
const switchOutputMenu = ( (new MenuId('workbench.output.menu.switchOutput')));
|
|
111
114
|
this._register(MenuRegistry.appendMenuItem(MenuId.ViewTitle, {
|
|
112
115
|
submenu: switchOutputMenu,
|
|
113
|
-
title: ( localize(
|
|
116
|
+
title: ( localize(2761, "Switch Output")),
|
|
114
117
|
group: 'navigation',
|
|
115
118
|
when: ( (ContextKeyExpr.equals('view', OUTPUT_VIEW_ID))),
|
|
116
119
|
order: 1,
|
|
@@ -158,8 +161,8 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
158
161
|
constructor() {
|
|
159
162
|
super({
|
|
160
163
|
id: 'workbench.action.showOutputChannels',
|
|
161
|
-
title: ( localize2(
|
|
162
|
-
category: ( localize2(
|
|
164
|
+
title: ( localize2(2762, "Show Output Channels...")),
|
|
165
|
+
category: ( localize2(2758, "Output")),
|
|
163
166
|
f1: true
|
|
164
167
|
});
|
|
165
168
|
}
|
|
@@ -185,7 +188,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
185
188
|
for (const { id, label } of coreChannels) {
|
|
186
189
|
entries.push({ id, label });
|
|
187
190
|
}
|
|
188
|
-
const entry = await quickInputService.pick(entries, { placeHolder: ( localize(
|
|
191
|
+
const entry = await quickInputService.pick(entries, { placeHolder: ( localize(2763, "Select Output Channel")) });
|
|
189
192
|
if (entry) {
|
|
190
193
|
return outputService.showChannel(entry.id);
|
|
191
194
|
}
|
|
@@ -197,7 +200,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
197
200
|
constructor() {
|
|
198
201
|
super({
|
|
199
202
|
id: `workbench.output.action.clearOutput`,
|
|
200
|
-
title: ( localize2(
|
|
203
|
+
title: ( localize2(2764, "Clear Output")),
|
|
201
204
|
category: Categories.View,
|
|
202
205
|
menu: [{
|
|
203
206
|
id: MenuId.ViewTitle,
|
|
@@ -229,8 +232,8 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
229
232
|
constructor() {
|
|
230
233
|
super({
|
|
231
234
|
id: `workbench.output.action.toggleAutoScroll`,
|
|
232
|
-
title: ( localize2(
|
|
233
|
-
tooltip: ( localize(
|
|
235
|
+
title: ( localize2(2765, "Toggle Auto Scrolling")),
|
|
236
|
+
tooltip: ( localize(2766, "Turn Auto Scrolling Off")),
|
|
234
237
|
menu: {
|
|
235
238
|
id: MenuId.ViewTitle,
|
|
236
239
|
when: ( (ContextKeyExpr.and( (ContextKeyExpr.equals('view', OUTPUT_VIEW_ID))))),
|
|
@@ -241,7 +244,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
241
244
|
toggled: {
|
|
242
245
|
condition: CONTEXT_OUTPUT_SCROLL_LOCK,
|
|
243
246
|
icon: Codicon.unlock,
|
|
244
|
-
tooltip: ( localize(
|
|
247
|
+
tooltip: ( localize(2767, "Turn Auto Scrolling On"))
|
|
245
248
|
}
|
|
246
249
|
});
|
|
247
250
|
}
|
|
@@ -257,7 +260,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
257
260
|
constructor() {
|
|
258
261
|
super({
|
|
259
262
|
id: `workbench.action.openActiveLogOutputFile`,
|
|
260
|
-
title: ( localize2(
|
|
263
|
+
title: ( localize2(2768, "Open Output in Editor")),
|
|
261
264
|
menu: [{
|
|
262
265
|
id: MenuId.ViewTitle,
|
|
263
266
|
when: ( (ContextKeyExpr.equals('view', OUTPUT_VIEW_ID))),
|
|
@@ -280,7 +283,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
280
283
|
constructor() {
|
|
281
284
|
super({
|
|
282
285
|
id: `workbench.action.openActiveLogOutputFileInNewWindow`,
|
|
283
|
-
title: ( localize2(
|
|
286
|
+
title: ( localize2(2769, "Open Output in New Window")),
|
|
284
287
|
menu: [{
|
|
285
288
|
id: MenuId.ViewTitle,
|
|
286
289
|
when: ( (ContextKeyExpr.equals('view', OUTPUT_VIEW_ID))),
|
|
@@ -324,7 +327,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
324
327
|
const logLevelMenu = ( (new MenuId('workbench.output.menu.logLevel')));
|
|
325
328
|
this._register(MenuRegistry.appendMenuItem(MenuId.ViewTitle, {
|
|
326
329
|
submenu: logLevelMenu,
|
|
327
|
-
title: ( localize(
|
|
330
|
+
title: ( localize(2770, "Set Log Level...")),
|
|
328
331
|
group: 'navigation',
|
|
329
332
|
when: ( (ContextKeyExpr.and(
|
|
330
333
|
(ContextKeyExpr.equals('view', OUTPUT_VIEW_ID)),
|
|
@@ -369,7 +372,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
369
372
|
constructor() {
|
|
370
373
|
super({
|
|
371
374
|
id: `workbench.action.output.activeOutputLogLevelDefault`,
|
|
372
|
-
title: ( localize(
|
|
375
|
+
title: ( localize(2771, "Set As Default")),
|
|
373
376
|
menu: {
|
|
374
377
|
id: logLevelMenu,
|
|
375
378
|
order,
|
|
@@ -395,7 +398,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
395
398
|
constructor() {
|
|
396
399
|
super({
|
|
397
400
|
id: 'workbench.action.showLogs',
|
|
398
|
-
title: ( localize2(
|
|
401
|
+
title: ( localize2(2772, "Show Logs...")),
|
|
399
402
|
category: Categories.Developer,
|
|
400
403
|
menu: {
|
|
401
404
|
id: MenuId.CommandPalette,
|
|
@@ -421,12 +424,12 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
421
424
|
entries.push({ id, label });
|
|
422
425
|
}
|
|
423
426
|
if (extensionLogs.length && logs.length) {
|
|
424
|
-
entries.push({ type: 'separator', label: ( localize(
|
|
427
|
+
entries.push({ type: 'separator', label: ( localize(2773, "Extension Logs")) });
|
|
425
428
|
}
|
|
426
429
|
for (const { id, label } of extensionLogs) {
|
|
427
430
|
entries.push({ id, label });
|
|
428
431
|
}
|
|
429
|
-
const entry = await quickInputService.pick(entries, { placeHolder: ( localize(
|
|
432
|
+
const entry = await quickInputService.pick(entries, { placeHolder: ( localize(2774, "Select Log")) });
|
|
430
433
|
if (entry) {
|
|
431
434
|
return outputService.showChannel(entry.id);
|
|
432
435
|
}
|
|
@@ -438,7 +441,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
438
441
|
constructor() {
|
|
439
442
|
super({
|
|
440
443
|
id: 'workbench.action.openLogFile',
|
|
441
|
-
title: ( localize2(
|
|
444
|
+
title: ( localize2(2775, "Open Log File...")),
|
|
442
445
|
category: Categories.Developer,
|
|
443
446
|
menu: {
|
|
444
447
|
id: MenuId.CommandPalette,
|
|
@@ -449,7 +452,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
449
452
|
name: 'logFile',
|
|
450
453
|
schema: {
|
|
451
454
|
markdownDescription: ( localize(
|
|
452
|
-
|
|
455
|
+
2776,
|
|
453
456
|
"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
457
|
)),
|
|
455
458
|
type: 'string'
|
|
@@ -487,7 +490,7 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
487
490
|
entries.push({ type: 'separator' });
|
|
488
491
|
entries.push(...coreChannels.sort((a, b) => a.label.localeCompare(b.label)));
|
|
489
492
|
}
|
|
490
|
-
entry = await quickInputService.pick(entries, { placeHolder: ( localize(
|
|
493
|
+
entry = await quickInputService.pick(entries, { placeHolder: ( localize(2777, "Select Log File")) });
|
|
491
494
|
}
|
|
492
495
|
if (entry) {
|
|
493
496
|
const resource = assertIsDefined(entry.channel.file);
|
|
@@ -508,22 +511,66 @@ OutputContribution = ( (__decorate([
|
|
|
508
511
|
( (__param(1, IEditorService))),
|
|
509
512
|
( (__param(2, IFilesConfigurationService)))
|
|
510
513
|
], OutputContribution)));
|
|
511
|
-
( (Registry.as(Extensions$2.Workbench))).registerWorkbenchContribution(OutputContribution,
|
|
514
|
+
( (Registry.as(Extensions$2.Workbench))).registerWorkbenchContribution(OutputContribution, 3 );
|
|
512
515
|
( (Registry.as(Extensions$3.Configuration))).registerConfiguration({
|
|
513
516
|
id: 'output',
|
|
514
517
|
order: 30,
|
|
515
|
-
title: ( localize(
|
|
518
|
+
title: ( localize(2758, "Output")),
|
|
516
519
|
type: 'object',
|
|
517
520
|
properties: {
|
|
518
521
|
'output.smartScroll.enabled': {
|
|
519
522
|
type: 'boolean',
|
|
520
523
|
description: ( localize(
|
|
521
|
-
|
|
524
|
+
2778,
|
|
522
525
|
"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
526
|
)),
|
|
524
527
|
default: true,
|
|
525
|
-
scope:
|
|
528
|
+
scope: 3 ,
|
|
526
529
|
tags: ['output']
|
|
527
530
|
}
|
|
528
531
|
}
|
|
529
532
|
});
|
|
533
|
+
KeybindingsRegistry.registerKeybindingRule({
|
|
534
|
+
id: 'cursorWordAccessibilityLeft',
|
|
535
|
+
when: ( (ContextKeyExpr.and(
|
|
536
|
+
EditorContextKeys.textInputFocus,
|
|
537
|
+
CONTEXT_ACCESSIBILITY_MODE_ENABLED,
|
|
538
|
+
IsWindowsContext,
|
|
539
|
+
(ContextKeyExpr.equals(FocusedViewContext.key, OUTPUT_VIEW_ID))
|
|
540
|
+
))),
|
|
541
|
+
primary: 2048 | 15 ,
|
|
542
|
+
weight: 200
|
|
543
|
+
});
|
|
544
|
+
KeybindingsRegistry.registerKeybindingRule({
|
|
545
|
+
id: 'cursorWordAccessibilityLeftSelect',
|
|
546
|
+
when: ( (ContextKeyExpr.and(
|
|
547
|
+
EditorContextKeys.textInputFocus,
|
|
548
|
+
CONTEXT_ACCESSIBILITY_MODE_ENABLED,
|
|
549
|
+
IsWindowsContext,
|
|
550
|
+
(ContextKeyExpr.equals(FocusedViewContext.key, OUTPUT_VIEW_ID))
|
|
551
|
+
))),
|
|
552
|
+
primary: 2048 | 1024 | 15 ,
|
|
553
|
+
weight: 200
|
|
554
|
+
});
|
|
555
|
+
KeybindingsRegistry.registerKeybindingRule({
|
|
556
|
+
id: 'cursorWordAccessibilityRight',
|
|
557
|
+
when: ( (ContextKeyExpr.and(
|
|
558
|
+
EditorContextKeys.textInputFocus,
|
|
559
|
+
CONTEXT_ACCESSIBILITY_MODE_ENABLED,
|
|
560
|
+
IsWindowsContext,
|
|
561
|
+
(ContextKeyExpr.equals(FocusedViewContext.key, OUTPUT_VIEW_ID))
|
|
562
|
+
))),
|
|
563
|
+
primary: 2048 | 17 ,
|
|
564
|
+
weight: 200
|
|
565
|
+
});
|
|
566
|
+
KeybindingsRegistry.registerKeybindingRule({
|
|
567
|
+
id: 'cursorWordAccessibilityRightSelect',
|
|
568
|
+
when: ( (ContextKeyExpr.and(
|
|
569
|
+
EditorContextKeys.textInputFocus,
|
|
570
|
+
CONTEXT_ACCESSIBILITY_MODE_ENABLED,
|
|
571
|
+
IsWindowsContext,
|
|
572
|
+
(ContextKeyExpr.equals(FocusedViewContext.key, OUTPUT_VIEW_ID))
|
|
573
|
+
))),
|
|
574
|
+
primary: 2048 | 1024 | 17 ,
|
|
575
|
+
weight: 200
|
|
576
|
+
});
|
|
@@ -4,7 +4,6 @@ import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
|
4
4
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
5
5
|
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
6
6
|
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
7
|
-
import { StorageScope, StorageTarget } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
8
7
|
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
|
|
9
8
|
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
10
9
|
import { LOG_MIME, OUTPUT_MIME, ACTIVE_OUTPUT_CHANNEL_CONTEXT, CONTEXT_ACTIVE_FILE_OUTPUT, CONTEXT_ACTIVE_OUTPUT_LEVEL_SETTABLE, CONTEXT_ACTIVE_OUTPUT_LEVEL, CONTEXT_ACTIVE_OUTPUT_LEVEL_IS_DEFAULT, Extensions, OUTPUT_VIEW_ID } from 'vscode/vscode/vs/workbench/services/output/common/output';
|
|
@@ -61,7 +60,7 @@ let OutputService = class OutputService extends Disposable {
|
|
|
61
60
|
this.channels = ( new Map());
|
|
62
61
|
this._onActiveOutputChannel = this._register(( new Emitter()));
|
|
63
62
|
this.onActiveOutputChannel = this._onActiveOutputChannel.event;
|
|
64
|
-
this.activeChannelIdInStorage = this.storageService.get(OUTPUT_ACTIVE_CHANNEL_KEY,
|
|
63
|
+
this.activeChannelIdInStorage = this.storageService.get(OUTPUT_ACTIVE_CHANNEL_KEY, 1 , '');
|
|
65
64
|
this.activeOutputChannelContext = ACTIVE_OUTPUT_CHANNEL_CONTEXT.bindTo(contextKeyService);
|
|
66
65
|
this.activeOutputChannelContext.set(this.activeChannelIdInStorage);
|
|
67
66
|
this._register(this.onActiveOutputChannel(channel => this.activeOutputChannelContext.set(channel)));
|
|
@@ -183,10 +182,10 @@ let OutputService = class OutputService extends Disposable {
|
|
|
183
182
|
this.setLevelIsDefaultContext();
|
|
184
183
|
this.setLevelContext();
|
|
185
184
|
if (this.activeChannel) {
|
|
186
|
-
this.storageService.store(OUTPUT_ACTIVE_CHANNEL_KEY, this.activeChannel.id,
|
|
185
|
+
this.storageService.store(OUTPUT_ACTIVE_CHANNEL_KEY, this.activeChannel.id, 1 , 1 );
|
|
187
186
|
}
|
|
188
187
|
else {
|
|
189
|
-
this.storageService.remove(OUTPUT_ACTIVE_CHANNEL_KEY,
|
|
188
|
+
this.storageService.remove(OUTPUT_ACTIVE_CHANNEL_KEY, 1 );
|
|
190
189
|
}
|
|
191
190
|
}
|
|
192
191
|
};
|
|
@@ -12,7 +12,6 @@ import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeServi
|
|
|
12
12
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
13
13
|
import { IEditorGroupsService } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
14
14
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
15
|
-
import { CursorChangeReason } from 'vscode/vscode/vs/editor/common/cursorEvents';
|
|
16
15
|
import { ViewPane } from 'vscode/vscode/vs/workbench/browser/parts/views/viewPane';
|
|
17
16
|
import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
18
17
|
import { IContextMenuService } from 'vscode/vscode/vs/platform/contextview/browser/contextView.service';
|
|
@@ -66,7 +65,7 @@ let OutputViewPane = class OutputViewPane extends ViewPane {
|
|
|
66
65
|
}
|
|
67
66
|
}));
|
|
68
67
|
this._register(codeEditor.onDidChangeCursorPosition((e) => {
|
|
69
|
-
if (e.reason !==
|
|
68
|
+
if (e.reason !== 3 ) {
|
|
70
69
|
return;
|
|
71
70
|
}
|
|
72
71
|
if (!this.configurationService.getValue('output.smartScroll.enabled')) {
|
|
@@ -105,7 +104,7 @@ let OutputViewPane = class OutputViewPane extends ViewPane {
|
|
|
105
104
|
this.editorPromise = null;
|
|
106
105
|
}
|
|
107
106
|
createInput(channel) {
|
|
108
|
-
return this.instantiationService.createInstance(TextResourceEditorInput, channel.uri, ( localize(
|
|
107
|
+
return this.instantiationService.createInstance(TextResourceEditorInput, channel.uri, ( localize(6205, "{0} - Output", channel.label)), ( localize(6206, "Output channel for '{0}'", channel.label)), undefined, undefined);
|
|
109
108
|
}
|
|
110
109
|
};
|
|
111
110
|
OutputViewPane = ( (__decorate([
|
|
@@ -130,7 +129,7 @@ let OutputEditor = class OutputEditor extends AbstractTextResourceEditor {
|
|
|
130
129
|
return OUTPUT_VIEW_ID;
|
|
131
130
|
}
|
|
132
131
|
getTitle() {
|
|
133
|
-
return ( localize(
|
|
132
|
+
return ( localize(6207, "Output"));
|
|
134
133
|
}
|
|
135
134
|
getConfigurationOverrides(configuration) {
|
|
136
135
|
const options = super.getConfigurationOverrides(configuration);
|
|
@@ -164,7 +163,7 @@ let OutputEditor = class OutputEditor extends AbstractTextResourceEditor {
|
|
|
164
163
|
return options;
|
|
165
164
|
}
|
|
166
165
|
getAriaLabel() {
|
|
167
|
-
return this.input ? this.input.getAriaLabel() : ( localize(
|
|
166
|
+
return this.input ? this.input.getAriaLabel() : ( localize(6208, "Output panel"));
|
|
168
167
|
}
|
|
169
168
|
computeAriaLabel() {
|
|
170
169
|
return this.input ? computeEditorAriaLabel(this.input, undefined, undefined, this.editorGroupService.count) : this.getAriaLabel();
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
|
|
2
|
-
import 'vscode/vscode/vs/platform/instantiation/common/extensions';
|
|
3
2
|
import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService.service';
|
|
4
3
|
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
5
4
|
import { IFileService } from 'vscode/vscode/vs/platform/files/common/files.service';
|