@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,159 +1,159 @@
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
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- var TestOutputWidget_1;
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.TestOutputWidget = void 0;
14
- // *****************************************************************************
15
- // Copyright (C) 2023 STMicroelectronics and others.
16
- //
17
- // This program and the accompanying materials are made available under the
18
- // terms of the Eclipse Public License v. 2.0 which is available at
19
- // http://www.eclipse.org/legal/epl-2.0.
20
- //
21
- // This Source Code may also be made available under the following Secondary
22
- // Licenses when the conditions for such availability set forth in the Eclipse
23
- // Public License v. 2.0 are satisfied: GNU General Public License, version 2
24
- // with the GNU Classpath Exception which is available at
25
- // https://www.gnu.org/software/classpath/license.html.
26
- //
27
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
28
- // *****************************************************************************
29
- const xterm_1 = require("xterm");
30
- const xterm_addon_fit_1 = require("xterm-addon-fit");
31
- const browser_1 = require("@theia/core/lib/browser");
32
- const inversify_1 = require("@theia/core/shared/inversify");
33
- const core_1 = require("@theia/core");
34
- const terminal_preferences_1 = require("@theia/terminal/lib/browser/terminal-preferences");
35
- const terminal_theme_service_1 = require("@theia/terminal/lib/browser/terminal-theme-service");
36
- const test_output_ui_model_1 = require("./test-output-ui-model");
37
- const debounce = require("p-debounce");
38
- let TestOutputWidget = TestOutputWidget_1 = class TestOutputWidget extends browser_1.BaseWidget {
39
- constructor() {
40
- super();
41
- this.disposeOnSetInput = new core_1.DisposableCollection();
42
- this.resizeTerminal = debounce(() => this.doResizeTerminal(), 50);
43
- this.id = TestOutputWidget_1.ID;
44
- this.title.label = 'Test Output';
45
- this.title.caption = 'Test Output';
46
- this.title.iconClass = (0, browser_1.codicon)('symbol-keyword');
47
- this.title.closable = true;
48
- }
49
- init() {
50
- this.term = new xterm_1.Terminal({
51
- disableStdin: true,
52
- cursorStyle: 'bar',
53
- fontFamily: this.preferences['terminal.integrated.fontFamily'],
54
- fontSize: this.preferences['terminal.integrated.fontSize'],
55
- fontWeight: this.preferences['terminal.integrated.fontWeight'],
56
- fontWeightBold: this.preferences['terminal.integrated.fontWeightBold'],
57
- drawBoldTextInBrightColors: this.preferences['terminal.integrated.drawBoldTextInBrightColors'],
58
- letterSpacing: this.preferences['terminal.integrated.letterSpacing'],
59
- lineHeight: this.preferences['terminal.integrated.lineHeight'],
60
- scrollback: this.preferences['terminal.integrated.scrollback'],
61
- fastScrollSensitivity: this.preferences['terminal.integrated.fastScrollSensitivity'],
62
- rendererType: this.getTerminalRendererType(this.preferences['terminal.integrated.rendererType']),
63
- theme: this.themeService.theme
64
- });
65
- this.fitAddon = new xterm_addon_fit_1.FitAddon();
66
- this.term.loadAddon(this.fitAddon);
67
- this.setInput(this.uiModel.selectedOutputSource);
68
- this.uiModel.onDidChangeSelectedOutputSource(source => this.setInput(source));
69
- this.toDispose.push(core_1.Disposable.create(() => this.term.dispose()));
70
- }
71
- setInput(selectedOutputSource) {
72
- this.disposeOnSetInput.dispose();
73
- this.disposeOnSetInput = new core_1.DisposableCollection();
74
- this.term.clear();
75
- if (selectedOutputSource) {
76
- selectedOutputSource.output.forEach(item => this.term.writeln(item.output));
77
- this.disposeOnSetInput.push(selectedOutputSource.onDidAddTestOutput(items => {
78
- items.forEach(item => this.term.writeln(item.output));
79
- }));
80
- this.term.scrollToBottom();
81
- }
82
- }
83
- onAfterAttach(msg) {
84
- super.onAfterAttach(msg);
85
- this.term.open(this.node);
86
- if (browser_1.isFirefox) {
87
- // monkey patching intersection observer handling for secondary window support
88
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
89
- const renderService = this.term._core._renderService;
90
- const originalFunc = renderService._onIntersectionChange.bind(renderService);
91
- const replacement = function (entry) {
92
- if (entry.target.ownerDocument !== document) {
93
- // in Firefox, the intersection observer always reports the widget as non-intersecting if the dom element
94
- // is in a different document from when the IntersectionObserver started observing. Since we know
95
- // that the widget is always "visible" when in a secondary window, so we mark the entry as "intersecting"
96
- const patchedEvent = {
97
- ...entry,
98
- isIntersecting: true,
99
- };
100
- originalFunc(patchedEvent);
101
- }
102
- else {
103
- originalFunc(entry);
104
- }
105
- };
106
- renderService._onIntersectionChange = replacement;
107
- }
108
- if (browser_1.isFirefox) {
109
- // The software scrollbars don't work with xterm.js, so we disable the scrollbar if we are on firefox.
110
- if (this.term.element) {
111
- this.term.element.children.item(0).style.overflow = 'hidden';
112
- }
113
- }
114
- }
115
- getTerminalRendererType(terminalRendererType) {
116
- if (terminalRendererType && (0, terminal_preferences_1.isTerminalRendererType)(terminalRendererType)) {
117
- return terminalRendererType;
118
- }
119
- return terminal_preferences_1.DEFAULT_TERMINAL_RENDERER_TYPE;
120
- }
121
- onResize(msg) {
122
- super.onResize(msg);
123
- this.resizeTerminal();
124
- }
125
- doResizeTerminal() {
126
- if (this.isDisposed) {
127
- return;
128
- }
129
- const geo = this.fitAddon.proposeDimensions();
130
- const cols = geo.cols;
131
- const rows = geo.rows - 1; // subtract one row for margin
132
- this.term.resize(cols, rows);
133
- }
134
- };
135
- TestOutputWidget.ID = 'test-output-view';
136
- __decorate([
137
- (0, inversify_1.inject)(terminal_preferences_1.TerminalPreferences),
138
- __metadata("design:type", Object)
139
- ], TestOutputWidget.prototype, "preferences", void 0);
140
- __decorate([
141
- (0, inversify_1.inject)(terminal_theme_service_1.TerminalThemeService),
142
- __metadata("design:type", terminal_theme_service_1.TerminalThemeService)
143
- ], TestOutputWidget.prototype, "themeService", void 0);
144
- __decorate([
145
- (0, inversify_1.inject)(test_output_ui_model_1.TestOutputUIModel),
146
- __metadata("design:type", test_output_ui_model_1.TestOutputUIModel)
147
- ], TestOutputWidget.prototype, "uiModel", void 0);
148
- __decorate([
149
- (0, inversify_1.postConstruct)(),
150
- __metadata("design:type", Function),
151
- __metadata("design:paramtypes", []),
152
- __metadata("design:returntype", void 0)
153
- ], TestOutputWidget.prototype, "init", null);
154
- TestOutputWidget = TestOutputWidget_1 = __decorate([
155
- (0, inversify_1.injectable)(),
156
- __metadata("design:paramtypes", [])
157
- ], TestOutputWidget);
158
- exports.TestOutputWidget = TestOutputWidget;
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
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var TestOutputWidget_1;
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ exports.TestOutputWidget = void 0;
14
+ // *****************************************************************************
15
+ // Copyright (C) 2023 STMicroelectronics and others.
16
+ //
17
+ // This program and the accompanying materials are made available under the
18
+ // terms of the Eclipse Public License v. 2.0 which is available at
19
+ // http://www.eclipse.org/legal/epl-2.0.
20
+ //
21
+ // This Source Code may also be made available under the following Secondary
22
+ // Licenses when the conditions for such availability set forth in the Eclipse
23
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
24
+ // with the GNU Classpath Exception which is available at
25
+ // https://www.gnu.org/software/classpath/license.html.
26
+ //
27
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
28
+ // *****************************************************************************
29
+ const xterm_1 = require("xterm");
30
+ const xterm_addon_fit_1 = require("xterm-addon-fit");
31
+ const browser_1 = require("@theia/core/lib/browser");
32
+ const inversify_1 = require("@theia/core/shared/inversify");
33
+ const core_1 = require("@theia/core");
34
+ const terminal_preferences_1 = require("@theia/terminal/lib/browser/terminal-preferences");
35
+ const terminal_theme_service_1 = require("@theia/terminal/lib/browser/terminal-theme-service");
36
+ const test_output_ui_model_1 = require("./test-output-ui-model");
37
+ const debounce = require("p-debounce");
38
+ let TestOutputWidget = TestOutputWidget_1 = class TestOutputWidget extends browser_1.BaseWidget {
39
+ constructor() {
40
+ super();
41
+ this.disposeOnSetInput = new core_1.DisposableCollection();
42
+ this.resizeTerminal = debounce(() => this.doResizeTerminal(), 50);
43
+ this.id = TestOutputWidget_1.ID;
44
+ this.title.label = 'Test Output';
45
+ this.title.caption = 'Test Output';
46
+ this.title.iconClass = (0, browser_1.codicon)('symbol-keyword');
47
+ this.title.closable = true;
48
+ }
49
+ init() {
50
+ this.term = new xterm_1.Terminal({
51
+ disableStdin: true,
52
+ cursorStyle: 'bar',
53
+ fontFamily: this.preferences['terminal.integrated.fontFamily'],
54
+ fontSize: this.preferences['terminal.integrated.fontSize'],
55
+ fontWeight: this.preferences['terminal.integrated.fontWeight'],
56
+ fontWeightBold: this.preferences['terminal.integrated.fontWeightBold'],
57
+ drawBoldTextInBrightColors: this.preferences['terminal.integrated.drawBoldTextInBrightColors'],
58
+ letterSpacing: this.preferences['terminal.integrated.letterSpacing'],
59
+ lineHeight: this.preferences['terminal.integrated.lineHeight'],
60
+ scrollback: this.preferences['terminal.integrated.scrollback'],
61
+ fastScrollSensitivity: this.preferences['terminal.integrated.fastScrollSensitivity'],
62
+ rendererType: this.getTerminalRendererType(this.preferences['terminal.integrated.rendererType']),
63
+ theme: this.themeService.theme
64
+ });
65
+ this.fitAddon = new xterm_addon_fit_1.FitAddon();
66
+ this.term.loadAddon(this.fitAddon);
67
+ this.setInput(this.uiModel.selectedOutputSource);
68
+ this.uiModel.onDidChangeSelectedOutputSource(source => this.setInput(source));
69
+ this.toDispose.push(core_1.Disposable.create(() => this.term.dispose()));
70
+ }
71
+ setInput(selectedOutputSource) {
72
+ this.disposeOnSetInput.dispose();
73
+ this.disposeOnSetInput = new core_1.DisposableCollection();
74
+ this.term.clear();
75
+ if (selectedOutputSource) {
76
+ selectedOutputSource.output.forEach(item => this.term.writeln(item.output));
77
+ this.disposeOnSetInput.push(selectedOutputSource.onDidAddTestOutput(items => {
78
+ items.forEach(item => this.term.writeln(item.output));
79
+ }));
80
+ this.term.scrollToBottom();
81
+ }
82
+ }
83
+ onAfterAttach(msg) {
84
+ super.onAfterAttach(msg);
85
+ this.term.open(this.node);
86
+ if (browser_1.isFirefox) {
87
+ // monkey patching intersection observer handling for secondary window support
88
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
89
+ const renderService = this.term._core._renderService;
90
+ const originalFunc = renderService._onIntersectionChange.bind(renderService);
91
+ const replacement = function (entry) {
92
+ if (entry.target.ownerDocument !== document) {
93
+ // in Firefox, the intersection observer always reports the widget as non-intersecting if the dom element
94
+ // is in a different document from when the IntersectionObserver started observing. Since we know
95
+ // that the widget is always "visible" when in a secondary window, so we mark the entry as "intersecting"
96
+ const patchedEvent = {
97
+ ...entry,
98
+ isIntersecting: true,
99
+ };
100
+ originalFunc(patchedEvent);
101
+ }
102
+ else {
103
+ originalFunc(entry);
104
+ }
105
+ };
106
+ renderService._onIntersectionChange = replacement;
107
+ }
108
+ if (browser_1.isFirefox) {
109
+ // The software scrollbars don't work with xterm.js, so we disable the scrollbar if we are on firefox.
110
+ if (this.term.element) {
111
+ this.term.element.children.item(0).style.overflow = 'hidden';
112
+ }
113
+ }
114
+ }
115
+ getTerminalRendererType(terminalRendererType) {
116
+ if (terminalRendererType && (0, terminal_preferences_1.isTerminalRendererType)(terminalRendererType)) {
117
+ return terminalRendererType;
118
+ }
119
+ return terminal_preferences_1.DEFAULT_TERMINAL_RENDERER_TYPE;
120
+ }
121
+ onResize(msg) {
122
+ super.onResize(msg);
123
+ this.resizeTerminal();
124
+ }
125
+ doResizeTerminal() {
126
+ if (this.isDisposed) {
127
+ return;
128
+ }
129
+ const geo = this.fitAddon.proposeDimensions();
130
+ const cols = geo.cols;
131
+ const rows = geo.rows - 1; // subtract one row for margin
132
+ this.term.resize(cols, rows);
133
+ }
134
+ };
135
+ TestOutputWidget.ID = 'test-output-view';
136
+ __decorate([
137
+ (0, inversify_1.inject)(terminal_preferences_1.TerminalPreferences),
138
+ __metadata("design:type", Object)
139
+ ], TestOutputWidget.prototype, "preferences", void 0);
140
+ __decorate([
141
+ (0, inversify_1.inject)(terminal_theme_service_1.TerminalThemeService),
142
+ __metadata("design:type", terminal_theme_service_1.TerminalThemeService)
143
+ ], TestOutputWidget.prototype, "themeService", void 0);
144
+ __decorate([
145
+ (0, inversify_1.inject)(test_output_ui_model_1.TestOutputUIModel),
146
+ __metadata("design:type", test_output_ui_model_1.TestOutputUIModel)
147
+ ], TestOutputWidget.prototype, "uiModel", void 0);
148
+ __decorate([
149
+ (0, inversify_1.postConstruct)(),
150
+ __metadata("design:type", Function),
151
+ __metadata("design:paramtypes", []),
152
+ __metadata("design:returntype", void 0)
153
+ ], TestOutputWidget.prototype, "init", null);
154
+ TestOutputWidget = TestOutputWidget_1 = __decorate([
155
+ (0, inversify_1.injectable)(),
156
+ __metadata("design:paramtypes", [])
157
+ ], TestOutputWidget);
158
+ exports.TestOutputWidget = TestOutputWidget;
159
159
  //# sourceMappingURL=test-output-widget.js.map
@@ -1,6 +1,6 @@
1
- import { AbstractViewContribution } from '@theia/core/lib/browser';
2
- import { TestResultWidget } from './test-result-widget';
3
- export declare class TestResultViewContribution extends AbstractViewContribution<TestResultWidget> {
4
- constructor();
5
- }
1
+ import { AbstractViewContribution } from '@theia/core/lib/browser';
2
+ import { TestResultWidget } from './test-result-widget';
3
+ export declare class TestResultViewContribution extends AbstractViewContribution<TestResultWidget> {
4
+ constructor();
5
+ }
6
6
  //# sourceMappingURL=test-result-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.TestResultViewContribution = void 0;
28
- const browser_1 = require("@theia/core/lib/browser");
29
- const inversify_1 = require("@theia/core/shared/inversify");
30
- const test_result_widget_1 = require("./test-result-widget");
31
- const core_1 = require("@theia/core");
32
- let TestResultViewContribution = class TestResultViewContribution extends browser_1.AbstractViewContribution {
33
- constructor() {
34
- super({
35
- widgetId: test_result_widget_1.TestResultWidget.ID,
36
- widgetName: core_1.nls.localizeByDefault('Test Results'),
37
- defaultWidgetOptions: {
38
- area: 'bottom'
39
- }
40
- });
41
- }
42
- };
43
- TestResultViewContribution = __decorate([
44
- (0, inversify_1.injectable)(),
45
- __metadata("design:paramtypes", [])
46
- ], TestResultViewContribution);
47
- exports.TestResultViewContribution = TestResultViewContribution;
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.TestResultViewContribution = void 0;
28
+ const browser_1 = require("@theia/core/lib/browser");
29
+ const inversify_1 = require("@theia/core/shared/inversify");
30
+ const test_result_widget_1 = require("./test-result-widget");
31
+ const core_1 = require("@theia/core");
32
+ let TestResultViewContribution = class TestResultViewContribution extends browser_1.AbstractViewContribution {
33
+ constructor() {
34
+ super({
35
+ widgetId: test_result_widget_1.TestResultWidget.ID,
36
+ widgetName: core_1.nls.localizeByDefault('Test Results'),
37
+ defaultWidgetOptions: {
38
+ area: 'bottom'
39
+ }
40
+ });
41
+ }
42
+ };
43
+ TestResultViewContribution = __decorate([
44
+ (0, inversify_1.injectable)(),
45
+ __metadata("design:paramtypes", [])
46
+ ], TestResultViewContribution);
47
+ exports.TestResultViewContribution = TestResultViewContribution;
48
48
  //# sourceMappingURL=test-result-view-contribution.js.map
@@ -1,21 +1,21 @@
1
- import { BaseWidget, Message } from '@theia/core/lib/browser';
2
- import { TestOutputUIModel } from './test-output-ui-model';
3
- import { DisposableCollection } from '@theia/core';
4
- import { TestMessage } from '../test-service';
5
- import { MarkdownRenderer } from '@theia/core/lib/browser/markdown-rendering/markdown-renderer';
6
- export declare class TestResultWidget extends BaseWidget {
7
- static readonly ID = "test-result-widget";
8
- uiModel: TestOutputUIModel;
9
- markdownRenderer: MarkdownRenderer;
10
- protected toDisposeOnRender: DisposableCollection;
11
- protected input: TestMessage[];
12
- protected content: HTMLDivElement;
13
- constructor();
14
- init(): void;
15
- protected onAfterAttach(msg: Message): void;
16
- setInput(messages: TestMessage[]): void;
17
- protected onUpdateRequest(msg: Message): void;
18
- render(): void;
19
- dispose(): void;
20
- }
1
+ import { BaseWidget, Message } from '@theia/core/lib/browser';
2
+ import { TestOutputUIModel } from './test-output-ui-model';
3
+ import { DisposableCollection } from '@theia/core';
4
+ import { TestMessage } from '../test-service';
5
+ import { MarkdownRenderer } from '@theia/core/lib/browser/markdown-rendering/markdown-renderer';
6
+ export declare class TestResultWidget extends BaseWidget {
7
+ static readonly ID = "test-result-widget";
8
+ uiModel: TestOutputUIModel;
9
+ markdownRenderer: MarkdownRenderer;
10
+ protected toDisposeOnRender: DisposableCollection;
11
+ protected input: TestMessage[];
12
+ protected content: HTMLDivElement;
13
+ constructor();
14
+ init(): void;
15
+ protected onAfterAttach(msg: Message): void;
16
+ setInput(messages: TestMessage[]): void;
17
+ protected onUpdateRequest(msg: Message): void;
18
+ render(): void;
19
+ dispose(): void;
20
+ }
21
21
  //# sourceMappingURL=test-result-widget.d.ts.map