@theia/test 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 (53) hide show
  1. package/lib/browser/constants.d.ts +45 -45
  2. package/lib/browser/constants.js +17 -17
  3. package/lib/browser/test-service.d.ts +154 -154
  4. package/lib/browser/test-service.js +247 -247
  5. package/lib/browser/view/test-context-key-service.d.ts +7 -7
  6. package/lib/browser/view/test-context-key-service.js +51 -51
  7. package/lib/browser/view/test-execution-state-manager.d.ts +13 -13
  8. package/lib/browser/view/test-execution-state-manager.js +173 -173
  9. package/lib/browser/view/test-output-ui-model.d.ts +47 -47
  10. package/lib/browser/view/test-output-ui-model.js +151 -151
  11. package/lib/browser/view/test-output-view-contribution.d.ts +5 -5
  12. package/lib/browser/view/test-output-view-contribution.js +47 -47
  13. package/lib/browser/view/test-output-widget.d.ts +24 -24
  14. package/lib/browser/view/test-output-widget.js +158 -158
  15. package/lib/browser/view/test-result-view-contribution.d.ts +5 -5
  16. package/lib/browser/view/test-result-view-contribution.js +47 -47
  17. package/lib/browser/view/test-result-widget.d.ts +20 -20
  18. package/lib/browser/view/test-result-widget.js +108 -108
  19. package/lib/browser/view/test-run-view-contribution.d.ts +17 -17
  20. package/lib/browser/view/test-run-view-contribution.js +100 -100
  21. package/lib/browser/view/test-run-widget.d.ts +58 -58
  22. package/lib/browser/view/test-run-widget.js +310 -310
  23. package/lib/browser/view/test-tree-widget.d.ts +67 -67
  24. package/lib/browser/view/test-tree-widget.js +386 -386
  25. package/lib/browser/view/test-view-contribution.d.ts +45 -45
  26. package/lib/browser/view/test-view-contribution.js +288 -288
  27. package/lib/browser/view/test-view-frontend-module.d.ts +6 -6
  28. package/lib/browser/view/test-view-frontend-module.js +121 -121
  29. package/lib/common/collections.d.ts +46 -46
  30. package/lib/common/collections.js +210 -210
  31. package/lib/common/tree-delta.d.ts +51 -51
  32. package/lib/common/tree-delta.js +240 -240
  33. package/lib/common/tree-delta.spec.d.ts +1 -1
  34. package/lib/common/tree-delta.spec.js +139 -139
  35. package/package.json +8 -8
  36. package/src/browser/constants.ts +71 -71
  37. package/src/browser/style/index.css +41 -41
  38. package/src/browser/test-service.ts +355 -355
  39. package/src/browser/view/test-context-key-service.ts +36 -36
  40. package/src/browser/view/test-execution-state-manager.ts +147 -147
  41. package/src/browser/view/test-output-ui-model.ts +156 -156
  42. package/src/browser/view/test-output-view-contribution.ts +34 -34
  43. package/src/browser/view/test-output-widget.ts +148 -148
  44. package/src/browser/view/test-result-view-contribution.ts +34 -34
  45. package/src/browser/view/test-result-widget.ts +92 -92
  46. package/src/browser/view/test-run-view-contribution.ts +89 -89
  47. package/src/browser/view/test-run-widget.tsx +271 -271
  48. package/src/browser/view/test-tree-widget.tsx +360 -360
  49. package/src/browser/view/test-view-contribution.ts +300 -300
  50. package/src/browser/view/test-view-frontend-module.ts +134 -134
  51. package/src/common/collections.ts +223 -223
  52. package/src/common/tree-delta.spec.ts +166 -166
  53. package/src/common/tree-delta.ts +259 -259
@@ -1,152 +1,152 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2023 STMicroelectronics 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
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
18
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
19
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
20
- 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;
21
- return c > 3 && r && Object.defineProperty(target, key, r), r;
22
- };
23
- var __metadata = (this && this.__metadata) || function (k, v) {
24
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
25
- };
26
- Object.defineProperty(exports, "__esModule", { value: true });
27
- exports.TestOutputUIModel = void 0;
28
- const inversify_1 = require("@theia/core/shared/inversify");
29
- const test_service_1 = require("../test-service");
30
- const core_1 = require("@theia/core");
31
- const test_context_key_service_1 = require("./test-context-key-service");
32
- let TestOutputUIModel = class TestOutputUIModel {
33
- constructor() {
34
- this.activeRuns = new Map();
35
- this.controllerListeners = new Map();
36
- this.onDidChangeActiveTestRunEmitter = new core_1.Emitter();
37
- this.onDidChangeActiveTestRun = this.onDidChangeActiveTestRunEmitter.event;
38
- this.onDidChangeActiveTestStateEmitter = new core_1.Emitter();
39
- this.onDidChangeActiveTestState = this.onDidChangeActiveTestStateEmitter.event;
40
- this.onDidChangeSelectedOutputSourceEmitter = new core_1.Emitter();
41
- this.onDidChangeSelectedOutputSource = this.onDidChangeSelectedOutputSourceEmitter.event;
42
- this.onDidChangeSelectedTestStateEmitter = new core_1.Emitter();
43
- this.onDidChangeSelectedTestState = this.onDidChangeSelectedTestStateEmitter.event;
44
- }
45
- init() {
46
- this.testService.getControllers().forEach(controller => this.addController(controller));
47
- this.testService.onControllersChanged(deltas => {
48
- var _a, _b;
49
- (_a = deltas.added) === null || _a === void 0 ? void 0 : _a.forEach(controller => this.addController(controller));
50
- (_b = deltas.removed) === null || _b === void 0 ? void 0 : _b.forEach(controller => this.removeController(controller));
51
- });
52
- }
53
- removeController(id) {
54
- var _a;
55
- (_a = this.controllerListeners.get(id)) === null || _a === void 0 ? void 0 : _a.dispose();
56
- if (this.activeRuns.has(id)) {
57
- this.activeRuns.delete(id);
58
- }
59
- }
60
- addController(controller) {
61
- this.controllerListeners.set(controller.id, controller.onRunsChanged(delta => {
62
- var _a;
63
- if (delta.added) {
64
- const currentRun = controller.testRuns[controller.testRuns.length - 1];
65
- if (currentRun) {
66
- this.setActiveTestRun(currentRun);
67
- }
68
- }
69
- else {
70
- (_a = delta.removed) === null || _a === void 0 ? void 0 : _a.forEach(run => {
71
- if (run === this.getActiveTestRun(controller)) {
72
- const currentRun = controller.testRuns[controller.testRuns.length - 1];
73
- this.doSetActiveRun(controller, currentRun);
74
- }
75
- });
76
- }
77
- }));
78
- }
79
- getActiveTestRun(controller) {
80
- var _a;
81
- return (_a = this.activeRuns.get(controller.id)) === null || _a === void 0 ? void 0 : _a.run;
82
- }
83
- setActiveTestRun(run) {
84
- this.doSetActiveRun(run.controller, run);
85
- }
86
- doSetActiveRun(controller, run) {
87
- const old = this.activeRuns.get(controller.id);
88
- if (old !== run) {
89
- if (old) {
90
- old.toDispose.dispose();
91
- }
92
- if (run) {
93
- const toDispose = run.onDidChangeTestState(e => {
94
- this.onDidChangeActiveTestStateEmitter.fire({
95
- controller,
96
- testRun: run,
97
- statedDelta: e
98
- });
99
- });
100
- this.activeRuns.set(controller.id, { run, toDispose });
101
- }
102
- else {
103
- this.activeRuns.delete(controller.id);
104
- }
105
- this.onDidChangeActiveTestRunEmitter.fire({ activeRun: run, controller: controller });
106
- }
107
- }
108
- get selectedOutputSource() {
109
- return this._selectedOutputSource;
110
- }
111
- set selectedOutputSource(element) {
112
- if (element !== this._selectedOutputSource) {
113
- this._selectedOutputSource = element;
114
- this.onDidChangeSelectedOutputSourceEmitter.fire(element);
115
- }
116
- }
117
- get selectedTestState() {
118
- return this._selectedTestState;
119
- }
120
- set selectedTestState(element) {
121
- if (element !== this._selectedTestState) {
122
- this._selectedTestState = element;
123
- if (this._selectedTestState && test_service_1.TestFailure.is(this._selectedTestState.state)) {
124
- const message = this._selectedTestState.state.messages[0];
125
- this.testContextKeys.contextValue.set(message.contextValue);
126
- }
127
- else {
128
- this.testContextKeys.contextValue.reset();
129
- }
130
- this.onDidChangeSelectedTestStateEmitter.fire(element);
131
- }
132
- }
133
- };
134
- __decorate([
135
- (0, inversify_1.inject)(test_context_key_service_1.TestContextKeyService),
136
- __metadata("design:type", test_context_key_service_1.TestContextKeyService)
137
- ], TestOutputUIModel.prototype, "testContextKeys", void 0);
138
- __decorate([
139
- (0, inversify_1.inject)(test_service_1.TestService),
140
- __metadata("design:type", Object)
141
- ], TestOutputUIModel.prototype, "testService", void 0);
142
- __decorate([
143
- (0, inversify_1.postConstruct)(),
144
- __metadata("design:type", Function),
145
- __metadata("design:paramtypes", []),
146
- __metadata("design:returntype", void 0)
147
- ], TestOutputUIModel.prototype, "init", null);
148
- TestOutputUIModel = __decorate([
149
- (0, inversify_1.injectable)()
150
- ], TestOutputUIModel);
151
- exports.TestOutputUIModel = TestOutputUIModel;
1
+ "use strict";
2
+ // *****************************************************************************
3
+ // Copyright (C) 2023 STMicroelectronics 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
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
18
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
19
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
20
+ 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;
21
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
22
+ };
23
+ var __metadata = (this && this.__metadata) || function (k, v) {
24
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
25
+ };
26
+ Object.defineProperty(exports, "__esModule", { value: true });
27
+ exports.TestOutputUIModel = void 0;
28
+ const inversify_1 = require("@theia/core/shared/inversify");
29
+ const test_service_1 = require("../test-service");
30
+ const core_1 = require("@theia/core");
31
+ const test_context_key_service_1 = require("./test-context-key-service");
32
+ let TestOutputUIModel = class TestOutputUIModel {
33
+ constructor() {
34
+ this.activeRuns = new Map();
35
+ this.controllerListeners = new Map();
36
+ this.onDidChangeActiveTestRunEmitter = new core_1.Emitter();
37
+ this.onDidChangeActiveTestRun = this.onDidChangeActiveTestRunEmitter.event;
38
+ this.onDidChangeActiveTestStateEmitter = new core_1.Emitter();
39
+ this.onDidChangeActiveTestState = this.onDidChangeActiveTestStateEmitter.event;
40
+ this.onDidChangeSelectedOutputSourceEmitter = new core_1.Emitter();
41
+ this.onDidChangeSelectedOutputSource = this.onDidChangeSelectedOutputSourceEmitter.event;
42
+ this.onDidChangeSelectedTestStateEmitter = new core_1.Emitter();
43
+ this.onDidChangeSelectedTestState = this.onDidChangeSelectedTestStateEmitter.event;
44
+ }
45
+ init() {
46
+ this.testService.getControllers().forEach(controller => this.addController(controller));
47
+ this.testService.onControllersChanged(deltas => {
48
+ var _a, _b;
49
+ (_a = deltas.added) === null || _a === void 0 ? void 0 : _a.forEach(controller => this.addController(controller));
50
+ (_b = deltas.removed) === null || _b === void 0 ? void 0 : _b.forEach(controller => this.removeController(controller));
51
+ });
52
+ }
53
+ removeController(id) {
54
+ var _a;
55
+ (_a = this.controllerListeners.get(id)) === null || _a === void 0 ? void 0 : _a.dispose();
56
+ if (this.activeRuns.has(id)) {
57
+ this.activeRuns.delete(id);
58
+ }
59
+ }
60
+ addController(controller) {
61
+ this.controllerListeners.set(controller.id, controller.onRunsChanged(delta => {
62
+ var _a;
63
+ if (delta.added) {
64
+ const currentRun = controller.testRuns[controller.testRuns.length - 1];
65
+ if (currentRun) {
66
+ this.setActiveTestRun(currentRun);
67
+ }
68
+ }
69
+ else {
70
+ (_a = delta.removed) === null || _a === void 0 ? void 0 : _a.forEach(run => {
71
+ if (run === this.getActiveTestRun(controller)) {
72
+ const currentRun = controller.testRuns[controller.testRuns.length - 1];
73
+ this.doSetActiveRun(controller, currentRun);
74
+ }
75
+ });
76
+ }
77
+ }));
78
+ }
79
+ getActiveTestRun(controller) {
80
+ var _a;
81
+ return (_a = this.activeRuns.get(controller.id)) === null || _a === void 0 ? void 0 : _a.run;
82
+ }
83
+ setActiveTestRun(run) {
84
+ this.doSetActiveRun(run.controller, run);
85
+ }
86
+ doSetActiveRun(controller, run) {
87
+ const old = this.activeRuns.get(controller.id);
88
+ if (old !== run) {
89
+ if (old) {
90
+ old.toDispose.dispose();
91
+ }
92
+ if (run) {
93
+ const toDispose = run.onDidChangeTestState(e => {
94
+ this.onDidChangeActiveTestStateEmitter.fire({
95
+ controller,
96
+ testRun: run,
97
+ statedDelta: e
98
+ });
99
+ });
100
+ this.activeRuns.set(controller.id, { run, toDispose });
101
+ }
102
+ else {
103
+ this.activeRuns.delete(controller.id);
104
+ }
105
+ this.onDidChangeActiveTestRunEmitter.fire({ activeRun: run, controller: controller });
106
+ }
107
+ }
108
+ get selectedOutputSource() {
109
+ return this._selectedOutputSource;
110
+ }
111
+ set selectedOutputSource(element) {
112
+ if (element !== this._selectedOutputSource) {
113
+ this._selectedOutputSource = element;
114
+ this.onDidChangeSelectedOutputSourceEmitter.fire(element);
115
+ }
116
+ }
117
+ get selectedTestState() {
118
+ return this._selectedTestState;
119
+ }
120
+ set selectedTestState(element) {
121
+ if (element !== this._selectedTestState) {
122
+ this._selectedTestState = element;
123
+ if (this._selectedTestState && test_service_1.TestFailure.is(this._selectedTestState.state)) {
124
+ const message = this._selectedTestState.state.messages[0];
125
+ this.testContextKeys.contextValue.set(message.contextValue);
126
+ }
127
+ else {
128
+ this.testContextKeys.contextValue.reset();
129
+ }
130
+ this.onDidChangeSelectedTestStateEmitter.fire(element);
131
+ }
132
+ }
133
+ };
134
+ __decorate([
135
+ (0, inversify_1.inject)(test_context_key_service_1.TestContextKeyService),
136
+ __metadata("design:type", test_context_key_service_1.TestContextKeyService)
137
+ ], TestOutputUIModel.prototype, "testContextKeys", void 0);
138
+ __decorate([
139
+ (0, inversify_1.inject)(test_service_1.TestService),
140
+ __metadata("design:type", Object)
141
+ ], TestOutputUIModel.prototype, "testService", void 0);
142
+ __decorate([
143
+ (0, inversify_1.postConstruct)(),
144
+ __metadata("design:type", Function),
145
+ __metadata("design:paramtypes", []),
146
+ __metadata("design:returntype", void 0)
147
+ ], TestOutputUIModel.prototype, "init", null);
148
+ TestOutputUIModel = __decorate([
149
+ (0, inversify_1.injectable)()
150
+ ], TestOutputUIModel);
151
+ exports.TestOutputUIModel = TestOutputUIModel;
152
152
  //# sourceMappingURL=test-output-ui-model.js.map
@@ -1,6 +1,6 @@
1
- import { AbstractViewContribution } from '@theia/core/lib/browser';
2
- import { TestOutputWidget } from './test-output-widget';
3
- export declare class TestOutputViewContribution extends AbstractViewContribution<TestOutputWidget> {
4
- constructor();
5
- }
1
+ import { AbstractViewContribution } from '@theia/core/lib/browser';
2
+ import { TestOutputWidget } from './test-output-widget';
3
+ export declare class TestOutputViewContribution extends AbstractViewContribution<TestOutputWidget> {
4
+ constructor();
5
+ }
6
6
  //# sourceMappingURL=test-output-view-contribution.d.ts.map
@@ -1,48 +1,48 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2023 STMicroelectronics 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
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
18
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
19
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
20
- 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;
21
- return c > 3 && r && Object.defineProperty(target, key, r), r;
22
- };
23
- var __metadata = (this && this.__metadata) || function (k, v) {
24
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
25
- };
26
- Object.defineProperty(exports, "__esModule", { value: true });
27
- exports.TestOutputViewContribution = void 0;
28
- const browser_1 = require("@theia/core/lib/browser");
29
- const test_output_widget_1 = require("./test-output-widget");
30
- const inversify_1 = require("@theia/core/shared/inversify");
31
- const core_1 = require("@theia/core");
32
- let TestOutputViewContribution = class TestOutputViewContribution extends browser_1.AbstractViewContribution {
33
- constructor() {
34
- super({
35
- widgetId: test_output_widget_1.TestOutputWidget.ID,
36
- widgetName: core_1.nls.localizeByDefault('Test Output'),
37
- defaultWidgetOptions: {
38
- area: 'bottom'
39
- }
40
- });
41
- }
42
- };
43
- TestOutputViewContribution = __decorate([
44
- (0, inversify_1.injectable)(),
45
- __metadata("design:paramtypes", [])
46
- ], TestOutputViewContribution);
47
- exports.TestOutputViewContribution = TestOutputViewContribution;
1
+ "use strict";
2
+ // *****************************************************************************
3
+ // Copyright (C) 2023 STMicroelectronics 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
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
18
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
19
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
20
+ 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;
21
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
22
+ };
23
+ var __metadata = (this && this.__metadata) || function (k, v) {
24
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
25
+ };
26
+ Object.defineProperty(exports, "__esModule", { value: true });
27
+ exports.TestOutputViewContribution = void 0;
28
+ const browser_1 = require("@theia/core/lib/browser");
29
+ const test_output_widget_1 = require("./test-output-widget");
30
+ const inversify_1 = require("@theia/core/shared/inversify");
31
+ const core_1 = require("@theia/core");
32
+ let TestOutputViewContribution = class TestOutputViewContribution extends browser_1.AbstractViewContribution {
33
+ constructor() {
34
+ super({
35
+ widgetId: test_output_widget_1.TestOutputWidget.ID,
36
+ widgetName: core_1.nls.localizeByDefault('Test Output'),
37
+ defaultWidgetOptions: {
38
+ area: 'bottom'
39
+ }
40
+ });
41
+ }
42
+ };
43
+ TestOutputViewContribution = __decorate([
44
+ (0, inversify_1.injectable)(),
45
+ __metadata("design:paramtypes", [])
46
+ ], TestOutputViewContribution);
47
+ exports.TestOutputViewContribution = TestOutputViewContribution;
48
48
  //# sourceMappingURL=test-output-view-contribution.js.map
@@ -1,25 +1,25 @@
1
- import { Terminal } from 'xterm';
2
- import { FitAddon } from 'xterm-addon-fit';
3
- import { BaseWidget, Message, Widget } from '@theia/core/lib/browser';
4
- import { DisposableCollection } from '@theia/core';
5
- import { TerminalPreferences } from '@theia/terminal/lib/browser/terminal-preferences';
6
- import { TerminalThemeService } from '@theia/terminal/lib/browser/terminal-theme-service';
7
- import { TestOutputSource, TestOutputUIModel } from './test-output-ui-model';
8
- export declare class TestOutputWidget extends BaseWidget {
9
- protected readonly preferences: TerminalPreferences;
10
- protected readonly themeService: TerminalThemeService;
11
- protected readonly uiModel: TestOutputUIModel;
12
- static ID: string;
13
- protected term: Terminal;
14
- protected disposeOnSetInput: DisposableCollection;
15
- protected fitAddon: FitAddon;
16
- constructor();
17
- init(): void;
18
- setInput(selectedOutputSource: TestOutputSource | undefined): void;
19
- protected onAfterAttach(msg: Message): void;
20
- private getTerminalRendererType;
21
- protected onResize(msg: Widget.ResizeMessage): void;
22
- protected resizeTerminal: () => Promise<void>;
23
- protected doResizeTerminal(): void;
24
- }
1
+ import { Terminal } from 'xterm';
2
+ import { FitAddon } from 'xterm-addon-fit';
3
+ import { BaseWidget, Message, Widget } from '@theia/core/lib/browser';
4
+ import { DisposableCollection } from '@theia/core';
5
+ import { TerminalPreferences } from '@theia/terminal/lib/browser/terminal-preferences';
6
+ import { TerminalThemeService } from '@theia/terminal/lib/browser/terminal-theme-service';
7
+ import { TestOutputSource, TestOutputUIModel } from './test-output-ui-model';
8
+ export declare class TestOutputWidget extends BaseWidget {
9
+ protected readonly preferences: TerminalPreferences;
10
+ protected readonly themeService: TerminalThemeService;
11
+ protected readonly uiModel: TestOutputUIModel;
12
+ static ID: string;
13
+ protected term: Terminal;
14
+ protected disposeOnSetInput: DisposableCollection;
15
+ protected fitAddon: FitAddon;
16
+ constructor();
17
+ init(): void;
18
+ setInput(selectedOutputSource: TestOutputSource | undefined): void;
19
+ protected onAfterAttach(msg: Message): void;
20
+ private getTerminalRendererType;
21
+ protected onResize(msg: Widget.ResizeMessage): void;
22
+ protected resizeTerminal: () => Promise<void>;
23
+ protected doResizeTerminal(): void;
24
+ }
25
25
  //# sourceMappingURL=test-output-widget.d.ts.map