@theia/console 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 (34) hide show
  1. package/README.md +30 -30
  2. package/lib/browser/ansi-console-item.d.ts +12 -12
  3. package/lib/browser/ansi-console-item.js +38 -38
  4. package/lib/browser/console-content-widget.d.ts +17 -17
  5. package/lib/browser/console-content-widget.js +93 -93
  6. package/lib/browser/console-contribution.d.ts +33 -33
  7. package/lib/browser/console-contribution.js +143 -143
  8. package/lib/browser/console-frontend-module.d.ts +4 -4
  9. package/lib/browser/console-frontend-module.js +31 -31
  10. package/lib/browser/console-history.d.ts +19 -19
  11. package/lib/browser/console-history.js +74 -74
  12. package/lib/browser/console-manager.d.ts +7 -7
  13. package/lib/browser/console-manager.js +48 -48
  14. package/lib/browser/console-session-manager.d.ts +31 -31
  15. package/lib/browser/console-session-manager.js +116 -116
  16. package/lib/browser/console-session.d.ts +27 -27
  17. package/lib/browser/console-session.js +56 -56
  18. package/lib/browser/console-widget.d.ts +67 -67
  19. package/lib/browser/console-widget.d.ts.map +1 -1
  20. package/lib/browser/console-widget.js +270 -271
  21. package/lib/browser/console-widget.js.map +1 -1
  22. package/lib/package.spec.js +25 -25
  23. package/package.json +6 -6
  24. package/src/browser/ansi-console-item.tsx +48 -48
  25. package/src/browser/console-content-widget.tsx +91 -91
  26. package/src/browser/console-contribution.ts +143 -143
  27. package/src/browser/console-frontend-module.ts +32 -32
  28. package/src/browser/console-history.ts +76 -76
  29. package/src/browser/console-manager.ts +37 -37
  30. package/src/browser/console-session-manager.ts +121 -121
  31. package/src/browser/console-session.ts +61 -61
  32. package/src/browser/console-widget.ts +298 -299
  33. package/src/browser/style/index.css +49 -49
  34. package/src/package.spec.ts +28 -28
@@ -1,272 +1,271 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2018 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
- 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
- var ConsoleWidget_1;
27
- Object.defineProperty(exports, "__esModule", { value: true });
28
- exports.ConsoleWidget = exports.ConsoleOptions = void 0;
29
- const domutils_1 = require("@theia/core/shared/@phosphor/domutils");
30
- const inversify_1 = require("@theia/core/shared/inversify");
31
- const source_tree_1 = require("@theia/core/lib/browser/source-tree");
32
- const context_key_service_1 = require("@theia/core/lib/browser/context-key-service");
33
- const browser_1 = require("@theia/core/lib/browser");
34
- const monaco_editor_provider_1 = require("@theia/monaco/lib/browser/monaco-editor-provider");
35
- const console_history_1 = require("./console-history");
36
- const console_content_widget_1 = require("./console-content-widget");
37
- const console_session_manager_1 = require("./console-session-manager");
38
- const monaco = require("@theia/monaco-editor-core");
39
- exports.ConsoleOptions = Symbol('ConsoleWidgetOptions');
40
- let ConsoleWidget = ConsoleWidget_1 = class ConsoleWidget extends browser_1.BaseWidget {
41
- constructor() {
42
- super();
43
- this.totalHeight = -1;
44
- this.totalWidth = -1;
45
- this.node.classList.add(ConsoleWidget_1.styles.node);
46
- }
47
- static createContainer(parent, options) {
48
- const child = console_content_widget_1.ConsoleContentWidget.createContainer(parent);
49
- child.bind(console_history_1.ConsoleHistory).toSelf();
50
- child.bind(exports.ConsoleOptions).toConstantValue(options);
51
- child.bind(ConsoleWidget_1).toSelf();
52
- return child;
53
- }
54
- init() {
55
- this.doInit();
56
- }
57
- async doInit() {
58
- const { id, title, inputFocusContextKey } = this.options;
59
- const { label, iconClass, caption } = Object.assign({}, title);
60
- this.id = id;
61
- this.title.closable = true;
62
- this.title.label = label || id;
63
- if (iconClass) {
64
- this.title.iconClass = iconClass;
65
- }
66
- this.title.caption = caption || label || id;
67
- const layout = this.layout = new browser_1.PanelLayout();
68
- this.content.node.classList.add(ConsoleWidget_1.styles.content);
69
- this.toDispose.push(this.content);
70
- layout.addWidget(this.content);
71
- const inputWidget = new browser_1.Widget();
72
- inputWidget.node.classList.add(ConsoleWidget_1.styles.input);
73
- layout.addWidget(inputWidget);
74
- const input = this._input = await this.createInput(inputWidget.node);
75
- this.toDispose.push(input);
76
- this.toDispose.push(input.getControl().onDidLayoutChange(() => this.resizeContent()));
77
- this.toDispose.push(input.getControl().onDidChangeConfiguration(event => {
78
- if (event.hasChanged(monaco.editor.EditorOption.fontInfo)) {
79
- this.updateFont();
80
- }
81
- }));
82
- this.session = this.sessionManager.selectedSession;
83
- this.toDispose.push(this.sessionManager.onDidChangeSelectedSession(session => {
84
- // Do not clear the session output when `undefined`.
85
- if (session) {
86
- this.session = session;
87
- }
88
- }));
89
- this.updateFont();
90
- if (inputFocusContextKey) {
91
- this.toDispose.push(input.onFocusChanged(() => inputFocusContextKey.set(this.hasInputFocus())));
92
- this.toDispose.push(input.onCursorPositionChanged(() => input.getControl().createContextKey('consoleNavigationBackEnabled', this.consoleNavigationBackEnabled)));
93
- this.toDispose.push(input.onCursorPositionChanged(() => input.getControl().createContextKey('consoleNavigationForwardEnabled', this.consoleNavigationForwardEnabled)));
94
- }
95
- input.getControl().createContextKey('consoleInputFocus', true);
96
- const contentContext = this.contextKeyService.createScoped(this.content.node);
97
- contentContext.setContext('consoleContentFocus', true);
98
- this.toDispose.push(contentContext);
99
- }
100
- createInput(node) {
101
- return this.editorProvider.createInline(this.options.input.uri, node, this.options.input.options);
102
- }
103
- updateFont() {
104
- const { fontFamily, fontSize, lineHeight } = this._input.getControl().getOption(monaco.editor.EditorOption.fontInfo);
105
- this.content.node.style.fontFamily = fontFamily;
106
- this.content.node.style.fontSize = fontSize + 'px';
107
- this.content.node.style.lineHeight = lineHeight + 'px';
108
- }
109
- set session(session) {
110
- if (this._session === session) {
111
- return;
112
- }
113
- this._session = session;
114
- this.content.source = session;
115
- }
116
- get session() {
117
- return this._session;
118
- }
119
- get input() {
120
- return this._input;
121
- }
122
- get consoleNavigationBackEnabled() {
123
- const editor = this.input.getControl();
124
- return !!editor.getPosition().equals({ lineNumber: 1, column: 1 });
125
- }
126
- get consoleNavigationForwardEnabled() {
127
- const editor = this.input.getControl();
128
- const lineNumber = editor.getModel().getLineCount();
129
- const column = editor.getModel().getLineMaxColumn(lineNumber);
130
- return !!editor.getPosition().equals({ lineNumber, column });
131
- }
132
- selectAll() {
133
- const selection = document.getSelection();
134
- if (selection) {
135
- selection.selectAllChildren(this.content.node);
136
- }
137
- }
138
- collapseAll() {
139
- const { root } = this.content.model;
140
- if (browser_1.CompositeTreeNode.is(root)) {
141
- this.content.model.collapseAll(root);
142
- }
143
- }
144
- clear() {
145
- if (this.session) {
146
- this.session.clear();
147
- }
148
- }
149
- async execute() {
150
- const value = this._input.getControl().getValue();
151
- this._input.getControl().setValue('');
152
- this.history.push(value);
153
- if (this.session) {
154
- const listener = this.content.model.onNodeRefreshed(() => {
155
- listener.dispose();
156
- this.revealLastOutput();
157
- });
158
- await this.session.execute(value);
159
- }
160
- }
161
- navigateBack() {
162
- const value = this.history.previous;
163
- if (value === undefined) {
164
- return;
165
- }
166
- const editor = this.input.getControl();
167
- editor.setValue(value);
168
- editor.setPosition({
169
- lineNumber: 1,
170
- column: 1
171
- });
172
- }
173
- navigateForward() {
174
- const value = this.history.next || '';
175
- const editor = this.input.getControl();
176
- editor.setValue(value);
177
- const lineNumber = editor.getModel().getLineCount();
178
- const column = editor.getModel().getLineMaxColumn(lineNumber);
179
- editor.setPosition({ lineNumber, column });
180
- }
181
- revealLastOutput() {
182
- const { root } = this.content.model;
183
- if (source_tree_1.TreeSourceNode.is(root)) {
184
- this.content.model.selectNode(root.children[root.children.length - 1]);
185
- }
186
- }
187
- onActivateRequest(msg) {
188
- super.onActivateRequest(msg);
189
- this._input.focus();
190
- }
191
- onResize(msg) {
192
- super.onResize(msg);
193
- this.totalWidth = msg.width;
194
- this.totalHeight = msg.height;
195
- this._input.resizeToFit();
196
- this.resizeContent();
197
- }
198
- resizeContent() {
199
- this.totalHeight = this.totalHeight < 0 ? this.computeHeight() : this.totalHeight;
200
- const inputHeight = this._input.getControl().getLayoutInfo().height;
201
- const contentHeight = this.totalHeight - inputHeight;
202
- this.content.node.style.height = `${contentHeight}px`;
203
- browser_1.MessageLoop.sendMessage(this.content, new browser_1.Widget.ResizeMessage(this.totalWidth, contentHeight));
204
- }
205
- computeHeight() {
206
- const { verticalSum } = domutils_1.ElementExt.boxSizing(this.node);
207
- return this.node.offsetHeight - verticalSum;
208
- }
209
- storeState() {
210
- const history = this.history.store();
211
- const input = this.input.storeViewState();
212
- return {
213
- history,
214
- input
215
- };
216
- }
217
- restoreState(oldState) {
218
- if ('history' in oldState) {
219
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
220
- this.history.restore(oldState['history']);
221
- }
222
- this.input.getControl().setValue(this.history.current || '');
223
- if ('input' in oldState) {
224
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
225
- this.input.restoreViewState(oldState['input']);
226
- }
227
- }
228
- hasInputFocus() {
229
- return this._input && this._input.isFocused({ strict: true });
230
- }
231
- };
232
- ConsoleWidget.styles = {
233
- node: 'theia-console-widget',
234
- content: 'theia-console-content',
235
- input: 'theia-console-input',
236
- };
237
- __decorate([
238
- (0, inversify_1.inject)(exports.ConsoleOptions),
239
- __metadata("design:type", Object)
240
- ], ConsoleWidget.prototype, "options", void 0);
241
- __decorate([
242
- (0, inversify_1.inject)(console_content_widget_1.ConsoleContentWidget),
243
- __metadata("design:type", console_content_widget_1.ConsoleContentWidget)
244
- ], ConsoleWidget.prototype, "content", void 0);
245
- __decorate([
246
- (0, inversify_1.inject)(console_history_1.ConsoleHistory),
247
- __metadata("design:type", console_history_1.ConsoleHistory)
248
- ], ConsoleWidget.prototype, "history", void 0);
249
- __decorate([
250
- (0, inversify_1.inject)(console_session_manager_1.ConsoleSessionManager),
251
- __metadata("design:type", console_session_manager_1.ConsoleSessionManager)
252
- ], ConsoleWidget.prototype, "sessionManager", void 0);
253
- __decorate([
254
- (0, inversify_1.inject)(monaco_editor_provider_1.MonacoEditorProvider),
255
- __metadata("design:type", monaco_editor_provider_1.MonacoEditorProvider)
256
- ], ConsoleWidget.prototype, "editorProvider", void 0);
257
- __decorate([
258
- (0, inversify_1.inject)(context_key_service_1.ContextKeyService),
259
- __metadata("design:type", Object)
260
- ], ConsoleWidget.prototype, "contextKeyService", void 0);
261
- __decorate([
262
- (0, inversify_1.postConstruct)(),
263
- __metadata("design:type", Function),
264
- __metadata("design:paramtypes", []),
265
- __metadata("design:returntype", void 0)
266
- ], ConsoleWidget.prototype, "init", null);
267
- ConsoleWidget = ConsoleWidget_1 = __decorate([
268
- (0, inversify_1.injectable)(),
269
- __metadata("design:paramtypes", [])
270
- ], ConsoleWidget);
271
- exports.ConsoleWidget = ConsoleWidget;
1
+ "use strict";
2
+ // *****************************************************************************
3
+ // Copyright (C) 2018 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
+ 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
+ var ConsoleWidget_1;
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.ConsoleWidget = exports.ConsoleOptions = void 0;
29
+ const domutils_1 = require("@theia/core/shared/@phosphor/domutils");
30
+ const inversify_1 = require("@theia/core/shared/inversify");
31
+ const source_tree_1 = require("@theia/core/lib/browser/source-tree");
32
+ const context_key_service_1 = require("@theia/core/lib/browser/context-key-service");
33
+ const browser_1 = require("@theia/core/lib/browser");
34
+ const monaco_editor_provider_1 = require("@theia/monaco/lib/browser/monaco-editor-provider");
35
+ const console_history_1 = require("./console-history");
36
+ const console_content_widget_1 = require("./console-content-widget");
37
+ const console_session_manager_1 = require("./console-session-manager");
38
+ const monaco = require("@theia/monaco-editor-core");
39
+ exports.ConsoleOptions = Symbol('ConsoleWidgetOptions');
40
+ let ConsoleWidget = ConsoleWidget_1 = class ConsoleWidget extends browser_1.BaseWidget {
41
+ constructor() {
42
+ super();
43
+ this.totalHeight = -1;
44
+ this.totalWidth = -1;
45
+ this.node.classList.add(ConsoleWidget_1.styles.node);
46
+ }
47
+ static createContainer(parent, options) {
48
+ const child = console_content_widget_1.ConsoleContentWidget.createContainer(parent);
49
+ child.bind(console_history_1.ConsoleHistory).toSelf();
50
+ child.bind(exports.ConsoleOptions).toConstantValue(options);
51
+ child.bind(ConsoleWidget_1).toSelf();
52
+ return child;
53
+ }
54
+ init() {
55
+ this.doInit();
56
+ }
57
+ async doInit() {
58
+ const { id, title, inputFocusContextKey } = this.options;
59
+ const { label, iconClass, caption } = Object.assign({}, title);
60
+ this.id = id;
61
+ this.title.closable = true;
62
+ this.title.label = label || id;
63
+ if (iconClass) {
64
+ this.title.iconClass = iconClass;
65
+ }
66
+ this.title.caption = caption || label || id;
67
+ const layout = this.layout = new browser_1.PanelLayout();
68
+ this.content.node.classList.add(ConsoleWidget_1.styles.content);
69
+ this.toDispose.push(this.content);
70
+ layout.addWidget(this.content);
71
+ const inputWidget = new browser_1.Widget();
72
+ inputWidget.node.classList.add(ConsoleWidget_1.styles.input);
73
+ layout.addWidget(inputWidget);
74
+ const input = this._input = await this.createInput(inputWidget.node);
75
+ this.toDispose.push(input);
76
+ this.toDispose.push(input.getControl().onDidLayoutChange(() => this.resizeContent()));
77
+ this.toDispose.push(input.getControl().onDidChangeConfiguration(event => {
78
+ if (event.hasChanged(monaco.editor.EditorOption.fontInfo)) {
79
+ this.updateFont();
80
+ }
81
+ }));
82
+ this.session = this.sessionManager.selectedSession;
83
+ this.toDispose.push(this.sessionManager.onDidChangeSelectedSession(session => {
84
+ // Do not clear the session output when `undefined`.
85
+ if (session) {
86
+ this.session = session;
87
+ }
88
+ }));
89
+ this.updateFont();
90
+ if (inputFocusContextKey) {
91
+ this.toDispose.push(input.onFocusChanged(() => inputFocusContextKey.set(this.hasInputFocus())));
92
+ this.toDispose.push(input.onCursorPositionChanged(() => input.getControl().createContextKey('consoleNavigationBackEnabled', this.consoleNavigationBackEnabled)));
93
+ this.toDispose.push(input.onCursorPositionChanged(() => input.getControl().createContextKey('consoleNavigationForwardEnabled', this.consoleNavigationForwardEnabled)));
94
+ }
95
+ input.getControl().createContextKey('consoleInputFocus', true);
96
+ const contentContext = this.contextKeyService.createScoped(this.content.node);
97
+ contentContext.setContext('consoleContentFocus', true);
98
+ }
99
+ createInput(node) {
100
+ return this.editorProvider.createInline(this.options.input.uri, node, this.options.input.options);
101
+ }
102
+ updateFont() {
103
+ const { fontFamily, fontSize, lineHeight } = this._input.getControl().getOption(monaco.editor.EditorOption.fontInfo);
104
+ this.content.node.style.fontFamily = fontFamily;
105
+ this.content.node.style.fontSize = fontSize + 'px';
106
+ this.content.node.style.lineHeight = lineHeight + 'px';
107
+ }
108
+ set session(session) {
109
+ if (this._session === session) {
110
+ return;
111
+ }
112
+ this._session = session;
113
+ this.content.source = session;
114
+ }
115
+ get session() {
116
+ return this._session;
117
+ }
118
+ get input() {
119
+ return this._input;
120
+ }
121
+ get consoleNavigationBackEnabled() {
122
+ const editor = this.input.getControl();
123
+ return !!editor.getPosition().equals({ lineNumber: 1, column: 1 });
124
+ }
125
+ get consoleNavigationForwardEnabled() {
126
+ const editor = this.input.getControl();
127
+ const lineNumber = editor.getModel().getLineCount();
128
+ const column = editor.getModel().getLineMaxColumn(lineNumber);
129
+ return !!editor.getPosition().equals({ lineNumber, column });
130
+ }
131
+ selectAll() {
132
+ const selection = document.getSelection();
133
+ if (selection) {
134
+ selection.selectAllChildren(this.content.node);
135
+ }
136
+ }
137
+ collapseAll() {
138
+ const { root } = this.content.model;
139
+ if (browser_1.CompositeTreeNode.is(root)) {
140
+ this.content.model.collapseAll(root);
141
+ }
142
+ }
143
+ clear() {
144
+ if (this.session) {
145
+ this.session.clear();
146
+ }
147
+ }
148
+ async execute() {
149
+ const value = this._input.getControl().getValue();
150
+ this._input.getControl().setValue('');
151
+ this.history.push(value);
152
+ if (this.session) {
153
+ const listener = this.content.model.onNodeRefreshed(() => {
154
+ listener.dispose();
155
+ this.revealLastOutput();
156
+ });
157
+ await this.session.execute(value);
158
+ }
159
+ }
160
+ navigateBack() {
161
+ const value = this.history.previous;
162
+ if (value === undefined) {
163
+ return;
164
+ }
165
+ const editor = this.input.getControl();
166
+ editor.setValue(value);
167
+ editor.setPosition({
168
+ lineNumber: 1,
169
+ column: 1
170
+ });
171
+ }
172
+ navigateForward() {
173
+ const value = this.history.next || '';
174
+ const editor = this.input.getControl();
175
+ editor.setValue(value);
176
+ const lineNumber = editor.getModel().getLineCount();
177
+ const column = editor.getModel().getLineMaxColumn(lineNumber);
178
+ editor.setPosition({ lineNumber, column });
179
+ }
180
+ revealLastOutput() {
181
+ const { root } = this.content.model;
182
+ if (source_tree_1.TreeSourceNode.is(root)) {
183
+ this.content.model.selectNode(root.children[root.children.length - 1]);
184
+ }
185
+ }
186
+ onActivateRequest(msg) {
187
+ super.onActivateRequest(msg);
188
+ this._input.focus();
189
+ }
190
+ onResize(msg) {
191
+ super.onResize(msg);
192
+ this.totalWidth = msg.width;
193
+ this.totalHeight = msg.height;
194
+ this._input.resizeToFit();
195
+ this.resizeContent();
196
+ }
197
+ resizeContent() {
198
+ this.totalHeight = this.totalHeight < 0 ? this.computeHeight() : this.totalHeight;
199
+ const inputHeight = this._input.getControl().getLayoutInfo().height;
200
+ const contentHeight = this.totalHeight - inputHeight;
201
+ this.content.node.style.height = `${contentHeight}px`;
202
+ browser_1.MessageLoop.sendMessage(this.content, new browser_1.Widget.ResizeMessage(this.totalWidth, contentHeight));
203
+ }
204
+ computeHeight() {
205
+ const { verticalSum } = domutils_1.ElementExt.boxSizing(this.node);
206
+ return this.node.offsetHeight - verticalSum;
207
+ }
208
+ storeState() {
209
+ const history = this.history.store();
210
+ const input = this.input.storeViewState();
211
+ return {
212
+ history,
213
+ input
214
+ };
215
+ }
216
+ restoreState(oldState) {
217
+ if ('history' in oldState) {
218
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
219
+ this.history.restore(oldState['history']);
220
+ }
221
+ this.input.getControl().setValue(this.history.current || '');
222
+ if ('input' in oldState) {
223
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
224
+ this.input.restoreViewState(oldState['input']);
225
+ }
226
+ }
227
+ hasInputFocus() {
228
+ return this._input && this._input.isFocused({ strict: true });
229
+ }
230
+ };
231
+ ConsoleWidget.styles = {
232
+ node: 'theia-console-widget',
233
+ content: 'theia-console-content',
234
+ input: 'theia-console-input',
235
+ };
236
+ __decorate([
237
+ (0, inversify_1.inject)(exports.ConsoleOptions),
238
+ __metadata("design:type", Object)
239
+ ], ConsoleWidget.prototype, "options", void 0);
240
+ __decorate([
241
+ (0, inversify_1.inject)(console_content_widget_1.ConsoleContentWidget),
242
+ __metadata("design:type", console_content_widget_1.ConsoleContentWidget)
243
+ ], ConsoleWidget.prototype, "content", void 0);
244
+ __decorate([
245
+ (0, inversify_1.inject)(console_history_1.ConsoleHistory),
246
+ __metadata("design:type", console_history_1.ConsoleHistory)
247
+ ], ConsoleWidget.prototype, "history", void 0);
248
+ __decorate([
249
+ (0, inversify_1.inject)(console_session_manager_1.ConsoleSessionManager),
250
+ __metadata("design:type", console_session_manager_1.ConsoleSessionManager)
251
+ ], ConsoleWidget.prototype, "sessionManager", void 0);
252
+ __decorate([
253
+ (0, inversify_1.inject)(monaco_editor_provider_1.MonacoEditorProvider),
254
+ __metadata("design:type", monaco_editor_provider_1.MonacoEditorProvider)
255
+ ], ConsoleWidget.prototype, "editorProvider", void 0);
256
+ __decorate([
257
+ (0, inversify_1.inject)(context_key_service_1.ContextKeyService),
258
+ __metadata("design:type", Object)
259
+ ], ConsoleWidget.prototype, "contextKeyService", void 0);
260
+ __decorate([
261
+ (0, inversify_1.postConstruct)(),
262
+ __metadata("design:type", Function),
263
+ __metadata("design:paramtypes", []),
264
+ __metadata("design:returntype", void 0)
265
+ ], ConsoleWidget.prototype, "init", null);
266
+ ConsoleWidget = ConsoleWidget_1 = __decorate([
267
+ (0, inversify_1.injectable)(),
268
+ __metadata("design:paramtypes", [])
269
+ ], ConsoleWidget);
270
+ exports.ConsoleWidget = ConsoleWidget;
272
271
  //# sourceMappingURL=console-widget.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"console-widget.js","sourceRoot":"","sources":["../../src/browser/console-widget.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;;;;;;;;;;AAEhF,oEAAmE;AACnE,4DAAwG;AACxG,qEAAqE;AACrE,qFAA4F;AAC5F,qDAAmI;AAGnI,6FAAwF;AACxF,uDAAmD;AACnD,qEAAgE;AAEhE,uEAAkE;AAClE,oDAAoD;AAEvC,QAAA,cAAc,GAAG,MAAM,CAAC,sBAAsB,CAAC,CAAC;AAgB7D,IAAa,aAAa,qBAA1B,MAAa,aAAc,SAAQ,oBAAU;IAqCzC;QACI,KAAK,EAAE,CAAC;QAsKF,gBAAW,GAAG,CAAC,CAAC,CAAC;QACjB,eAAU,GAAG,CAAC,CAAC,CAAC;QAtKtB,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,eAAa,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACvD,CAAC;IAhCD,MAAM,CAAC,eAAe,CAAC,MAA4B,EAAE,OAAuB;QACxE,MAAM,KAAK,GAAG,6CAAoB,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;QAC3D,KAAK,CAAC,IAAI,CAAC,gCAAc,CAAC,CAAC,MAAM,EAAE,CAAC;QACpC,KAAK,CAAC,IAAI,CAAC,sBAAc,CAAC,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;QACpD,KAAK,CAAC,IAAI,CAAC,eAAa,CAAC,CAAC,MAAM,EAAE,CAAC;QACnC,OAAO,K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AA1PU,oBAAM,GAAG;IACZ,IAAI,EAAE,sBAAsB;IAC5B,OAAO,EAAE,uBAAuB;IAChC,KAAK,EAAE,qBAAqB;CAC/B,CAAC;AAWF;IADC,IAAA,kBAAM,EAAC,sBAAc,CAAC;;8CACoB;AAG3C;IADC,IAAA,kBAAM,EAAC,6CAAoB,CAAC;8BACX,6CAAoB;8CAAC;AAGvC;IADC,IAAA,kBAAM,EAAC,gCAAc,CAAC;8BACK,gCAAc;8CAAC;AAG3C;IADC,IAAA,kBAAM,EAAC,+CAAqB,CAAC;8BACK,+CAAqB;qDAAC;AAGzD;IADC,IAAA,kBAAM,EAAC,6CAAoB,CAAC;8BACM,6CAAoB;qDAAC;AAGxD;IADC,IAAA,kBAAM,EAAC,uCAAiB,CAAC;;wDAC8B;AAWxD;IADC,IAAA,yBAAa,GAAE;;;;yCAGf;AA7CQ,aAAa;IADzB,IAAA,sBAAU,GAAE;;GACA,aAAa,CA4PzB;AA5PY,sCAAa"}
1
+ {"version":3,"file":"console-widget.js","sourceRoot":"","sources":["../../src/browser/console-widget.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;;;;;;;;;;AAEhF,oEAAmE;AACnE,4DAAwG;AACxG,qEAAqE;AACrE,qFAA4F;AAC5F,qDAAmI;AAGnI,6FAAwF;AACxF,uDAAmD;AACnD,qEAAgE;AAEhE,uEAAkE;AAClE,oDAAoD;AAEvC,QAAA,cAAc,GAAG,MAAM,CAAC,sBAAsB,CAAC,CAAC;AAgB7D,IAAa,aAAa,qBAA1B,MAAa,aAAc,SAAQ,oBAAU;IAqCzC;QACI,KAAK,EAAE,CAAC;QAqKF,gBAAW,GAAG,CAAC,CAAC,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