@theia/process 1.53.0-next.4 → 1.53.0-next.55

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 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 - PROCESS EXTENSION</h2>
8
-
9
- <hr />
10
-
11
- </div>
12
-
13
- ## Description
14
-
15
- The `@theia/process` extension allows the management of processes started with or without a `terminal`.
16
-
17
- ## Additional Information
18
-
19
- - [API documentation for `@theia/process`](https://eclipse-theia.github.io/theia/docs/next/modules/process.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 - PROCESS EXTENSION</h2>
8
+
9
+ <hr />
10
+
11
+ </div>
12
+
13
+ ## Description
14
+
15
+ The `@theia/process` extension allows the management of processes started with or without a `terminal`.
16
+
17
+ ## Additional Information
18
+
19
+ - [API documentation for `@theia/process`](https://eclipse-theia.github.io/theia/docs/next/modules/process.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
@@ -242,10 +242,10 @@ for (const shellConfig of shellConfigs) {
242
242
  const left = 'ABC';
243
243
  const right = 'DEF';
244
244
  await testCommandLine(context, processInfo, {
245
- cwd, args: [nodePath, '-e', `{
246
- const left = '${left}';
247
- const right = '${right}';
248
- console.log(\`[\${left}|\${right}]\`);
245
+ cwd, args: [nodePath, '-e', `{
246
+ const left = '${left}';
247
+ const right = '${right}';
248
+ console.log(\`[\${left}|\${right}]\`);
249
249
  }`],
250
250
  }, [
251
251
  // stderr
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@theia/process",
3
- "version": "1.53.0-next.4+9e9124118",
3
+ "version": "1.53.0-next.55+d1a989a68c",
4
4
  "description": "Theia process support.",
5
5
  "dependencies": {
6
- "@theia/core": "1.53.0-next.4+9e9124118",
6
+ "@theia/core": "1.53.0-next.55+d1a989a68c",
7
7
  "node-pty": "0.11.0-beta24",
8
8
  "string-argv": "^0.1.1",
9
9
  "tslib": "^2.6.2"
@@ -45,10 +45,10 @@
45
45
  "watch": "theiaext watch"
46
46
  },
47
47
  "devDependencies": {
48
- "@theia/ext-scripts": "1.52.0"
48
+ "@theia/ext-scripts": "1.53.0"
49
49
  },
50
50
  "nyc": {
51
51
  "extends": "../../configs/nyc.json"
52
52
  },
53
- "gitHead": "9e912411843f32b2a549ef6580b07872edd95e8b"
53
+ "gitHead": "d1a989a68c1b5ec1f9098e9126653c6346844769"
54
54
  }
@@ -1,22 +1,22 @@
1
- // *****************************************************************************
2
- // Copyright (C) 2020 Ericsson 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
-
17
- import { ContainerModule } from '@theia/core/shared/inversify';
18
- import { ShellCommandBuilder } from './shell-command-builder';
19
-
20
- export default new ContainerModule((bind, unbind, isBound, rebind) => {
21
- bind(ShellCommandBuilder).toSelf().inSingletonScope();
22
- });
1
+ // *****************************************************************************
2
+ // Copyright (C) 2020 Ericsson 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
+
17
+ import { ContainerModule } from '@theia/core/shared/inversify';
18
+ import { ShellCommandBuilder } from './shell-command-builder';
19
+
20
+ export default new ContainerModule((bind, unbind, isBound, rebind) => {
21
+ bind(ShellCommandBuilder).toSelf().inSingletonScope();
22
+ });
@@ -1,58 +1,58 @@
1
- // *****************************************************************************
2
- // Copyright (C) 2022 Ericsson 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
-
17
- import { Event } from '@theia/core';
18
-
19
- export interface ManagedProcessManager {
20
- register(process: ManagedProcess): number;
21
- unregister(process: ManagedProcess): void;
22
- get(id: number): ManagedProcess | undefined;
23
- }
24
-
25
- export interface ManagedProcess {
26
- readonly id: number;
27
- readonly onStart: Event<IProcessStartEvent>;
28
- readonly onExit: Event<IProcessExitEvent>;
29
- readonly onClose: Event<IProcessExitEvent>;
30
- readonly onError: Event<ProcessErrorEvent>;
31
- readonly killed: boolean;
32
- kill(): void;
33
- }
34
-
35
- export interface IProcessExitEvent {
36
- // Exactly one of code and signal will be set.
37
- readonly code?: number,
38
- readonly signal?: string
39
- }
40
-
41
- /**
42
- * Data emitted when a process has been successfully started.
43
- */
44
- export interface IProcessStartEvent {
45
- }
46
-
47
- /**
48
- * Data emitted when a process has failed to start.
49
- */
50
- export interface ProcessErrorEvent extends Error {
51
- /** An errno-like error string (e.g. ENOENT). */
52
- code: string;
53
- }
54
-
55
- export enum ProcessType {
56
- 'Raw',
57
- 'Terminal'
58
- }
1
+ // *****************************************************************************
2
+ // Copyright (C) 2022 Ericsson 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
+
17
+ import { Event } from '@theia/core';
18
+
19
+ export interface ManagedProcessManager {
20
+ register(process: ManagedProcess): number;
21
+ unregister(process: ManagedProcess): void;
22
+ get(id: number): ManagedProcess | undefined;
23
+ }
24
+
25
+ export interface ManagedProcess {
26
+ readonly id: number;
27
+ readonly onStart: Event<IProcessStartEvent>;
28
+ readonly onExit: Event<IProcessExitEvent>;
29
+ readonly onClose: Event<IProcessExitEvent>;
30
+ readonly onError: Event<ProcessErrorEvent>;
31
+ readonly killed: boolean;
32
+ kill(): void;
33
+ }
34
+
35
+ export interface IProcessExitEvent {
36
+ // Exactly one of code and signal will be set.
37
+ readonly code?: number,
38
+ readonly signal?: string
39
+ }
40
+
41
+ /**
42
+ * Data emitted when a process has been successfully started.
43
+ */
44
+ export interface IProcessStartEvent {
45
+ }
46
+
47
+ /**
48
+ * Data emitted when a process has failed to start.
49
+ */
50
+ export interface ProcessErrorEvent extends Error {
51
+ /** An errno-like error string (e.g. ENOENT). */
52
+ code: string;
53
+ }
54
+
55
+ export enum ProcessType {
56
+ 'Raw',
57
+ 'Terminal'
58
+ }