@theia/process 1.23.0-next.5 → 1.23.0-next.54
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/lib/common/process-common-module.d.ts +0 -15
- package/lib/common/process-common-module.d.ts.map +1 -1
- package/lib/common/process-common-module.js +15 -15
- package/lib/common/process-common-module.js.map +1 -1
- package/lib/common/shell-command-builder.d.ts +0 -15
- package/lib/common/shell-command-builder.d.ts.map +1 -1
- package/lib/common/shell-command-builder.js +19 -19
- package/lib/common/shell-command-builder.js.map +1 -1
- package/lib/common/shell-command-builder.slow-spec.d.ts +0 -15
- package/lib/common/shell-command-builder.slow-spec.d.ts.map +1 -1
- package/lib/common/shell-command-builder.slow-spec.js +19 -19
- package/lib/common/shell-command-builder.slow-spec.js.map +1 -1
- package/lib/common/shell-quoting.d.ts +0 -15
- package/lib/common/shell-quoting.d.ts.map +1 -1
- package/lib/common/shell-quoting.js +15 -15
- package/lib/common/shell-quoting.js.map +1 -1
- package/lib/common/shell-quoting.spec.d.ts +0 -15
- package/lib/common/shell-quoting.spec.d.ts.map +1 -1
- package/lib/common/shell-quoting.spec.js +16 -16
- package/lib/common/shell-quoting.spec.js.map +1 -1
- package/lib/node/dev-null-stream.d.ts +0 -15
- package/lib/node/dev-null-stream.d.ts.map +1 -1
- package/lib/node/dev-null-stream.js +15 -15
- package/lib/node/dev-null-stream.js.map +1 -1
- package/lib/node/index.d.ts +0 -15
- package/lib/node/index.d.ts.map +1 -1
- package/lib/node/index.js +16 -16
- package/lib/node/index.js.map +1 -1
- package/lib/node/multi-ring-buffer.d.ts +0 -15
- package/lib/node/multi-ring-buffer.d.ts.map +1 -1
- package/lib/node/multi-ring-buffer.js +17 -17
- package/lib/node/multi-ring-buffer.js.map +1 -1
- package/lib/node/multi-ring-buffer.spec.d.ts +0 -15
- package/lib/node/multi-ring-buffer.spec.d.ts.map +1 -1
- package/lib/node/multi-ring-buffer.spec.js +15 -15
- package/lib/node/multi-ring-buffer.spec.js.map +1 -1
- package/lib/node/process-backend-module.d.ts +0 -15
- package/lib/node/process-backend-module.d.ts.map +1 -1
- package/lib/node/process-backend-module.js +15 -15
- package/lib/node/process-backend-module.js.map +1 -1
- package/lib/node/process-manager.js +18 -17
- package/lib/node/process-manager.js.map +1 -1
- package/lib/node/process.d.ts +0 -15
- package/lib/node/process.d.ts.map +1 -1
- package/lib/node/process.js +18 -18
- package/lib/node/process.js.map +1 -1
- package/lib/node/pseudo-pty.d.ts +0 -15
- package/lib/node/pseudo-pty.d.ts.map +1 -1
- package/lib/node/pseudo-pty.js +15 -15
- package/lib/node/pseudo-pty.js.map +1 -1
- package/lib/node/raw-process.d.ts +0 -15
- package/lib/node/raw-process.d.ts.map +1 -1
- package/lib/node/raw-process.js +23 -22
- package/lib/node/raw-process.js.map +1 -1
- package/lib/node/raw-process.spec.js +21 -21
- package/lib/node/raw-process.spec.js.map +1 -1
- package/lib/node/task-terminal-process.d.ts +0 -15
- package/lib/node/task-terminal-process.d.ts.map +1 -1
- package/lib/node/task-terminal-process.js +16 -16
- package/lib/node/task-terminal-process.js.map +1 -1
- package/lib/node/terminal-process.d.ts +0 -15
- package/lib/node/terminal-process.d.ts.map +1 -1
- package/lib/node/terminal-process.js +24 -23
- package/lib/node/terminal-process.js.map +1 -1
- package/lib/node/terminal-process.spec.js +16 -16
- package/lib/node/terminal-process.spec.js.map +1 -1
- package/lib/node/test/process-test-container.d.ts +0 -15
- package/lib/node/test/process-test-container.d.ts.map +1 -1
- package/lib/node/test/process-test-container.js +16 -16
- package/lib/node/test/process-test-container.js.map +1 -1
- package/lib/node/utils.d.ts +0 -15
- package/lib/node/utils.d.ts.map +1 -1
- package/lib/node/utils.js +15 -15
- package/lib/node/utils.js.map +1 -1
- package/package.json +3 -3
- package/src/common/process-common-module.ts +15 -15
- package/src/common/shell-command-builder.slow-spec.ts +15 -15
- package/src/common/shell-command-builder.ts +15 -15
- package/src/common/shell-quoting.spec.ts +15 -15
- package/src/common/shell-quoting.ts +15 -15
- package/src/node/dev-null-stream.ts +17 -17
- package/src/node/index.ts +15 -15
- package/src/node/multi-ring-buffer.spec.ts +18 -18
- package/src/node/multi-ring-buffer.ts +17 -17
- package/src/node/process-backend-module.ts +15 -15
- package/src/node/process-manager.ts +15 -15
- package/src/node/process.ts +15 -15
- package/src/node/pseudo-pty.ts +15 -15
- package/src/node/raw-process.spec.ts +19 -22
- package/src/node/raw-process.ts +15 -15
- package/src/node/string-argv.d.ts +15 -15
- package/src/node/task-terminal-process.ts +16 -16
- package/src/node/terminal-process.spec.ts +15 -15
- package/src/node/terminal-process.ts +16 -16
- package/src/node/test/process-fork-test.js +15 -15
- package/src/node/test/process-test-container.ts +15 -15
- package/src/node/utils.ts +15 -15
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createProcessTestContainer = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
4
|
+
// *****************************************************************************
|
|
5
|
+
// Copyright (C) 2017 Ericsson and others.
|
|
6
|
+
//
|
|
7
|
+
// This program and the accompanying materials are made available under the
|
|
8
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
9
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
10
|
+
//
|
|
11
|
+
// This Source Code may also be made available under the following Secondary
|
|
12
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
13
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
14
|
+
// with the GNU Classpath Exception which is available at
|
|
15
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
16
|
+
//
|
|
17
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
18
|
+
// *****************************************************************************
|
|
19
19
|
const inversify_1 = require("@theia/core/shared/inversify");
|
|
20
20
|
const logger_backend_module_1 = require("@theia/core/lib/node/logger-backend-module");
|
|
21
21
|
const process_backend_module_1 = require("../process-backend-module");
|
|
22
22
|
function createProcessTestContainer() {
|
|
23
23
|
const testContainer = new inversify_1.Container();
|
|
24
|
-
logger_backend_module_1.bindLogger(testContainer.bind.bind(testContainer));
|
|
24
|
+
(0, logger_backend_module_1.bindLogger)(testContainer.bind.bind(testContainer));
|
|
25
25
|
testContainer.load(process_backend_module_1.default);
|
|
26
26
|
return testContainer;
|
|
27
27
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"process-test-container.js","sourceRoot":"","sources":["../../../src/node/test/process-test-container.ts"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"file":"process-test-container.js","sourceRoot":"","sources":["../../../src/node/test/process-test-container.ts"],"names":[],"mappings":";;;AAAA,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,2EAA2E;AAC3E,gFAAgF;AAChF,4DAAyD;AACzD,sFAAwE;AACxE,sEAA6D;AAE7D,SAAgB,0BAA0B;IACtC,MAAM,aAAa,GAAG,IAAI,qBAAS,EAAE,CAAC;IAEtC,IAAA,kCAAU,EAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC;IACnD,aAAa,CAAC,IAAI,CAAC,gCAAoB,CAAC,CAAC;IAEzC,OAAO,aAAa,CAAC;AACzB,CAAC;AAPD,gEAOC"}
|
package/lib/node/utils.d.ts
CHANGED
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
/********************************************************************************
|
|
2
|
-
* Copyright (C) 2017 TypeFox 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 WITH Classpath-exception-2.0
|
|
15
|
-
********************************************************************************/
|
|
16
1
|
/**
|
|
17
2
|
* Parses the given line into an array of args respecting escapes and string literals.
|
|
18
3
|
* @param line the given line to parse
|
package/lib/node/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/node/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/node/utils.ts"],"names":[],"mappings":"AAoBA;;;GAGG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,EAAE,CAK5D;AAeD;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAe3C;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAQ7C"}
|
package/lib/node/utils.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2017 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 WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.codename = exports.signame = exports.parseArgs = void 0;
|
|
19
19
|
const core_1 = require("@theia/core");
|
package/lib/node/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/node/utils.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/node/utils.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,2EAA2E;AAC3E,gFAAgF;;;AAEhF,sCAAwC;AACxC,yBAAyB;AACzB,MAAM,UAAU,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;AAE1C;;;GAGG;AACH,SAAgB,SAAS,CAAC,IAAwB;IAC9C,IAAI,IAAI,EAAE;QACN,OAAO,UAAU,CAAC,IAAI,CAAC,CAAC;KAC3B;IACD,OAAO,EAAE,CAAC;AACd,CAAC;AALD,8BAKC;AAED,2DAA2D;AAC3D,8DAA8D;AAC9D,SAAS,aAAa,CAAC,GAAQ;IAC3B,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC/B,MAAM,MAAM,GAAG,IAAI,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACvC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACnC,8DAA8D;QAC9D,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KACzC;IAED,OAAO,MAAM,CAAC;AAClB,CAAC;AAED;;;;;GAKG;AACH,SAAgB,OAAO,CAAC,GAAW;IAC/B,uEAAuE;IACvE,SAAS;IACT,IAAI,gBAAS,EAAE;QACX,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;KAC9D;IAED,KAAK,MAAM,KAAK,IAAI,aAAa,CAAC,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE;QACrD,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE;YAClB,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC;SACnB;KACJ;IAED,0DAA0D;IAC1D,OAAO,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;AAC5B,CAAC;AAfD,0BAeC;AAED;;GAEG;AACH,SAAgB,QAAQ,CAAC,IAAY;IACjC,KAAK,MAAM,KAAK,IAAI,aAAa,CAAC,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE;QACnD,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,IAAI,EAAE;YACnB,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC;SACnB;KACJ;IACD,gEAAgE;IAChE,OAAO,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;AAC7B,CAAC;AARD,4BAQC"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/process",
|
|
3
|
-
"version": "1.23.0-next.
|
|
3
|
+
"version": "1.23.0-next.54+92b376dcf82",
|
|
4
4
|
"description": "Theia process support.",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@theia/core": "1.23.0-next.
|
|
6
|
+
"@theia/core": "1.23.0-next.54+92b376dcf82",
|
|
7
7
|
"node-pty": "0.11.0-beta17",
|
|
8
8
|
"string-argv": "^0.1.1"
|
|
9
9
|
},
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"nyc": {
|
|
50
50
|
"extends": "../../configs/nyc.json"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "92b376dcf823293059e2023a2a03253b48352d80"
|
|
53
53
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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 WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { ContainerModule } from '@theia/core/shared/inversify';
|
|
18
18
|
import { ShellCommandBuilder } from './shell-command-builder';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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 WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* This test suite assumes that we run in a NodeJS environment!
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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 WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
/*---------------------------------------------------------------------------------------------
|
|
18
18
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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 WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { expect } from 'chai';
|
|
18
18
|
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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 WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
// #region vscode
|
|
18
18
|
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2019 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 WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import stream = require('stream');
|
|
18
18
|
|
|
@@ -36,11 +36,11 @@ export class DevNullStream extends stream.Duplex {
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
39
|
-
_write(chunk: any, encoding: string, callback: (err?: Error) => void): void {
|
|
39
|
+
override _write(chunk: any, encoding: string, callback: (err?: Error) => void): void {
|
|
40
40
|
callback();
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
_read(size: number): void {
|
|
43
|
+
override _read(size: number): void {
|
|
44
44
|
// eslint-disable-next-line no-null/no-null
|
|
45
45
|
this.push(null);
|
|
46
46
|
}
|
package/src/node/index.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2017 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 WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
export * from './process-manager';
|
|
18
18
|
export * from './process';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2017 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 WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import * as chai from 'chai';
|
|
18
18
|
import { MultiRingBuffer } from './multi-ring-buffer';
|
|
@@ -329,7 +329,7 @@ describe('MultiRingBuffer', function (): void {
|
|
|
329
329
|
const buffer = 'abc';
|
|
330
330
|
|
|
331
331
|
const astream = ringBuffer.getStream();
|
|
332
|
-
const p = new Promise(resolve => {
|
|
332
|
+
const p = new Promise<void>(resolve => {
|
|
333
333
|
astream.on('data', (chunk: string) => {
|
|
334
334
|
expect(chunk).to.be.equal(buffer);
|
|
335
335
|
resolve();
|
|
@@ -347,7 +347,7 @@ describe('MultiRingBuffer', function (): void {
|
|
|
347
347
|
ringBuffer.enq(buffer);
|
|
348
348
|
|
|
349
349
|
const astream = ringBuffer.getStream();
|
|
350
|
-
const p = new Promise(resolve => {
|
|
350
|
+
const p = new Promise<void>(resolve => {
|
|
351
351
|
astream.on('data', (chunk: string) => {
|
|
352
352
|
expect(chunk).to.be.equal(buffer);
|
|
353
353
|
resolve();
|
|
@@ -403,7 +403,7 @@ describe('MultiRingBuffer', function (): void {
|
|
|
403
403
|
ringBuffer.enq(buffer);
|
|
404
404
|
|
|
405
405
|
const astream = ringBuffer.getStream('hex');
|
|
406
|
-
const p = new Promise(resolve => {
|
|
406
|
+
const p = new Promise<void>(resolve => {
|
|
407
407
|
astream.on('data', (chunk: string) => {
|
|
408
408
|
expect(chunk).to.be.equal('74657374');
|
|
409
409
|
resolve();
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2017 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 WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import * as stream from 'stream';
|
|
18
18
|
import { inject, injectable } from '@theia/core/shared/inversify';
|
|
@@ -39,12 +39,12 @@ export class MultiRingBufferReadableStream extends stream.Readable implements Di
|
|
|
39
39
|
this.setEncoding(encoding);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
_read(size: number): void {
|
|
42
|
+
override _read(size: number): void {
|
|
43
43
|
this.more = true;
|
|
44
44
|
this.deq(size);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
_destroy(err: Error | null, callback: (err: Error | null) => void): void {
|
|
47
|
+
override _destroy(err: Error | null, callback: (err: Error | null) => void): void {
|
|
48
48
|
this.ringBuffer.closeStream(this);
|
|
49
49
|
this.ringBuffer.closeReader(this.reader);
|
|
50
50
|
this.disposed = true;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2017 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 WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { ContainerModule, Container } from '@theia/core/shared/inversify';
|
|
18
18
|
import { RawProcess, RawProcessOptions, RawProcessFactory, RawForkOptions } from './raw-process';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2017 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 WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
16
|
import { injectable, inject, named } from '@theia/core/shared/inversify';
|
|
17
17
|
import { Process } from './process';
|
|
18
18
|
import { Emitter, Event } from '@theia/core/lib/common';
|
package/src/node/process.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2017 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 WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { injectable, unmanaged } from '@theia/core/shared/inversify';
|
|
18
18
|
import { ProcessManager } from './process-manager';
|