@theia/output 1.45.1 → 1.46.0-next.72
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/README.md +33 -33
- package/lib/browser/output-channel.d.ts +125 -125
- package/lib/browser/output-channel.js +334 -334
- package/lib/browser/output-commands.d.ts +17 -17
- package/lib/browser/output-commands.js +84 -84
- package/lib/browser/output-context-menu.d.ts +11 -11
- package/lib/browser/output-context-menu.js +42 -42
- package/lib/browser/output-contribution.d.ts +29 -29
- package/lib/browser/output-contribution.js +284 -284
- package/lib/browser/output-editor-factory.d.ts +12 -12
- package/lib/browser/output-editor-factory.d.ts.map +1 -1
- package/lib/browser/output-editor-factory.js +79 -84
- package/lib/browser/output-editor-factory.js.map +1 -1
- package/lib/browser/output-editor-model-factory.d.ts +15 -15
- package/lib/browser/output-editor-model-factory.js +61 -61
- package/lib/browser/output-frontend-module.d.ts +3 -3
- package/lib/browser/output-frontend-module.js +50 -50
- package/lib/browser/output-preferences.d.ts +11 -11
- package/lib/browser/output-preferences.js +46 -46
- package/lib/browser/output-resource.d.ts +18 -18
- package/lib/browser/output-resource.js +54 -54
- package/lib/browser/output-toolbar-contribution.d.ts +21 -21
- package/lib/browser/output-toolbar-contribution.js +125 -125
- package/lib/browser/output-widget.d.ts +48 -48
- package/lib/browser/output-widget.js +248 -248
- package/lib/common/output-uri.d.ts +7 -7
- package/lib/common/output-uri.js +47 -47
- package/lib/common/output-uri.spec.d.ts +1 -1
- package/lib/common/output-uri.spec.js +50 -50
- package/package.json +7 -7
- package/src/browser/output-channel.ts +366 -366
- package/src/browser/output-commands.ts +100 -100
- package/src/browser/output-context-menu.ts +34 -34
- package/src/browser/output-contribution.ts +274 -274
- package/src/browser/output-editor-factory.ts +68 -74
- package/src/browser/output-editor-model-factory.ts +54 -54
- package/src/browser/output-frontend-module.ts +53 -53
- package/src/browser/output-preferences.ts +58 -58
- package/src/browser/output-resource.ts +65 -65
- package/src/browser/output-toolbar-contribution.tsx +116 -116
- package/src/browser/output-widget.ts +256 -256
- package/src/browser/style/output.css +31 -31
- package/src/common/output-uri.spec.ts +53 -53
- package/src/common/output-uri.ts +47 -47
|
@@ -1,100 +1,100 @@
|
|
|
1
|
-
// *****************************************************************************
|
|
2
|
-
// Copyright (C) 2020 TypeFox and others.
|
|
3
|
-
//
|
|
4
|
-
// This program and the accompanying materials are made available under the
|
|
5
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
-
//
|
|
8
|
-
// This Source Code may also be made available under the following Secondary
|
|
9
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
-
// with the GNU Classpath Exception which is available at
|
|
12
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
-
//
|
|
14
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
|
-
// *****************************************************************************
|
|
16
|
-
|
|
17
|
-
import { codicon } from '@theia/core/lib/browser';
|
|
18
|
-
import { Command, nls } from '@theia/core/lib/common';
|
|
19
|
-
|
|
20
|
-
export namespace OutputCommands {
|
|
21
|
-
|
|
22
|
-
const OUTPUT_CATEGORY = 'Output';
|
|
23
|
-
const OUTPUT_CATEGORY_KEY = nls.getDefaultKey(OUTPUT_CATEGORY);
|
|
24
|
-
|
|
25
|
-
/* #region VS Code `OutputChannel` API */
|
|
26
|
-
// Based on: https://github.com/theia-ide/vscode/blob/standalone/0.19.x/src/vs/vscode.d.ts#L4692-L4745
|
|
27
|
-
|
|
28
|
-
export const APPEND: Command = {
|
|
29
|
-
id: 'output:append'
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
export const APPEND_LINE: Command = {
|
|
33
|
-
id: 'output:appendLine'
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
export const CLEAR: Command = {
|
|
37
|
-
id: 'output:clear'
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
export const SHOW: Command = {
|
|
41
|
-
id: 'output:show'
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
export const HIDE: Command = {
|
|
45
|
-
id: 'output:hide'
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
export const DISPOSE: Command = {
|
|
49
|
-
id: 'output:dispose'
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
/* #endregion VS Code `OutputChannel` API */
|
|
53
|
-
|
|
54
|
-
export const CLEAR__WIDGET = Command.toLocalizedCommand({
|
|
55
|
-
id: 'output:widget:clear',
|
|
56
|
-
category: OUTPUT_CATEGORY,
|
|
57
|
-
iconClass: codicon('clear-all')
|
|
58
|
-
}, '', OUTPUT_CATEGORY_KEY);
|
|
59
|
-
|
|
60
|
-
export const LOCK__WIDGET = Command.toLocalizedCommand({
|
|
61
|
-
id: 'output:widget:lock',
|
|
62
|
-
category: OUTPUT_CATEGORY,
|
|
63
|
-
iconClass: codicon('unlock')
|
|
64
|
-
}, '', OUTPUT_CATEGORY_KEY);
|
|
65
|
-
|
|
66
|
-
export const UNLOCK__WIDGET = Command.toLocalizedCommand({
|
|
67
|
-
id: 'output:widget:unlock',
|
|
68
|
-
category: OUTPUT_CATEGORY,
|
|
69
|
-
iconClass: codicon('lock')
|
|
70
|
-
}, '', OUTPUT_CATEGORY_KEY);
|
|
71
|
-
|
|
72
|
-
export const CLEAR__QUICK_PICK = Command.toLocalizedCommand({
|
|
73
|
-
id: 'output:pick-clear',
|
|
74
|
-
label: 'Clear Output Channel...',
|
|
75
|
-
category: OUTPUT_CATEGORY
|
|
76
|
-
}, 'theia/output/clearOutputChannel', OUTPUT_CATEGORY_KEY);
|
|
77
|
-
|
|
78
|
-
export const SHOW__QUICK_PICK = Command.toLocalizedCommand({
|
|
79
|
-
id: 'output:pick-show',
|
|
80
|
-
label: 'Show Output Channel...',
|
|
81
|
-
category: OUTPUT_CATEGORY
|
|
82
|
-
}, 'theia/output/showOutputChannel', OUTPUT_CATEGORY_KEY);
|
|
83
|
-
|
|
84
|
-
export const HIDE__QUICK_PICK = Command.toLocalizedCommand({
|
|
85
|
-
id: 'output:pick-hide',
|
|
86
|
-
label: 'Hide Output Channel...',
|
|
87
|
-
category: OUTPUT_CATEGORY
|
|
88
|
-
}, 'theia/output/hideOutputChannel', OUTPUT_CATEGORY_KEY);
|
|
89
|
-
|
|
90
|
-
export const DISPOSE__QUICK_PICK = Command.toLocalizedCommand({
|
|
91
|
-
id: 'output:pick-dispose',
|
|
92
|
-
label: 'Close Output Channel...',
|
|
93
|
-
category: OUTPUT_CATEGORY
|
|
94
|
-
}, 'theia/output/closeOutputChannel', OUTPUT_CATEGORY_KEY);
|
|
95
|
-
|
|
96
|
-
export const COPY_ALL: Command = {
|
|
97
|
-
id: 'output:copy-all',
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
}
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2020 TypeFox and others.
|
|
3
|
+
//
|
|
4
|
+
// This program and the accompanying materials are made available under the
|
|
5
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
//
|
|
8
|
+
// This Source Code may also be made available under the following Secondary
|
|
9
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
// with the GNU Classpath Exception which is available at
|
|
12
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
//
|
|
14
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
|
+
|
|
17
|
+
import { codicon } from '@theia/core/lib/browser';
|
|
18
|
+
import { Command, nls } from '@theia/core/lib/common';
|
|
19
|
+
|
|
20
|
+
export namespace OutputCommands {
|
|
21
|
+
|
|
22
|
+
const OUTPUT_CATEGORY = 'Output';
|
|
23
|
+
const OUTPUT_CATEGORY_KEY = nls.getDefaultKey(OUTPUT_CATEGORY);
|
|
24
|
+
|
|
25
|
+
/* #region VS Code `OutputChannel` API */
|
|
26
|
+
// Based on: https://github.com/theia-ide/vscode/blob/standalone/0.19.x/src/vs/vscode.d.ts#L4692-L4745
|
|
27
|
+
|
|
28
|
+
export const APPEND: Command = {
|
|
29
|
+
id: 'output:append'
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export const APPEND_LINE: Command = {
|
|
33
|
+
id: 'output:appendLine'
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export const CLEAR: Command = {
|
|
37
|
+
id: 'output:clear'
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export const SHOW: Command = {
|
|
41
|
+
id: 'output:show'
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export const HIDE: Command = {
|
|
45
|
+
id: 'output:hide'
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export const DISPOSE: Command = {
|
|
49
|
+
id: 'output:dispose'
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
/* #endregion VS Code `OutputChannel` API */
|
|
53
|
+
|
|
54
|
+
export const CLEAR__WIDGET = Command.toLocalizedCommand({
|
|
55
|
+
id: 'output:widget:clear',
|
|
56
|
+
category: OUTPUT_CATEGORY,
|
|
57
|
+
iconClass: codicon('clear-all')
|
|
58
|
+
}, '', OUTPUT_CATEGORY_KEY);
|
|
59
|
+
|
|
60
|
+
export const LOCK__WIDGET = Command.toLocalizedCommand({
|
|
61
|
+
id: 'output:widget:lock',
|
|
62
|
+
category: OUTPUT_CATEGORY,
|
|
63
|
+
iconClass: codicon('unlock')
|
|
64
|
+
}, '', OUTPUT_CATEGORY_KEY);
|
|
65
|
+
|
|
66
|
+
export const UNLOCK__WIDGET = Command.toLocalizedCommand({
|
|
67
|
+
id: 'output:widget:unlock',
|
|
68
|
+
category: OUTPUT_CATEGORY,
|
|
69
|
+
iconClass: codicon('lock')
|
|
70
|
+
}, '', OUTPUT_CATEGORY_KEY);
|
|
71
|
+
|
|
72
|
+
export const CLEAR__QUICK_PICK = Command.toLocalizedCommand({
|
|
73
|
+
id: 'output:pick-clear',
|
|
74
|
+
label: 'Clear Output Channel...',
|
|
75
|
+
category: OUTPUT_CATEGORY
|
|
76
|
+
}, 'theia/output/clearOutputChannel', OUTPUT_CATEGORY_KEY);
|
|
77
|
+
|
|
78
|
+
export const SHOW__QUICK_PICK = Command.toLocalizedCommand({
|
|
79
|
+
id: 'output:pick-show',
|
|
80
|
+
label: 'Show Output Channel...',
|
|
81
|
+
category: OUTPUT_CATEGORY
|
|
82
|
+
}, 'theia/output/showOutputChannel', OUTPUT_CATEGORY_KEY);
|
|
83
|
+
|
|
84
|
+
export const HIDE__QUICK_PICK = Command.toLocalizedCommand({
|
|
85
|
+
id: 'output:pick-hide',
|
|
86
|
+
label: 'Hide Output Channel...',
|
|
87
|
+
category: OUTPUT_CATEGORY
|
|
88
|
+
}, 'theia/output/hideOutputChannel', OUTPUT_CATEGORY_KEY);
|
|
89
|
+
|
|
90
|
+
export const DISPOSE__QUICK_PICK = Command.toLocalizedCommand({
|
|
91
|
+
id: 'output:pick-dispose',
|
|
92
|
+
label: 'Close Output Channel...',
|
|
93
|
+
category: OUTPUT_CATEGORY
|
|
94
|
+
}, 'theia/output/closeOutputChannel', OUTPUT_CATEGORY_KEY);
|
|
95
|
+
|
|
96
|
+
export const COPY_ALL: Command = {
|
|
97
|
+
id: 'output:copy-all',
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
}
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
// *****************************************************************************
|
|
2
|
-
// Copyright (C) 2020 TypeFox and others.
|
|
3
|
-
//
|
|
4
|
-
// This program and the accompanying materials are made available under the
|
|
5
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
-
//
|
|
8
|
-
// This Source Code may also be made available under the following Secondary
|
|
9
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
-
// with the GNU Classpath Exception which is available at
|
|
12
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
-
//
|
|
14
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
|
-
// *****************************************************************************
|
|
16
|
-
import { injectable } from '@theia/core/shared/inversify';
|
|
17
|
-
import { MenuPath } from '@theia/core/lib/common';
|
|
18
|
-
import { MonacoContextMenuService } from '@theia/monaco/lib/browser/monaco-context-menu';
|
|
19
|
-
|
|
20
|
-
export namespace OutputContextMenu {
|
|
21
|
-
export const MENU_PATH: MenuPath = ['output_context_menu'];
|
|
22
|
-
export const TEXT_EDIT_GROUP = [...MENU_PATH, '0_text_edit_group'];
|
|
23
|
-
export const COMMAND_GROUP = [...MENU_PATH, '1_command_group'];
|
|
24
|
-
export const WIDGET_GROUP = [...MENU_PATH, '2_widget_group'];
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
@injectable()
|
|
28
|
-
export class OutputContextMenuService extends MonacoContextMenuService {
|
|
29
|
-
|
|
30
|
-
protected override menuPath(): MenuPath {
|
|
31
|
-
return OutputContextMenu.MENU_PATH;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
}
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2020 TypeFox and others.
|
|
3
|
+
//
|
|
4
|
+
// This program and the accompanying materials are made available under the
|
|
5
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
//
|
|
8
|
+
// This Source Code may also be made available under the following Secondary
|
|
9
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
// with the GNU Classpath Exception which is available at
|
|
12
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
//
|
|
14
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
|
+
import { injectable } from '@theia/core/shared/inversify';
|
|
17
|
+
import { MenuPath } from '@theia/core/lib/common';
|
|
18
|
+
import { MonacoContextMenuService } from '@theia/monaco/lib/browser/monaco-context-menu';
|
|
19
|
+
|
|
20
|
+
export namespace OutputContextMenu {
|
|
21
|
+
export const MENU_PATH: MenuPath = ['output_context_menu'];
|
|
22
|
+
export const TEXT_EDIT_GROUP = [...MENU_PATH, '0_text_edit_group'];
|
|
23
|
+
export const COMMAND_GROUP = [...MENU_PATH, '1_command_group'];
|
|
24
|
+
export const WIDGET_GROUP = [...MENU_PATH, '2_widget_group'];
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@injectable()
|
|
28
|
+
export class OutputContextMenuService extends MonacoContextMenuService {
|
|
29
|
+
|
|
30
|
+
protected override menuPath(): MenuPath {
|
|
31
|
+
return OutputContextMenu.MENU_PATH;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
}
|