@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
package/README.md CHANGED
@@ -1,33 +1,33 @@
1
- <div align='center'>
2
-
3
- <br />
4
-
5
- <img src='https://raw.githubusercontent.com/eclipse-theia/theia/master/logo/theia.svg?sanitize=true' alt='theia-ext-logo' width='100px' />
6
-
7
- <h2>ECLIPSE THEIA - OUTPUT EXTENSION</h2>
8
-
9
- <hr />
10
-
11
- </div>
12
-
13
- ## Description
14
-
15
- The `@theia/output` extension contributes an `output` widget to the application that displays output to end-users.
16
- The displayed output usually comes from external commands executed by the backend, e.g. `git` or language-servers.
17
- Generally, output requires a bit more of the user's attention compared to log messages as they tend to be more verbose,
18
- and help identify internal operations which a user can act upon if problems occur.
19
-
20
- ## Additional Information
21
-
22
- - [API documentation for `@theia/output`](https://eclipse-theia.github.io/theia/docs/next/modules/output.html)
23
- - [Theia - GitHub](https://github.com/eclipse-theia/theia)
24
- - [Theia - Website](https://theia-ide.org/)
25
-
26
- ## License
27
-
28
- - [Eclipse Public License 2.0](http://www.eclipse.org/legal/epl-2.0/)
29
- - [一 (Secondary) GNU General Public License, version 2 with the GNU Classpath Exception](https://projects.eclipse.org/license/secondary-gpl-2.0-cp)
30
-
31
- ## Trademark
32
- "Theia" is a trademark of the Eclipse Foundation
33
- https://www.eclipse.org/theia
1
+ <div align='center'>
2
+
3
+ <br />
4
+
5
+ <img src='https://raw.githubusercontent.com/eclipse-theia/theia/master/logo/theia.svg?sanitize=true' alt='theia-ext-logo' width='100px' />
6
+
7
+ <h2>ECLIPSE THEIA - OUTPUT EXTENSION</h2>
8
+
9
+ <hr />
10
+
11
+ </div>
12
+
13
+ ## Description
14
+
15
+ The `@theia/output` extension contributes an `output` widget to the application that displays output to end-users.
16
+ The displayed output usually comes from external commands executed by the backend, e.g. `git` or language-servers.
17
+ Generally, output requires a bit more of the user's attention compared to log messages as they tend to be more verbose,
18
+ and help identify internal operations which a user can act upon if problems occur.
19
+
20
+ ## Additional Information
21
+
22
+ - [API documentation for `@theia/output`](https://eclipse-theia.github.io/theia/docs/next/modules/output.html)
23
+ - [Theia - GitHub](https://github.com/eclipse-theia/theia)
24
+ - [Theia - Website](https://theia-ide.org/)
25
+
26
+ ## License
27
+
28
+ - [Eclipse Public License 2.0](http://www.eclipse.org/legal/epl-2.0/)
29
+ - [一 (Secondary) GNU General Public License, version 2 with the GNU Classpath Exception](https://projects.eclipse.org/license/secondary-gpl-2.0-cp)
30
+
31
+ ## Trademark
32
+ "Theia" is a trademark of the Eclipse Foundation
33
+ https://www.eclipse.org/theia
@@ -1,126 +1,126 @@
1
- import * as PQueue from 'p-queue';
2
- import URI from '@theia/core/lib/common/uri';
3
- import { Deferred } from '@theia/core/lib/common/promise-util';
4
- import { Resource, ResourceResolver } from '@theia/core/lib/common/resource';
5
- import { Emitter, Event, Disposable, DisposableCollection } from '@theia/core';
6
- import { MonacoEditorModel } from '@theia/monaco/lib/browser/monaco-editor-model';
7
- import { MonacoTextModelService } from '@theia/monaco/lib/browser/monaco-text-model-service';
8
- import { OutputResource } from '../browser/output-resource';
9
- import { OutputPreferences } from './output-preferences';
10
- import { IReference } from '@theia/monaco-editor-core/esm/vs/base/common/lifecycle';
11
- import * as monaco from '@theia/monaco-editor-core';
12
- export declare class OutputChannelManager implements Disposable, ResourceResolver {
13
- protected readonly textModelService: MonacoTextModelService;
14
- protected readonly preferences: OutputPreferences;
15
- protected readonly channels: Map<string, OutputChannel>;
16
- protected readonly resources: Map<string, OutputResource>;
17
- protected _selectedChannel: OutputChannel | undefined;
18
- protected readonly channelAddedEmitter: Emitter<{
19
- name: string;
20
- }>;
21
- protected readonly channelDeletedEmitter: Emitter<{
22
- name: string;
23
- }>;
24
- protected readonly channelWasShownEmitter: Emitter<{
25
- name: string;
26
- preserveFocus?: boolean | undefined;
27
- }>;
28
- protected readonly channelWasHiddenEmitter: Emitter<{
29
- name: string;
30
- }>;
31
- protected readonly selectedChannelChangedEmitter: Emitter<{
32
- name: string;
33
- } | undefined>;
34
- readonly onChannelAdded: Event<{
35
- name: string;
36
- }>;
37
- readonly onChannelDeleted: Event<{
38
- name: string;
39
- }>;
40
- readonly onChannelWasShown: Event<{
41
- name: string;
42
- preserveFocus?: boolean | undefined;
43
- }>;
44
- readonly onChannelWasHidden: Event<{
45
- name: string;
46
- }>;
47
- readonly onSelectedChannelChanged: Event<{
48
- name: string;
49
- } | undefined>;
50
- protected readonly toDispose: DisposableCollection;
51
- protected readonly toDisposeOnChannelDeletion: Map<string, Disposable>;
52
- getChannel(name: string): OutputChannel;
53
- protected registerListeners(channel: OutputChannel): Disposable;
54
- deleteChannel(name: string): void;
55
- getChannels(): OutputChannel[];
56
- getVisibleChannels(): OutputChannel[];
57
- protected get channelComparator(): (left: OutputChannel, right: OutputChannel) => number;
58
- dispose(): void;
59
- get selectedChannel(): OutputChannel | undefined;
60
- set selectedChannel(channel: OutputChannel | undefined);
61
- /**
62
- * Non-API: do not call directly.
63
- */
64
- resolve(uri: URI): Promise<Resource>;
65
- protected createResource({ uri, editorModelRef }: {
66
- uri: URI;
67
- editorModelRef: Deferred<IReference<MonacoEditorModel>>;
68
- }): OutputResource;
69
- protected createChannel(resource: OutputResource): OutputChannel;
70
- }
71
- export declare enum OutputChannelSeverity {
72
- Error = 1,
73
- Warning = 2,
74
- Info = 3
75
- }
76
- export declare class OutputChannel implements Disposable {
77
- protected readonly resource: OutputResource;
78
- protected readonly preferences: OutputPreferences;
79
- protected readonly contentChangeEmitter: Emitter<void>;
80
- protected readonly visibilityChangeEmitter: Emitter<{
81
- isVisible: boolean;
82
- preserveFocus?: boolean | undefined;
83
- }>;
84
- protected readonly disposedEmitter: Emitter<void>;
85
- protected readonly textModifyQueue: PQueue<PQueue.DefaultAddOptions>;
86
- protected readonly toDispose: DisposableCollection;
87
- protected disposed: boolean;
88
- protected visible: boolean;
89
- protected _maxLineNumber: number;
90
- protected decorationIds: Set<string>;
91
- readonly onVisibilityChange: Event<{
92
- isVisible: boolean;
93
- preserveFocus?: boolean;
94
- }>;
95
- readonly onContentChange: Event<void>;
96
- readonly onDisposed: Event<void>;
97
- constructor(resource: OutputResource, preferences: OutputPreferences);
98
- get name(): string;
99
- get uri(): URI;
100
- hide(): void;
101
- /**
102
- * If `preserveFocus` is `true`, the channel will not take focus. It is `false` by default.
103
- * - Calling `show` without args or with `preserveFocus: false` will reveal **and** activate the `Output` widget.
104
- * - Calling `show` with `preserveFocus: true` will reveal the `Output` widget but **won't** activate it.
105
- */
106
- show({ preserveFocus }?: {
107
- preserveFocus: boolean;
108
- }): void;
109
- /**
110
- * Note: if `false` it does not meant it is disposed or not available, it is only hidden from the UI.
111
- */
112
- get isVisible(): boolean;
113
- clear(): void;
114
- dispose(): void;
115
- append(content: string, severity?: OutputChannelSeverity): void;
116
- appendLine(content: string, severity?: OutputChannelSeverity): void;
117
- protected doAppend({ content, severity, appendEol }: {
118
- content: string;
119
- severity: OutputChannelSeverity;
120
- appendEol?: boolean;
121
- }): Promise<void>;
122
- protected ensureMaxChannelHistory(textModel: monaco.editor.ITextModel): void;
123
- protected get maxLineNumber(): number;
124
- protected set maxLineNumber(maxLineNumber: number);
125
- }
1
+ import * as PQueue from 'p-queue';
2
+ import URI from '@theia/core/lib/common/uri';
3
+ import { Deferred } from '@theia/core/lib/common/promise-util';
4
+ import { Resource, ResourceResolver } from '@theia/core/lib/common/resource';
5
+ import { Emitter, Event, Disposable, DisposableCollection } from '@theia/core';
6
+ import { MonacoEditorModel } from '@theia/monaco/lib/browser/monaco-editor-model';
7
+ import { MonacoTextModelService } from '@theia/monaco/lib/browser/monaco-text-model-service';
8
+ import { OutputResource } from '../browser/output-resource';
9
+ import { OutputPreferences } from './output-preferences';
10
+ import { IReference } from '@theia/monaco-editor-core/esm/vs/base/common/lifecycle';
11
+ import * as monaco from '@theia/monaco-editor-core';
12
+ export declare class OutputChannelManager implements Disposable, ResourceResolver {
13
+ protected readonly textModelService: MonacoTextModelService;
14
+ protected readonly preferences: OutputPreferences;
15
+ protected readonly channels: Map<string, OutputChannel>;
16
+ protected readonly resources: Map<string, OutputResource>;
17
+ protected _selectedChannel: OutputChannel | undefined;
18
+ protected readonly channelAddedEmitter: Emitter<{
19
+ name: string;
20
+ }>;
21
+ protected readonly channelDeletedEmitter: Emitter<{
22
+ name: string;
23
+ }>;
24
+ protected readonly channelWasShownEmitter: Emitter<{
25
+ name: string;
26
+ preserveFocus?: boolean | undefined;
27
+ }>;
28
+ protected readonly channelWasHiddenEmitter: Emitter<{
29
+ name: string;
30
+ }>;
31
+ protected readonly selectedChannelChangedEmitter: Emitter<{
32
+ name: string;
33
+ } | undefined>;
34
+ readonly onChannelAdded: Event<{
35
+ name: string;
36
+ }>;
37
+ readonly onChannelDeleted: Event<{
38
+ name: string;
39
+ }>;
40
+ readonly onChannelWasShown: Event<{
41
+ name: string;
42
+ preserveFocus?: boolean | undefined;
43
+ }>;
44
+ readonly onChannelWasHidden: Event<{
45
+ name: string;
46
+ }>;
47
+ readonly onSelectedChannelChanged: Event<{
48
+ name: string;
49
+ } | undefined>;
50
+ protected readonly toDispose: DisposableCollection;
51
+ protected readonly toDisposeOnChannelDeletion: Map<string, Disposable>;
52
+ getChannel(name: string): OutputChannel;
53
+ protected registerListeners(channel: OutputChannel): Disposable;
54
+ deleteChannel(name: string): void;
55
+ getChannels(): OutputChannel[];
56
+ getVisibleChannels(): OutputChannel[];
57
+ protected get channelComparator(): (left: OutputChannel, right: OutputChannel) => number;
58
+ dispose(): void;
59
+ get selectedChannel(): OutputChannel | undefined;
60
+ set selectedChannel(channel: OutputChannel | undefined);
61
+ /**
62
+ * Non-API: do not call directly.
63
+ */
64
+ resolve(uri: URI): Promise<Resource>;
65
+ protected createResource({ uri, editorModelRef }: {
66
+ uri: URI;
67
+ editorModelRef: Deferred<IReference<MonacoEditorModel>>;
68
+ }): OutputResource;
69
+ protected createChannel(resource: OutputResource): OutputChannel;
70
+ }
71
+ export declare enum OutputChannelSeverity {
72
+ Error = 1,
73
+ Warning = 2,
74
+ Info = 3
75
+ }
76
+ export declare class OutputChannel implements Disposable {
77
+ protected readonly resource: OutputResource;
78
+ protected readonly preferences: OutputPreferences;
79
+ protected readonly contentChangeEmitter: Emitter<void>;
80
+ protected readonly visibilityChangeEmitter: Emitter<{
81
+ isVisible: boolean;
82
+ preserveFocus?: boolean | undefined;
83
+ }>;
84
+ protected readonly disposedEmitter: Emitter<void>;
85
+ protected readonly textModifyQueue: PQueue<PQueue.DefaultAddOptions>;
86
+ protected readonly toDispose: DisposableCollection;
87
+ protected disposed: boolean;
88
+ protected visible: boolean;
89
+ protected _maxLineNumber: number;
90
+ protected decorationIds: Set<string>;
91
+ readonly onVisibilityChange: Event<{
92
+ isVisible: boolean;
93
+ preserveFocus?: boolean;
94
+ }>;
95
+ readonly onContentChange: Event<void>;
96
+ readonly onDisposed: Event<void>;
97
+ constructor(resource: OutputResource, preferences: OutputPreferences);
98
+ get name(): string;
99
+ get uri(): URI;
100
+ hide(): void;
101
+ /**
102
+ * If `preserveFocus` is `true`, the channel will not take focus. It is `false` by default.
103
+ * - Calling `show` without args or with `preserveFocus: false` will reveal **and** activate the `Output` widget.
104
+ * - Calling `show` with `preserveFocus: true` will reveal the `Output` widget but **won't** activate it.
105
+ */
106
+ show({ preserveFocus }?: {
107
+ preserveFocus: boolean;
108
+ }): void;
109
+ /**
110
+ * Note: if `false` it does not meant it is disposed or not available, it is only hidden from the UI.
111
+ */
112
+ get isVisible(): boolean;
113
+ clear(): void;
114
+ dispose(): void;
115
+ append(content: string, severity?: OutputChannelSeverity): void;
116
+ appendLine(content: string, severity?: OutputChannelSeverity): void;
117
+ protected doAppend({ content, severity, appendEol }: {
118
+ content: string;
119
+ severity: OutputChannelSeverity;
120
+ appendEol?: boolean;
121
+ }): Promise<void>;
122
+ protected ensureMaxChannelHistory(textModel: monaco.editor.ITextModel): void;
123
+ protected get maxLineNumber(): number;
124
+ protected set maxLineNumber(maxLineNumber: number);
125
+ }
126
126
  //# sourceMappingURL=output-channel.d.ts.map