@codingame/monaco-vscode-output-service-override 2.2.1 → 3.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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-output-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"module": "index.js",
|
|
19
19
|
"types": "index.d.ts",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"vscode": "npm:@codingame/monaco-vscode-api@
|
|
21
|
+
"vscode": "npm:@codingame/monaco-vscode-api@3.0.0",
|
|
22
22
|
"vscode-marked": "npm:marked@=3.0.2",
|
|
23
|
-
"@codingame/monaco-vscode-log-service-override": "
|
|
23
|
+
"@codingame/monaco-vscode-log-service-override": "3.0.0"
|
|
24
24
|
},
|
|
25
25
|
"exports": {
|
|
26
26
|
".": {
|
|
@@ -21,7 +21,7 @@ import { registerIcon } from 'vscode/vscode/vs/platform/theme/common/iconRegistr
|
|
|
21
21
|
import { Categories } from 'vscode/vscode/vs/platform/action/common/actionCommonCategories';
|
|
22
22
|
import { Disposable, toDisposable, dispose } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
23
23
|
import { IFilesConfigurationService } from 'vscode/vscode/vs/workbench/services/filesConfiguration/common/filesConfigurationService';
|
|
24
|
-
import {
|
|
24
|
+
import { IAccessibilitySignalService, AccessibilitySignal } from 'vscode/vscode/vs/platform/accessibilitySignal/browser/accessibilitySignalService';
|
|
25
25
|
|
|
26
26
|
ModesRegistry.registerLanguage({
|
|
27
27
|
id: OUTPUT_MODE_ID,
|
|
@@ -245,11 +245,11 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
245
245
|
}
|
|
246
246
|
async run(accessor) {
|
|
247
247
|
const outputService = accessor.get(IOutputService);
|
|
248
|
-
const
|
|
248
|
+
const accessibilitySignalService = accessor.get(IAccessibilitySignalService);
|
|
249
249
|
const activeChannel = outputService.getActiveChannel();
|
|
250
250
|
if (activeChannel) {
|
|
251
251
|
activeChannel.clear();
|
|
252
|
-
|
|
252
|
+
accessibilitySignalService.playSignal(AccessibilitySignal.clear);
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
255
|
}));
|
|
@@ -459,14 +459,30 @@ let OutputContribution = class OutputContribution extends Disposable {
|
|
|
459
459
|
const quickInputService = accessor.get(IQuickInputService);
|
|
460
460
|
const editorService = accessor.get(IEditorService);
|
|
461
461
|
const fileConfigurationService = accessor.get(IFilesConfigurationService);
|
|
462
|
-
const entries = ( outputService.getChannelDescriptors().filter(c => c.file && c.log)
|
|
463
|
-
.map(channel => ({ id: channel.id, label: channel.label, channel })));
|
|
464
|
-
const argName = args && typeof args === 'string' ? args : undefined;
|
|
465
462
|
let entry;
|
|
466
|
-
|
|
467
|
-
|
|
463
|
+
const argName = args && typeof args === 'string' ? args : undefined;
|
|
464
|
+
const extensionChannels = [];
|
|
465
|
+
const coreChannels = [];
|
|
466
|
+
for (const c of outputService.getChannelDescriptors()) {
|
|
467
|
+
if (c.file && c.log) {
|
|
468
|
+
const e = { id: c.id, label: c.label, channel: c };
|
|
469
|
+
if (c.extensionId) {
|
|
470
|
+
extensionChannels.push(e);
|
|
471
|
+
}
|
|
472
|
+
else {
|
|
473
|
+
coreChannels.push(e);
|
|
474
|
+
}
|
|
475
|
+
if (e.id === argName) {
|
|
476
|
+
entry = e;
|
|
477
|
+
}
|
|
478
|
+
}
|
|
468
479
|
}
|
|
469
480
|
if (!entry) {
|
|
481
|
+
const entries = [...extensionChannels.sort((a, b) => a.label.localeCompare(b.label))];
|
|
482
|
+
if (entries.length && coreChannels.length) {
|
|
483
|
+
entries.push({ type: 'separator' });
|
|
484
|
+
entries.push(...coreChannels.sort((a, b) => a.label.localeCompare(b.label)));
|
|
485
|
+
}
|
|
470
486
|
entry = await quickInputService.pick(entries, { placeHolder: ( localizeWithPath(
|
|
471
487
|
'vs/workbench/contrib/output/browser/output.contribution',
|
|
472
488
|
'selectlogFile',
|