@theia/terminal 1.53.0-next.55 → 1.53.0-next.64
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.
- package/README.md +30 -30
- package/lib/browser/terminal-widget-impl.js +4 -4
- package/package.json +9 -9
- package/src/browser/base/terminal-service.ts +60 -60
- package/src/browser/base/terminal-widget.ts +268 -268
- package/src/browser/index.ts +17 -17
- package/src/browser/search/terminal-search-container.ts +28 -28
- package/src/browser/search/terminal-search-widget.tsx +161 -161
- package/src/browser/shell-terminal-profile.ts +45 -45
- package/src/browser/style/terminal-search.css +99 -99
- package/src/browser/style/terminal.css +32 -32
- package/src/browser/terminal-contribution.ts +19 -19
- package/src/browser/terminal-copy-on-selection-handler.ts +92 -92
- package/src/browser/terminal-file-link-provider.ts +289 -289
- package/src/browser/terminal-frontend-contribution.ts +1134 -1134
- package/src/browser/terminal-frontend-module.ts +138 -138
- package/src/browser/terminal-link-helpers.ts +187 -187
- package/src/browser/terminal-link-provider.ts +203 -203
- package/src/browser/terminal-preferences.ts +428 -428
- package/src/browser/terminal-profile-service.ts +180 -180
- package/src/browser/terminal-quick-open-service.ts +132 -132
- package/src/browser/terminal-theme-service.ts +213 -213
- package/src/browser/terminal-url-link-provider.ts +66 -66
- package/src/browser/terminal-widget-impl.ts +996 -996
- package/src/common/base-terminal-protocol.ts +125 -125
- package/src/common/shell-terminal-protocol.ts +103 -103
- package/src/common/terminal-common-module.ts +30 -30
- package/src/common/terminal-protocol.ts +32 -32
- package/src/common/terminal-watcher.ts +69 -69
- package/src/node/base-terminal-server.ts +173 -173
- package/src/node/buffering-stream.spec.ts +46 -46
- package/src/node/buffering-stream.ts +95 -95
- package/src/node/index.ts +17 -17
- package/src/node/shell-process.ts +102 -102
- package/src/node/shell-terminal-server.spec.ts +40 -40
- package/src/node/shell-terminal-server.ts +223 -223
- package/src/node/terminal-backend-contribution.slow-spec.ts +63 -63
- package/src/node/terminal-backend-contribution.ts +60 -60
- package/src/node/terminal-backend-module.ts +82 -82
- package/src/node/terminal-server.spec.ts +47 -47
- package/src/node/terminal-server.ts +52 -52
- package/src/node/test/terminal-test-container.ts +39 -39
- package/src/package.spec.ts +28 -28
package/README.md
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
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 - TERMINAL EXTENSION</h2>
|
|
8
|
-
|
|
9
|
-
<hr />
|
|
10
|
-
|
|
11
|
-
</div>
|
|
12
|
-
|
|
13
|
-
## Description
|
|
14
|
-
|
|
15
|
-
The `@theia/terminal` extension contributes the ability to spawn integrated terminals in the application which can be used in a variety of different scenarios.
|
|
16
|
-
|
|
17
|
-
## Additional Information
|
|
18
|
-
|
|
19
|
-
- [API documentation for `@theia/terminal`](https://eclipse-theia.github.io/theia/docs/next/modules/terminal.html)
|
|
20
|
-
- [Theia - GitHub](https://github.com/eclipse-theia/theia)
|
|
21
|
-
- [Theia - Website](https://theia-ide.org/)
|
|
22
|
-
|
|
23
|
-
## License
|
|
24
|
-
|
|
25
|
-
- [Eclipse Public License 2.0](http://www.eclipse.org/legal/epl-2.0/)
|
|
26
|
-
- [一 (Secondary) GNU General Public License, version 2 with the GNU Classpath Exception](https://projects.eclipse.org/license/secondary-gpl-2.0-cp)
|
|
27
|
-
|
|
28
|
-
## Trademark
|
|
29
|
-
"Theia" is a trademark of the Eclipse Foundation
|
|
30
|
-
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 - TERMINAL EXTENSION</h2>
|
|
8
|
+
|
|
9
|
+
<hr />
|
|
10
|
+
|
|
11
|
+
</div>
|
|
12
|
+
|
|
13
|
+
## Description
|
|
14
|
+
|
|
15
|
+
The `@theia/terminal` extension contributes the ability to spawn integrated terminals in the application which can be used in a variety of different scenarios.
|
|
16
|
+
|
|
17
|
+
## Additional Information
|
|
18
|
+
|
|
19
|
+
- [API documentation for `@theia/terminal`](https://eclipse-theia.github.io/theia/docs/next/modules/terminal.html)
|
|
20
|
+
- [Theia - GitHub](https://github.com/eclipse-theia/theia)
|
|
21
|
+
- [Theia - Website](https://theia-ide.org/)
|
|
22
|
+
|
|
23
|
+
## License
|
|
24
|
+
|
|
25
|
+
- [Eclipse Public License 2.0](http://www.eclipse.org/legal/epl-2.0/)
|
|
26
|
+
- [一 (Secondary) GNU General Public License, version 2 with the GNU Classpath Exception](https://projects.eclipse.org/license/secondary-gpl-2.0-cp)
|
|
27
|
+
|
|
28
|
+
## Trademark
|
|
29
|
+
"Theia" is a trademark of the Eclipse Foundation
|
|
30
|
+
https://www.eclipse.org/theia
|
|
@@ -269,10 +269,10 @@ let TerminalWidgetImpl = TerminalWidgetImpl_1 = class TerminalWidgetImpl extends
|
|
|
269
269
|
this.styleElement = browser_1.DecorationStyle.createStyleElement(`${this.terminalId}-terminal-style`);
|
|
270
270
|
const classId = 'terminal-icon-' + (0, core_1.generateUuid)().replace(/-/g, '');
|
|
271
271
|
const color = this.colorRegistry.getCurrentColor(iconClass.color.id);
|
|
272
|
-
this.styleElement.textContent = `
|
|
273
|
-
.${classId}::before {
|
|
274
|
-
color: ${color};
|
|
275
|
-
}
|
|
272
|
+
this.styleElement.textContent = `
|
|
273
|
+
.${classId}::before {
|
|
274
|
+
color: ${color};
|
|
275
|
+
}
|
|
276
276
|
`;
|
|
277
277
|
iconClasses.push(classId);
|
|
278
278
|
}
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/terminal",
|
|
3
|
-
"version": "1.53.0-next.
|
|
3
|
+
"version": "1.53.0-next.64+23b351d26",
|
|
4
4
|
"description": "Theia - Terminal Extension",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@theia/core": "1.53.0-next.
|
|
7
|
-
"@theia/editor": "1.53.0-next.
|
|
8
|
-
"@theia/file-search": "1.53.0-next.
|
|
9
|
-
"@theia/filesystem": "1.53.0-next.
|
|
10
|
-
"@theia/process": "1.53.0-next.
|
|
11
|
-
"@theia/variable-resolver": "1.53.0-next.
|
|
12
|
-
"@theia/workspace": "1.53.0-next.
|
|
6
|
+
"@theia/core": "1.53.0-next.64+23b351d26",
|
|
7
|
+
"@theia/editor": "1.53.0-next.64+23b351d26",
|
|
8
|
+
"@theia/file-search": "1.53.0-next.64+23b351d26",
|
|
9
|
+
"@theia/filesystem": "1.53.0-next.64+23b351d26",
|
|
10
|
+
"@theia/process": "1.53.0-next.64+23b351d26",
|
|
11
|
+
"@theia/variable-resolver": "1.53.0-next.64+23b351d26",
|
|
12
|
+
"@theia/workspace": "1.53.0-next.64+23b351d26",
|
|
13
13
|
"tslib": "^2.6.2",
|
|
14
14
|
"xterm": "^5.3.0",
|
|
15
15
|
"xterm-addon-fit": "^0.8.0",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"nyc": {
|
|
56
56
|
"extends": "../../configs/nyc.json"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "23b351d26346a2b5d6aca3ee81fba59c056132f7"
|
|
59
59
|
}
|
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
// *****************************************************************************
|
|
2
|
-
// Copyright (C) 2018 Red Hat, Inc. and others.
|
|
3
|
-
//
|
|
4
|
-
// This program and the accompanying materials are made available under the
|
|
5
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
-
//
|
|
8
|
-
// This Source Code may also be made available under the following Secondary
|
|
9
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
-
// with the GNU Classpath Exception which is available at
|
|
12
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
-
//
|
|
14
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
|
-
// *****************************************************************************
|
|
16
|
-
import { Event } from '@theia/core/lib/common/event';
|
|
17
|
-
import { WidgetOpenerOptions } from '@theia/core/lib/browser';
|
|
18
|
-
import { TerminalWidgetOptions, TerminalWidget } from './terminal-widget';
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Service manipulating terminal widgets.
|
|
22
|
-
*/
|
|
23
|
-
export const TerminalService = Symbol('TerminalService');
|
|
24
|
-
export interface TerminalService {
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Create new terminal with predefined options.
|
|
28
|
-
* @param options - terminal options.
|
|
29
|
-
*/
|
|
30
|
-
newTerminal(options: TerminalWidgetOptions): Promise<TerminalWidget>;
|
|
31
|
-
|
|
32
|
-
open(terminal: TerminalWidget, options?: WidgetOpenerOptions): void;
|
|
33
|
-
|
|
34
|
-
readonly all: TerminalWidget[];
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* @param id - the widget id (NOT the terminal id!)
|
|
38
|
-
* @return the widget
|
|
39
|
-
*/
|
|
40
|
-
getById(id: string): TerminalWidget | undefined;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* @param id - the terminal id (NOT the terminal widget id!)
|
|
44
|
-
* @return the widget
|
|
45
|
-
*/
|
|
46
|
-
getByTerminalId(terminalId: number): TerminalWidget | undefined;
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Returns detected default shell.
|
|
50
|
-
*/
|
|
51
|
-
getDefaultShell(): Promise<string>;
|
|
52
|
-
|
|
53
|
-
readonly onDidCreateTerminal: Event<TerminalWidget>;
|
|
54
|
-
|
|
55
|
-
readonly currentTerminal: TerminalWidget | undefined;
|
|
56
|
-
|
|
57
|
-
readonly onDidChangeCurrentTerminal: Event<TerminalWidget | undefined>;
|
|
58
|
-
|
|
59
|
-
readonly lastUsedTerminal: TerminalWidget | undefined;
|
|
60
|
-
}
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2018 Red Hat, Inc. and others.
|
|
3
|
+
//
|
|
4
|
+
// This program and the accompanying materials are made available under the
|
|
5
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
//
|
|
8
|
+
// This Source Code may also be made available under the following Secondary
|
|
9
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
// with the GNU Classpath Exception which is available at
|
|
12
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
//
|
|
14
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
|
+
import { Event } from '@theia/core/lib/common/event';
|
|
17
|
+
import { WidgetOpenerOptions } from '@theia/core/lib/browser';
|
|
18
|
+
import { TerminalWidgetOptions, TerminalWidget } from './terminal-widget';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Service manipulating terminal widgets.
|
|
22
|
+
*/
|
|
23
|
+
export const TerminalService = Symbol('TerminalService');
|
|
24
|
+
export interface TerminalService {
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Create new terminal with predefined options.
|
|
28
|
+
* @param options - terminal options.
|
|
29
|
+
*/
|
|
30
|
+
newTerminal(options: TerminalWidgetOptions): Promise<TerminalWidget>;
|
|
31
|
+
|
|
32
|
+
open(terminal: TerminalWidget, options?: WidgetOpenerOptions): void;
|
|
33
|
+
|
|
34
|
+
readonly all: TerminalWidget[];
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* @param id - the widget id (NOT the terminal id!)
|
|
38
|
+
* @return the widget
|
|
39
|
+
*/
|
|
40
|
+
getById(id: string): TerminalWidget | undefined;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* @param id - the terminal id (NOT the terminal widget id!)
|
|
44
|
+
* @return the widget
|
|
45
|
+
*/
|
|
46
|
+
getByTerminalId(terminalId: number): TerminalWidget | undefined;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Returns detected default shell.
|
|
50
|
+
*/
|
|
51
|
+
getDefaultShell(): Promise<string>;
|
|
52
|
+
|
|
53
|
+
readonly onDidCreateTerminal: Event<TerminalWidget>;
|
|
54
|
+
|
|
55
|
+
readonly currentTerminal: TerminalWidget | undefined;
|
|
56
|
+
|
|
57
|
+
readonly onDidChangeCurrentTerminal: Event<TerminalWidget | undefined>;
|
|
58
|
+
|
|
59
|
+
readonly lastUsedTerminal: TerminalWidget | undefined;
|
|
60
|
+
}
|