@theia/output 1.45.0 → 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.
Files changed (44) hide show
  1. package/README.md +33 -33
  2. package/lib/browser/output-channel.d.ts +125 -125
  3. package/lib/browser/output-channel.js +334 -334
  4. package/lib/browser/output-commands.d.ts +17 -17
  5. package/lib/browser/output-commands.js +84 -84
  6. package/lib/browser/output-context-menu.d.ts +11 -11
  7. package/lib/browser/output-context-menu.js +42 -42
  8. package/lib/browser/output-contribution.d.ts +29 -29
  9. package/lib/browser/output-contribution.js +284 -284
  10. package/lib/browser/output-editor-factory.d.ts +12 -12
  11. package/lib/browser/output-editor-factory.d.ts.map +1 -1
  12. package/lib/browser/output-editor-factory.js +79 -84
  13. package/lib/browser/output-editor-factory.js.map +1 -1
  14. package/lib/browser/output-editor-model-factory.d.ts +15 -15
  15. package/lib/browser/output-editor-model-factory.js +61 -61
  16. package/lib/browser/output-frontend-module.d.ts +3 -3
  17. package/lib/browser/output-frontend-module.js +50 -50
  18. package/lib/browser/output-preferences.d.ts +11 -11
  19. package/lib/browser/output-preferences.js +46 -46
  20. package/lib/browser/output-resource.d.ts +18 -18
  21. package/lib/browser/output-resource.js +54 -54
  22. package/lib/browser/output-toolbar-contribution.d.ts +21 -21
  23. package/lib/browser/output-toolbar-contribution.js +125 -125
  24. package/lib/browser/output-widget.d.ts +48 -48
  25. package/lib/browser/output-widget.js +248 -248
  26. package/lib/common/output-uri.d.ts +7 -7
  27. package/lib/common/output-uri.js +47 -47
  28. package/lib/common/output-uri.spec.d.ts +1 -1
  29. package/lib/common/output-uri.spec.js +50 -50
  30. package/package.json +7 -7
  31. package/src/browser/output-channel.ts +366 -366
  32. package/src/browser/output-commands.ts +100 -100
  33. package/src/browser/output-context-menu.ts +34 -34
  34. package/src/browser/output-contribution.ts +274 -274
  35. package/src/browser/output-editor-factory.ts +68 -74
  36. package/src/browser/output-editor-model-factory.ts +54 -54
  37. package/src/browser/output-frontend-module.ts +53 -53
  38. package/src/browser/output-preferences.ts +58 -58
  39. package/src/browser/output-resource.ts +65 -65
  40. package/src/browser/output-toolbar-contribution.tsx +116 -116
  41. package/src/browser/output-widget.ts +256 -256
  42. package/src/browser/style/output.css +31 -31
  43. package/src/common/output-uri.spec.ts +53 -53
  44. package/src/common/output-uri.ts +47 -47
@@ -1,18 +1,18 @@
1
- import { Command } from '@theia/core/lib/common';
2
- export declare namespace OutputCommands {
3
- const APPEND: Command;
4
- const APPEND_LINE: Command;
5
- const CLEAR: Command;
6
- const SHOW: Command;
7
- const HIDE: Command;
8
- const DISPOSE: Command;
9
- const CLEAR__WIDGET: Command;
10
- const LOCK__WIDGET: Command;
11
- const UNLOCK__WIDGET: Command;
12
- const CLEAR__QUICK_PICK: Command;
13
- const SHOW__QUICK_PICK: Command;
14
- const HIDE__QUICK_PICK: Command;
15
- const DISPOSE__QUICK_PICK: Command;
16
- const COPY_ALL: Command;
17
- }
1
+ import { Command } from '@theia/core/lib/common';
2
+ export declare namespace OutputCommands {
3
+ const APPEND: Command;
4
+ const APPEND_LINE: Command;
5
+ const CLEAR: Command;
6
+ const SHOW: Command;
7
+ const HIDE: Command;
8
+ const DISPOSE: Command;
9
+ const CLEAR__WIDGET: Command;
10
+ const LOCK__WIDGET: Command;
11
+ const UNLOCK__WIDGET: Command;
12
+ const CLEAR__QUICK_PICK: Command;
13
+ const SHOW__QUICK_PICK: Command;
14
+ const HIDE__QUICK_PICK: Command;
15
+ const DISPOSE__QUICK_PICK: Command;
16
+ const COPY_ALL: Command;
17
+ }
18
18
  //# sourceMappingURL=output-commands.d.ts.map
@@ -1,85 +1,85 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2020 TypeFox and others.
4
- //
5
- // This program and the accompanying materials are made available under the
6
- // terms of the Eclipse Public License v. 2.0 which is available at
7
- // http://www.eclipse.org/legal/epl-2.0.
8
- //
9
- // This Source Code may also be made available under the following Secondary
10
- // Licenses when the conditions for such availability set forth in the Eclipse
11
- // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
- // with the GNU Classpath Exception which is available at
13
- // https://www.gnu.org/software/classpath/license.html.
14
- //
15
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
- // *****************************************************************************
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.OutputCommands = void 0;
19
- const browser_1 = require("@theia/core/lib/browser");
20
- const common_1 = require("@theia/core/lib/common");
21
- var OutputCommands;
22
- (function (OutputCommands) {
23
- const OUTPUT_CATEGORY = 'Output';
24
- const OUTPUT_CATEGORY_KEY = common_1.nls.getDefaultKey(OUTPUT_CATEGORY);
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
- OutputCommands.APPEND = {
28
- id: 'output:append'
29
- };
30
- OutputCommands.APPEND_LINE = {
31
- id: 'output:appendLine'
32
- };
33
- OutputCommands.CLEAR = {
34
- id: 'output:clear'
35
- };
36
- OutputCommands.SHOW = {
37
- id: 'output:show'
38
- };
39
- OutputCommands.HIDE = {
40
- id: 'output:hide'
41
- };
42
- OutputCommands.DISPOSE = {
43
- id: 'output:dispose'
44
- };
45
- /* #endregion VS Code `OutputChannel` API */
46
- OutputCommands.CLEAR__WIDGET = common_1.Command.toLocalizedCommand({
47
- id: 'output:widget:clear',
48
- category: OUTPUT_CATEGORY,
49
- iconClass: (0, browser_1.codicon)('clear-all')
50
- }, '', OUTPUT_CATEGORY_KEY);
51
- OutputCommands.LOCK__WIDGET = common_1.Command.toLocalizedCommand({
52
- id: 'output:widget:lock',
53
- category: OUTPUT_CATEGORY,
54
- iconClass: (0, browser_1.codicon)('unlock')
55
- }, '', OUTPUT_CATEGORY_KEY);
56
- OutputCommands.UNLOCK__WIDGET = common_1.Command.toLocalizedCommand({
57
- id: 'output:widget:unlock',
58
- category: OUTPUT_CATEGORY,
59
- iconClass: (0, browser_1.codicon)('lock')
60
- }, '', OUTPUT_CATEGORY_KEY);
61
- OutputCommands.CLEAR__QUICK_PICK = common_1.Command.toLocalizedCommand({
62
- id: 'output:pick-clear',
63
- label: 'Clear Output Channel...',
64
- category: OUTPUT_CATEGORY
65
- }, 'theia/output/clearOutputChannel', OUTPUT_CATEGORY_KEY);
66
- OutputCommands.SHOW__QUICK_PICK = common_1.Command.toLocalizedCommand({
67
- id: 'output:pick-show',
68
- label: 'Show Output Channel...',
69
- category: OUTPUT_CATEGORY
70
- }, 'theia/output/showOutputChannel', OUTPUT_CATEGORY_KEY);
71
- OutputCommands.HIDE__QUICK_PICK = common_1.Command.toLocalizedCommand({
72
- id: 'output:pick-hide',
73
- label: 'Hide Output Channel...',
74
- category: OUTPUT_CATEGORY
75
- }, 'theia/output/hideOutputChannel', OUTPUT_CATEGORY_KEY);
76
- OutputCommands.DISPOSE__QUICK_PICK = common_1.Command.toLocalizedCommand({
77
- id: 'output:pick-dispose',
78
- label: 'Close Output Channel...',
79
- category: OUTPUT_CATEGORY
80
- }, 'theia/output/closeOutputChannel', OUTPUT_CATEGORY_KEY);
81
- OutputCommands.COPY_ALL = {
82
- id: 'output:copy-all',
83
- };
84
- })(OutputCommands = exports.OutputCommands || (exports.OutputCommands = {}));
1
+ "use strict";
2
+ // *****************************************************************************
3
+ // Copyright (C) 2020 TypeFox and others.
4
+ //
5
+ // This program and the accompanying materials are made available under the
6
+ // terms of the Eclipse Public License v. 2.0 which is available at
7
+ // http://www.eclipse.org/legal/epl-2.0.
8
+ //
9
+ // This Source Code may also be made available under the following Secondary
10
+ // Licenses when the conditions for such availability set forth in the Eclipse
11
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
+ // with the GNU Classpath Exception which is available at
13
+ // https://www.gnu.org/software/classpath/license.html.
14
+ //
15
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
+ // *****************************************************************************
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.OutputCommands = void 0;
19
+ const browser_1 = require("@theia/core/lib/browser");
20
+ const common_1 = require("@theia/core/lib/common");
21
+ var OutputCommands;
22
+ (function (OutputCommands) {
23
+ const OUTPUT_CATEGORY = 'Output';
24
+ const OUTPUT_CATEGORY_KEY = common_1.nls.getDefaultKey(OUTPUT_CATEGORY);
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
+ OutputCommands.APPEND = {
28
+ id: 'output:append'
29
+ };
30
+ OutputCommands.APPEND_LINE = {
31
+ id: 'output:appendLine'
32
+ };
33
+ OutputCommands.CLEAR = {
34
+ id: 'output:clear'
35
+ };
36
+ OutputCommands.SHOW = {
37
+ id: 'output:show'
38
+ };
39
+ OutputCommands.HIDE = {
40
+ id: 'output:hide'
41
+ };
42
+ OutputCommands.DISPOSE = {
43
+ id: 'output:dispose'
44
+ };
45
+ /* #endregion VS Code `OutputChannel` API */
46
+ OutputCommands.CLEAR__WIDGET = common_1.Command.toLocalizedCommand({
47
+ id: 'output:widget:clear',
48
+ category: OUTPUT_CATEGORY,
49
+ iconClass: (0, browser_1.codicon)('clear-all')
50
+ }, '', OUTPUT_CATEGORY_KEY);
51
+ OutputCommands.LOCK__WIDGET = common_1.Command.toLocalizedCommand({
52
+ id: 'output:widget:lock',
53
+ category: OUTPUT_CATEGORY,
54
+ iconClass: (0, browser_1.codicon)('unlock')
55
+ }, '', OUTPUT_CATEGORY_KEY);
56
+ OutputCommands.UNLOCK__WIDGET = common_1.Command.toLocalizedCommand({
57
+ id: 'output:widget:unlock',
58
+ category: OUTPUT_CATEGORY,
59
+ iconClass: (0, browser_1.codicon)('lock')
60
+ }, '', OUTPUT_CATEGORY_KEY);
61
+ OutputCommands.CLEAR__QUICK_PICK = common_1.Command.toLocalizedCommand({
62
+ id: 'output:pick-clear',
63
+ label: 'Clear Output Channel...',
64
+ category: OUTPUT_CATEGORY
65
+ }, 'theia/output/clearOutputChannel', OUTPUT_CATEGORY_KEY);
66
+ OutputCommands.SHOW__QUICK_PICK = common_1.Command.toLocalizedCommand({
67
+ id: 'output:pick-show',
68
+ label: 'Show Output Channel...',
69
+ category: OUTPUT_CATEGORY
70
+ }, 'theia/output/showOutputChannel', OUTPUT_CATEGORY_KEY);
71
+ OutputCommands.HIDE__QUICK_PICK = common_1.Command.toLocalizedCommand({
72
+ id: 'output:pick-hide',
73
+ label: 'Hide Output Channel...',
74
+ category: OUTPUT_CATEGORY
75
+ }, 'theia/output/hideOutputChannel', OUTPUT_CATEGORY_KEY);
76
+ OutputCommands.DISPOSE__QUICK_PICK = common_1.Command.toLocalizedCommand({
77
+ id: 'output:pick-dispose',
78
+ label: 'Close Output Channel...',
79
+ category: OUTPUT_CATEGORY
80
+ }, 'theia/output/closeOutputChannel', OUTPUT_CATEGORY_KEY);
81
+ OutputCommands.COPY_ALL = {
82
+ id: 'output:copy-all',
83
+ };
84
+ })(OutputCommands = exports.OutputCommands || (exports.OutputCommands = {}));
85
85
  //# sourceMappingURL=output-commands.js.map
@@ -1,12 +1,12 @@
1
- import { MenuPath } from '@theia/core/lib/common';
2
- import { MonacoContextMenuService } from '@theia/monaco/lib/browser/monaco-context-menu';
3
- export declare namespace OutputContextMenu {
4
- const MENU_PATH: MenuPath;
5
- const TEXT_EDIT_GROUP: string[];
6
- const COMMAND_GROUP: string[];
7
- const WIDGET_GROUP: string[];
8
- }
9
- export declare class OutputContextMenuService extends MonacoContextMenuService {
10
- protected menuPath(): MenuPath;
11
- }
1
+ import { MenuPath } from '@theia/core/lib/common';
2
+ import { MonacoContextMenuService } from '@theia/monaco/lib/browser/monaco-context-menu';
3
+ export declare namespace OutputContextMenu {
4
+ const MENU_PATH: MenuPath;
5
+ const TEXT_EDIT_GROUP: string[];
6
+ const COMMAND_GROUP: string[];
7
+ const WIDGET_GROUP: string[];
8
+ }
9
+ export declare class OutputContextMenuService extends MonacoContextMenuService {
10
+ protected menuPath(): MenuPath;
11
+ }
12
12
  //# sourceMappingURL=output-context-menu.d.ts.map
@@ -1,43 +1,43 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.OutputContextMenuService = exports.OutputContextMenu = void 0;
10
- // *****************************************************************************
11
- // Copyright (C) 2020 TypeFox and others.
12
- //
13
- // This program and the accompanying materials are made available under the
14
- // terms of the Eclipse Public License v. 2.0 which is available at
15
- // http://www.eclipse.org/legal/epl-2.0.
16
- //
17
- // This Source Code may also be made available under the following Secondary
18
- // Licenses when the conditions for such availability set forth in the Eclipse
19
- // Public License v. 2.0 are satisfied: GNU General Public License, version 2
20
- // with the GNU Classpath Exception which is available at
21
- // https://www.gnu.org/software/classpath/license.html.
22
- //
23
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
24
- // *****************************************************************************
25
- const inversify_1 = require("@theia/core/shared/inversify");
26
- const monaco_context_menu_1 = require("@theia/monaco/lib/browser/monaco-context-menu");
27
- var OutputContextMenu;
28
- (function (OutputContextMenu) {
29
- OutputContextMenu.MENU_PATH = ['output_context_menu'];
30
- OutputContextMenu.TEXT_EDIT_GROUP = [...OutputContextMenu.MENU_PATH, '0_text_edit_group'];
31
- OutputContextMenu.COMMAND_GROUP = [...OutputContextMenu.MENU_PATH, '1_command_group'];
32
- OutputContextMenu.WIDGET_GROUP = [...OutputContextMenu.MENU_PATH, '2_widget_group'];
33
- })(OutputContextMenu = exports.OutputContextMenu || (exports.OutputContextMenu = {}));
34
- let OutputContextMenuService = class OutputContextMenuService extends monaco_context_menu_1.MonacoContextMenuService {
35
- menuPath() {
36
- return OutputContextMenu.MENU_PATH;
37
- }
38
- };
39
- OutputContextMenuService = __decorate([
40
- (0, inversify_1.injectable)()
41
- ], OutputContextMenuService);
42
- exports.OutputContextMenuService = OutputContextMenuService;
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.OutputContextMenuService = exports.OutputContextMenu = void 0;
10
+ // *****************************************************************************
11
+ // Copyright (C) 2020 TypeFox and others.
12
+ //
13
+ // This program and the accompanying materials are made available under the
14
+ // terms of the Eclipse Public License v. 2.0 which is available at
15
+ // http://www.eclipse.org/legal/epl-2.0.
16
+ //
17
+ // This Source Code may also be made available under the following Secondary
18
+ // Licenses when the conditions for such availability set forth in the Eclipse
19
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
20
+ // with the GNU Classpath Exception which is available at
21
+ // https://www.gnu.org/software/classpath/license.html.
22
+ //
23
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
24
+ // *****************************************************************************
25
+ const inversify_1 = require("@theia/core/shared/inversify");
26
+ const monaco_context_menu_1 = require("@theia/monaco/lib/browser/monaco-context-menu");
27
+ var OutputContextMenu;
28
+ (function (OutputContextMenu) {
29
+ OutputContextMenu.MENU_PATH = ['output_context_menu'];
30
+ OutputContextMenu.TEXT_EDIT_GROUP = [...OutputContextMenu.MENU_PATH, '0_text_edit_group'];
31
+ OutputContextMenu.COMMAND_GROUP = [...OutputContextMenu.MENU_PATH, '1_command_group'];
32
+ OutputContextMenu.WIDGET_GROUP = [...OutputContextMenu.MENU_PATH, '2_widget_group'];
33
+ })(OutputContextMenu = exports.OutputContextMenu || (exports.OutputContextMenu = {}));
34
+ let OutputContextMenuService = class OutputContextMenuService extends monaco_context_menu_1.MonacoContextMenuService {
35
+ menuPath() {
36
+ return OutputContextMenu.MENU_PATH;
37
+ }
38
+ };
39
+ OutputContextMenuService = __decorate([
40
+ (0, inversify_1.injectable)()
41
+ ], OutputContextMenuService);
42
+ exports.OutputContextMenuService = OutputContextMenuService;
43
43
  //# sourceMappingURL=output-context-menu.js.map
@@ -1,30 +1,30 @@
1
- import URI from '@theia/core/lib/common/uri';
2
- import { Widget } from '@theia/core/lib/browser/widgets/widget';
3
- import { MaybePromise } from '@theia/core/lib/common/types';
4
- import { OpenHandler, OpenerOptions, OpenerService } from '@theia/core/lib/browser';
5
- import { CommandRegistry, MenuModelRegistry, CommandService } from '@theia/core/lib/common';
6
- import { AbstractViewContribution } from '@theia/core/lib/browser/shell/view-contribution';
7
- import { OutputWidget } from './output-widget';
8
- import { ClipboardService } from '@theia/core/lib/browser/clipboard-service';
9
- import { OutputChannelManager, OutputChannel } from './output-channel';
10
- import { QuickPickService } from '@theia/core/lib/common/quick-pick-service';
11
- export declare class OutputContribution extends AbstractViewContribution<OutputWidget> implements OpenHandler {
12
- protected readonly clipboardService: ClipboardService;
13
- protected readonly commandService: CommandService;
14
- protected readonly outputChannelManager: OutputChannelManager;
15
- protected readonly openerService: OpenerService;
16
- protected readonly quickPickService: QuickPickService;
17
- readonly id: string;
18
- constructor();
19
- protected init(): void;
20
- registerCommands(registry: CommandRegistry): void;
21
- registerMenus(registry: MenuModelRegistry): void;
22
- canHandle(uri: URI): MaybePromise<number>;
23
- open(uri: URI, options?: OpenerOptions): Promise<OutputWidget>;
24
- protected withWidget(widget?: Widget | undefined, predicate?: (output: OutputWidget) => boolean): boolean | false;
25
- protected pick({ channels, placeholder }: {
26
- channels: OutputChannel[];
27
- placeholder: string;
28
- }): Promise<OutputChannel | undefined>;
29
- }
1
+ import URI from '@theia/core/lib/common/uri';
2
+ import { Widget } from '@theia/core/lib/browser/widgets/widget';
3
+ import { MaybePromise } from '@theia/core/lib/common/types';
4
+ import { OpenHandler, OpenerOptions, OpenerService } from '@theia/core/lib/browser';
5
+ import { CommandRegistry, MenuModelRegistry, CommandService } from '@theia/core/lib/common';
6
+ import { AbstractViewContribution } from '@theia/core/lib/browser/shell/view-contribution';
7
+ import { OutputWidget } from './output-widget';
8
+ import { ClipboardService } from '@theia/core/lib/browser/clipboard-service';
9
+ import { OutputChannelManager, OutputChannel } from './output-channel';
10
+ import { QuickPickService } from '@theia/core/lib/common/quick-pick-service';
11
+ export declare class OutputContribution extends AbstractViewContribution<OutputWidget> implements OpenHandler {
12
+ protected readonly clipboardService: ClipboardService;
13
+ protected readonly commandService: CommandService;
14
+ protected readonly outputChannelManager: OutputChannelManager;
15
+ protected readonly openerService: OpenerService;
16
+ protected readonly quickPickService: QuickPickService;
17
+ readonly id: string;
18
+ constructor();
19
+ protected init(): void;
20
+ registerCommands(registry: CommandRegistry): void;
21
+ registerMenus(registry: MenuModelRegistry): void;
22
+ canHandle(uri: URI): MaybePromise<number>;
23
+ open(uri: URI, options?: OpenerOptions): Promise<OutputWidget>;
24
+ protected withWidget(widget?: Widget | undefined, predicate?: (output: OutputWidget) => boolean): boolean | false;
25
+ protected pick({ channels, placeholder }: {
26
+ channels: OutputChannel[];
27
+ placeholder: string;
28
+ }): Promise<OutputChannel | undefined>;
29
+ }
30
30
  //# sourceMappingURL=output-contribution.d.ts.map