@theia/process 1.67.0-next.13 → 1.67.0-next.56
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 +1 -1
- package/package.json +3 -3
- package/lib/common/process-common-module.d.ts +0 -4
- package/lib/common/process-common-module.d.ts.map +0 -1
- package/lib/common/process-common-module.js +0 -23
- package/lib/common/process-common-module.js.map +0 -1
- package/lib/common/process-manager-types.d.ts +0 -36
- package/lib/common/process-manager-types.d.ts.map +0 -1
- package/lib/common/process-manager-types.js +0 -24
- package/lib/common/process-manager-types.js.map +0 -1
- package/lib/common/shell-command-builder.d.ts +0 -50
- package/lib/common/shell-command-builder.d.ts.map +0 -1
- package/lib/common/shell-command-builder.js +0 -170
- package/lib/common/shell-command-builder.js.map +0 -1
- package/lib/common/shell-command-builder.slow-spec.d.ts +0 -10
- package/lib/common/shell-command-builder.slow-spec.d.ts.map +0 -1
- package/lib/common/shell-command-builder.slow-spec.js +0 -405
- package/lib/common/shell-command-builder.slow-spec.js.map +0 -1
- package/lib/common/shell-quoting.d.ts +0 -92
- package/lib/common/shell-quoting.d.ts.map +0 -1
- package/lib/common/shell-quoting.js +0 -146
- package/lib/common/shell-quoting.js.map +0 -1
- package/lib/common/shell-quoting.spec.d.ts +0 -2
- package/lib/common/shell-quoting.spec.d.ts.map +0 -1
- package/lib/common/shell-quoting.spec.js +0 -171
- package/lib/common/shell-quoting.spec.js.map +0 -1
- package/lib/node/dev-null-stream.d.ts +0 -18
- package/lib/node/dev-null-stream.d.ts.map +0 -1
- package/lib/node/dev-null-stream.js +0 -42
- package/lib/node/dev-null-stream.js.map +0 -1
- package/lib/node/index.d.ts +0 -7
- package/lib/node/index.d.ts.map +0 -1
- package/lib/node/index.js +0 -25
- package/lib/node/index.js.map +0 -1
- package/lib/node/multi-ring-buffer.d.ts +0 -71
- package/lib/node/multi-ring-buffer.d.ts.map +0 -1
- package/lib/node/multi-ring-buffer.js +0 -300
- package/lib/node/multi-ring-buffer.js.map +0 -1
- package/lib/node/multi-ring-buffer.spec.d.ts +0 -2
- package/lib/node/multi-ring-buffer.spec.d.ts.map +0 -1
- package/lib/node/multi-ring-buffer.spec.js +0 -423
- package/lib/node/multi-ring-buffer.spec.js.map +0 -1
- package/lib/node/process-backend-module.d.ts +0 -4
- package/lib/node/process-backend-module.d.ts.map +0 -1
- package/lib/node/process-backend-module.js +0 -52
- package/lib/node/process-backend-module.js.map +0 -1
- package/lib/node/process-manager.d.ts +0 -34
- package/lib/node/process-manager.d.ts.map +0 -1
- package/lib/node/process-manager.js +0 -103
- package/lib/node/process-manager.js.map +0 -1
- package/lib/node/process.d.ts +0 -96
- package/lib/node/process.d.ts.map +0 -1
- package/lib/node/process.js +0 -146
- package/lib/node/process.js.map +0 -1
- package/lib/node/pseudo-pty.d.ts +0 -24
- package/lib/node/pseudo-pty.d.ts.map +0 -1
- package/lib/node/pseudo-pty.js +0 -40
- package/lib/node/pseudo-pty.js.map +0 -1
- package/lib/node/raw-process.d.ts +0 -47
- package/lib/node/raw-process.d.ts.map +0 -1
- package/lib/node/raw-process.js +0 -104
- package/lib/node/raw-process.js.map +0 -1
- package/lib/node/raw-process.spec.d.ts +0 -2
- package/lib/node/raw-process.spec.d.ts.map +0 -1
- package/lib/node/raw-process.spec.js +0 -163
- package/lib/node/raw-process.spec.js.map +0 -1
- package/lib/node/task-terminal-process.d.ts +0 -11
- package/lib/node/task-terminal-process.d.ts.map +0 -1
- package/lib/node/task-terminal-process.js +0 -43
- package/lib/node/task-terminal-process.js.map +0 -1
- package/lib/node/terminal-process.d.ts +0 -61
- package/lib/node/terminal-process.d.ts.map +0 -1
- package/lib/node/terminal-process.js +0 -252
- package/lib/node/terminal-process.js.map +0 -1
- package/lib/node/terminal-process.spec.d.ts +0 -2
- package/lib/node/terminal-process.spec.d.ts.map +0 -1
- package/lib/node/terminal-process.spec.js +0 -104
- package/lib/node/terminal-process.spec.js.map +0 -1
- package/lib/node/test/process-test-container.d.ts +0 -3
- package/lib/node/test/process-test-container.d.ts.map +0 -1
- package/lib/node/test/process-test-container.js +0 -29
- package/lib/node/test/process-test-container.js.map +0 -1
- package/lib/node/utils.d.ts +0 -17
- package/lib/node/utils.d.ts.map +0 -1
- package/lib/node/utils.js +0 -78
- package/lib/node/utils.js.map +0 -1
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ProcessManager = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
// *****************************************************************************
|
|
6
|
-
// Copyright (C) 2017 Ericsson and others.
|
|
7
|
-
//
|
|
8
|
-
// This program and the accompanying materials are made available under the
|
|
9
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
10
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
11
|
-
//
|
|
12
|
-
// This Source Code may also be made available under the following Secondary
|
|
13
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
14
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
15
|
-
// with the GNU Classpath Exception which is available at
|
|
16
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
17
|
-
//
|
|
18
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
19
|
-
// *****************************************************************************
|
|
20
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
21
|
-
const common_1 = require("@theia/core/lib/common");
|
|
22
|
-
const logger_1 = require("@theia/core/lib/common/logger");
|
|
23
|
-
const numbers_1 = require("@theia/core/lib/common/numbers");
|
|
24
|
-
let ProcessManager = class ProcessManager {
|
|
25
|
-
constructor(logger) {
|
|
26
|
-
this.logger = logger;
|
|
27
|
-
this.processes = new Map();
|
|
28
|
-
this.deleteEmitter = new common_1.Emitter();
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Registers the given process into this manager. Both on process termination and on error,
|
|
32
|
-
* the process will be automatically removed from the manager.
|
|
33
|
-
*
|
|
34
|
-
* @param process the process to register.
|
|
35
|
-
*/
|
|
36
|
-
register(process) {
|
|
37
|
-
const id = this.generateId();
|
|
38
|
-
this.processes.set(id, process);
|
|
39
|
-
process.onError(() => this.unregister(process));
|
|
40
|
-
return id;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* @returns a random id for a process that is not assigned to a different process yet.
|
|
44
|
-
*/
|
|
45
|
-
generateId() {
|
|
46
|
-
let id = undefined;
|
|
47
|
-
while (id === undefined) {
|
|
48
|
-
const candidate = Math.floor(Math.random() * numbers_1.MAX_SAFE_INTEGER);
|
|
49
|
-
if (!this.processes.has(candidate)) {
|
|
50
|
-
id = candidate;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
return id;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Removes the process from this process manager. Invoking this method, will make
|
|
57
|
-
* sure that the process is terminated before eliminating it from the manager's cache.
|
|
58
|
-
*
|
|
59
|
-
* @param process the process to unregister from this process manager.
|
|
60
|
-
*/
|
|
61
|
-
unregister(process) {
|
|
62
|
-
const processLabel = this.getProcessLabel(process);
|
|
63
|
-
this.logger.debug(`Unregistering process. ${processLabel}`);
|
|
64
|
-
if (!process.killed) {
|
|
65
|
-
this.logger.debug(`Ensuring process termination. ${processLabel}`);
|
|
66
|
-
process.kill();
|
|
67
|
-
}
|
|
68
|
-
if (this.processes.delete(process.id)) {
|
|
69
|
-
this.deleteEmitter.fire(process.id);
|
|
70
|
-
this.logger.debug(`The process was successfully unregistered. ${processLabel}`);
|
|
71
|
-
}
|
|
72
|
-
else {
|
|
73
|
-
this.logger.warn(`This process was not registered or was already unregistered. ${processLabel}`);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
get(id) {
|
|
77
|
-
return this.processes.get(id);
|
|
78
|
-
}
|
|
79
|
-
get onDelete() {
|
|
80
|
-
return this.deleteEmitter.event;
|
|
81
|
-
}
|
|
82
|
-
onStop() {
|
|
83
|
-
for (const process of this.processes.values()) {
|
|
84
|
-
try {
|
|
85
|
-
this.unregister(process);
|
|
86
|
-
}
|
|
87
|
-
catch (error) {
|
|
88
|
-
this.logger.error(`Error occurred when unregistering process. ${this.getProcessLabel(process)}`, error);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
getProcessLabel(process) {
|
|
93
|
-
return `[ID: ${process.id}]`;
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
exports.ProcessManager = ProcessManager;
|
|
97
|
-
exports.ProcessManager = ProcessManager = tslib_1.__decorate([
|
|
98
|
-
(0, inversify_1.injectable)(),
|
|
99
|
-
tslib_1.__param(0, (0, inversify_1.inject)(logger_1.ILogger)),
|
|
100
|
-
tslib_1.__param(0, (0, inversify_1.named)('process')),
|
|
101
|
-
tslib_1.__metadata("design:paramtypes", [Object])
|
|
102
|
-
], ProcessManager);
|
|
103
|
-
//# sourceMappingURL=process-manager.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"process-manager.js","sourceRoot":"","sources":["../../src/node/process-manager.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,gFAAgF;AAChF,gFAAgF;AAChF,4DAAyE;AACzE,mDAAwD;AACxD,0DAAwD;AAGxD,4DAAkE;AAI3D,IAAM,cAAc,GAApB,MAAM,cAAc;IAKvB,YACiD,MAAe;QAAf,WAAM,GAAN,MAAM,CAAS;QAE5D,IAAI,CAAC,SAAS,GAAG,IAAI,GAAG,EAAE,CAAC;QAC3B,IAAI,CAAC,aAAa,GAAG,IAAI,gBAAO,EAAU,CAAC;IAC/C,CAAC;IAED;;;;;OAKG;IACH,QAAQ,CA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aAAM,CAAC;YACJ,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,gEAAgE,YAAY,EAAE,CAAC,CAAC;QACrG,CAAC;IACL,CAAC;IAED,GAAG,CAAC,EAAU;QACV,OAAO,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAClC,CAAC;IAED,IAAI,QAAQ;QACR,OAAO,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC;IACpC,CAAC;IAED,MAAM;QACF,KAAK,MAAM,OAAO,IAAI,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,EAAE,CAAC;YAC5C,IAAI,CAAC;gBACD,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;YAC7B,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACb,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,8CAA8C,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;YAC5G,CAAC;QACL,CAAC;IACL,CAAC;IAEO,eAAe,CAAC,OAAuB;QAC3C,OAAO,QAAQ,OAAO,CAAC,EAAE,GAAG,CAAC;IACjC,CAAC;CAEJ,CAAA;AAlFY,wCAAc;yBAAd,cAAc;IAD1B,IAAA,sBAAU,GAAE;IAOJ,mBAAA,IAAA,kBAAM,EAAC,gBAAO,CAAC,CAAA;IAAE,mBAAA,IAAA,iBAAK,EAAC,SAAS,CAAC,CAAA;;GAN7B,cAAc,CAkF1B"}
|
package/lib/node/process.d.ts
DELETED
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { ILogger, Emitter, Event } from '@theia/core/lib/common';
|
|
3
|
-
import { Readable, Writable } from 'stream';
|
|
4
|
-
import { IProcessStartEvent, IProcessExitEvent, ProcessErrorEvent, ProcessType, ManagedProcessManager, ManagedProcess } from '../common/process-manager-types';
|
|
5
|
-
export { IProcessStartEvent, IProcessExitEvent, ProcessErrorEvent, ProcessType };
|
|
6
|
-
/**
|
|
7
|
-
* Options to spawn a new process (`spawn`).
|
|
8
|
-
*
|
|
9
|
-
* For more information please refer to the spawn function of Node's
|
|
10
|
-
* child_process module:
|
|
11
|
-
*
|
|
12
|
-
* https://nodejs.org/api/child_process.html#child_process_child_process_spawn_command_args_options
|
|
13
|
-
*/
|
|
14
|
-
export interface ProcessOptions {
|
|
15
|
-
readonly command: string;
|
|
16
|
-
args?: string[];
|
|
17
|
-
options?: {
|
|
18
|
-
[key: string]: any;
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Options to fork a new process using the current Node interpreter (`fork`).
|
|
23
|
-
*
|
|
24
|
-
* For more information please refer to the fork function of Node's
|
|
25
|
-
* child_process module:
|
|
26
|
-
*
|
|
27
|
-
* https://nodejs.org/api/child_process.html#child_process_child_process_fork_modulepath_args_options
|
|
28
|
-
*/
|
|
29
|
-
export interface ForkOptions {
|
|
30
|
-
readonly modulePath: string;
|
|
31
|
-
args?: string[];
|
|
32
|
-
options?: object;
|
|
33
|
-
}
|
|
34
|
-
export declare abstract class Process implements ManagedProcess {
|
|
35
|
-
protected readonly processManager: ManagedProcessManager;
|
|
36
|
-
protected readonly logger: ILogger;
|
|
37
|
-
protected readonly type: ProcessType;
|
|
38
|
-
protected readonly options: ProcessOptions | ForkOptions;
|
|
39
|
-
readonly id: number;
|
|
40
|
-
protected readonly startEmitter: Emitter<IProcessStartEvent>;
|
|
41
|
-
protected readonly exitEmitter: Emitter<IProcessExitEvent>;
|
|
42
|
-
protected readonly closeEmitter: Emitter<IProcessExitEvent>;
|
|
43
|
-
protected readonly errorEmitter: Emitter<ProcessErrorEvent>;
|
|
44
|
-
protected _killed: boolean;
|
|
45
|
-
/**
|
|
46
|
-
* The OS process id.
|
|
47
|
-
*/
|
|
48
|
-
abstract readonly pid: number;
|
|
49
|
-
/**
|
|
50
|
-
* The stdout stream.
|
|
51
|
-
*/
|
|
52
|
-
abstract readonly outputStream: Readable;
|
|
53
|
-
/**
|
|
54
|
-
* The stderr stream.
|
|
55
|
-
*/
|
|
56
|
-
abstract readonly errorStream: Readable;
|
|
57
|
-
/**
|
|
58
|
-
* The stdin stream.
|
|
59
|
-
*/
|
|
60
|
-
abstract readonly inputStream: Writable;
|
|
61
|
-
constructor(processManager: ManagedProcessManager, logger: ILogger, type: ProcessType, options: ProcessOptions | ForkOptions);
|
|
62
|
-
abstract kill(signal?: string): void;
|
|
63
|
-
get killed(): boolean;
|
|
64
|
-
get onStart(): Event<IProcessStartEvent>;
|
|
65
|
-
/**
|
|
66
|
-
* Wait for the process to exit, streams can still emit data.
|
|
67
|
-
*/
|
|
68
|
-
get onExit(): Event<IProcessExitEvent>;
|
|
69
|
-
get onError(): Event<ProcessErrorEvent>;
|
|
70
|
-
/**
|
|
71
|
-
* Waits for both process exit and for all the streams to be closed.
|
|
72
|
-
*/
|
|
73
|
-
get onClose(): Event<IProcessExitEvent>;
|
|
74
|
-
protected emitOnStarted(): void;
|
|
75
|
-
/**
|
|
76
|
-
* Emit the onExit event for this process. Only one of code and signal
|
|
77
|
-
* should be defined.
|
|
78
|
-
*/
|
|
79
|
-
protected emitOnExit(code?: number, signal?: string): void;
|
|
80
|
-
/**
|
|
81
|
-
* Emit the onClose event for this process. Only one of code and signal
|
|
82
|
-
* should be defined.
|
|
83
|
-
*/
|
|
84
|
-
protected emitOnClose(code?: number, signal?: string): void;
|
|
85
|
-
protected handleOnExit(event: IProcessExitEvent): void;
|
|
86
|
-
protected emitOnError(err: ProcessErrorEvent): void;
|
|
87
|
-
protected emitOnErrorAsync(error: ProcessErrorEvent): Promise<void>;
|
|
88
|
-
protected handleOnError(error: ProcessErrorEvent): void;
|
|
89
|
-
protected isForkOptions(options: unknown): options is ForkOptions;
|
|
90
|
-
protected readonly initialCwd: string;
|
|
91
|
-
/**
|
|
92
|
-
* @returns the current working directory as a URI (usually file:// URI)
|
|
93
|
-
*/
|
|
94
|
-
getCwdURI(): Promise<string>;
|
|
95
|
-
}
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,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI;IAI3D,SAAS,CAAC,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,IAAI;IAStD,SAAS,CAAC,WAAW,CAAC,GAAG,EAAE,iBAAiB,GAAG,IAAI;cAKnC,gBAAgB,CAAC,KAAK,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;IAIzE,SAAS,CAAC,aAAa,CAAC,KAAK,EAAE,iBAAiB,GAAG,IAAI;IAKvD,SAAS,CAAC,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,IAAI,WAAW;IAIjE,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAEtC;;OAEG;IACI,SAAS,IAAI,OAAO,CAAC,MAAM,CAAC;CA2BtC"}
|
package/lib/node/process.js
DELETED
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2017 Ericsson 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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.Process = exports.ProcessType = void 0;
|
|
19
|
-
const tslib_1 = require("tslib");
|
|
20
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
21
|
-
const common_1 = require("@theia/core/lib/common");
|
|
22
|
-
const node_1 = require("@theia/core/lib/node");
|
|
23
|
-
const core_1 = require("@theia/core");
|
|
24
|
-
const child_process_1 = require("child_process");
|
|
25
|
-
const fs = require("fs");
|
|
26
|
-
const process_manager_types_1 = require("../common/process-manager-types");
|
|
27
|
-
Object.defineProperty(exports, "ProcessType", { enumerable: true, get: function () { return process_manager_types_1.ProcessType; } });
|
|
28
|
-
let Process = class Process {
|
|
29
|
-
constructor(processManager, logger, type, options) {
|
|
30
|
-
this.processManager = processManager;
|
|
31
|
-
this.logger = logger;
|
|
32
|
-
this.type = type;
|
|
33
|
-
this.options = options;
|
|
34
|
-
this.startEmitter = new common_1.Emitter();
|
|
35
|
-
this.exitEmitter = new common_1.Emitter();
|
|
36
|
-
this.closeEmitter = new common_1.Emitter();
|
|
37
|
-
this.errorEmitter = new common_1.Emitter();
|
|
38
|
-
this._killed = false;
|
|
39
|
-
this.id = this.processManager.register(this);
|
|
40
|
-
this.initialCwd = options && options.options && 'cwd' in options.options && options.options['cwd'].toString() || __dirname;
|
|
41
|
-
}
|
|
42
|
-
get killed() {
|
|
43
|
-
return this._killed;
|
|
44
|
-
}
|
|
45
|
-
get onStart() {
|
|
46
|
-
return this.startEmitter.event;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Wait for the process to exit, streams can still emit data.
|
|
50
|
-
*/
|
|
51
|
-
get onExit() {
|
|
52
|
-
return this.exitEmitter.event;
|
|
53
|
-
}
|
|
54
|
-
get onError() {
|
|
55
|
-
return this.errorEmitter.event;
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Waits for both process exit and for all the streams to be closed.
|
|
59
|
-
*/
|
|
60
|
-
get onClose() {
|
|
61
|
-
return this.closeEmitter.event;
|
|
62
|
-
}
|
|
63
|
-
emitOnStarted() {
|
|
64
|
-
this.startEmitter.fire({});
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Emit the onExit event for this process. Only one of code and signal
|
|
68
|
-
* should be defined.
|
|
69
|
-
*/
|
|
70
|
-
emitOnExit(code, signal) {
|
|
71
|
-
const exitEvent = { code, signal };
|
|
72
|
-
this.handleOnExit(exitEvent);
|
|
73
|
-
this.exitEmitter.fire(exitEvent);
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* Emit the onClose event for this process. Only one of code and signal
|
|
77
|
-
* should be defined.
|
|
78
|
-
*/
|
|
79
|
-
emitOnClose(code, signal) {
|
|
80
|
-
this.closeEmitter.fire({ code, signal });
|
|
81
|
-
}
|
|
82
|
-
handleOnExit(event) {
|
|
83
|
-
this._killed = true;
|
|
84
|
-
const signalSuffix = event.signal ? `, signal: ${event.signal}` : '';
|
|
85
|
-
const executable = this.isForkOptions(this.options) ? this.options.modulePath : this.options.command;
|
|
86
|
-
this.logger.debug(`Process ${this.pid} has exited with code ${event.code}${signalSuffix}.`, executable, this.options.args);
|
|
87
|
-
}
|
|
88
|
-
emitOnError(err) {
|
|
89
|
-
this.handleOnError(err);
|
|
90
|
-
this.errorEmitter.fire(err);
|
|
91
|
-
}
|
|
92
|
-
async emitOnErrorAsync(error) {
|
|
93
|
-
process.nextTick(this.emitOnError.bind(this), error);
|
|
94
|
-
}
|
|
95
|
-
handleOnError(error) {
|
|
96
|
-
this._killed = true;
|
|
97
|
-
this.logger.error(error);
|
|
98
|
-
}
|
|
99
|
-
isForkOptions(options) {
|
|
100
|
-
return (0, common_1.isObject)(options) && !!options.modulePath;
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* @returns the current working directory as a URI (usually file:// URI)
|
|
104
|
-
*/
|
|
105
|
-
getCwdURI() {
|
|
106
|
-
if (core_1.isOSX) {
|
|
107
|
-
return new Promise(resolve => {
|
|
108
|
-
(0, child_process_1.exec)('lsof -OPln -p ' + this.pid + ' | grep cwd', (error, stdout, stderr) => {
|
|
109
|
-
if (stdout !== '') {
|
|
110
|
-
resolve(node_1.FileUri.create(stdout.substring(stdout.indexOf('/'), stdout.length - 1)).toString());
|
|
111
|
-
}
|
|
112
|
-
else {
|
|
113
|
-
resolve(node_1.FileUri.create(this.initialCwd).toString());
|
|
114
|
-
}
|
|
115
|
-
});
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
else if (!core_1.isWindows) {
|
|
119
|
-
return new Promise(resolve => {
|
|
120
|
-
fs.readlink('/proc/' + this.pid + '/cwd', (err, linkedstr) => {
|
|
121
|
-
if (err || !linkedstr) {
|
|
122
|
-
resolve(node_1.FileUri.create(this.initialCwd).toString());
|
|
123
|
-
}
|
|
124
|
-
else {
|
|
125
|
-
resolve(node_1.FileUri.create(linkedstr).toString());
|
|
126
|
-
}
|
|
127
|
-
});
|
|
128
|
-
});
|
|
129
|
-
}
|
|
130
|
-
else {
|
|
131
|
-
return new Promise(resolve => {
|
|
132
|
-
resolve(node_1.FileUri.create(this.initialCwd).toString());
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
};
|
|
137
|
-
exports.Process = Process;
|
|
138
|
-
exports.Process = Process = tslib_1.__decorate([
|
|
139
|
-
(0, inversify_1.injectable)(),
|
|
140
|
-
tslib_1.__param(0, (0, inversify_1.unmanaged)()),
|
|
141
|
-
tslib_1.__param(1, (0, inversify_1.unmanaged)()),
|
|
142
|
-
tslib_1.__param(2, (0, inversify_1.unmanaged)()),
|
|
143
|
-
tslib_1.__param(3, (0, inversify_1.unmanaged)()),
|
|
144
|
-
tslib_1.__metadata("design:paramtypes", [Object, Object, Number, Object])
|
|
145
|
-
], Process);
|
|
146
|
-
//# sourceMappingURL=process.js.map
|
package/lib/node/process.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"process.js","sourceRoot":"","sources":["../../src/node/process.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EA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,CAAC,GAAG,GAAG,MAAM,EAAE,CAAC,GAAG,EAAE,SAAS,EAAE,EAAE;oBACzD,IAAI,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;wBACpB,OAAO,CAAC,cAAO,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;oBACxD,CAAC;yBAAM,CAAC;wBACJ,OAAO,CAAC,cAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;oBAClD,CAAC;gBACL,CAAC,CAAC,CAAC;YACP,CAAC,CAAC,CAAC;QACP,CAAC;aAAM,CAAC;YACJ,OAAO,IAAI,OAAO,CAAS,OAAO,CAAC,EAAE;gBACjC,OAAO,CAAC,cAAO,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;YACxD,CAAC,CAAC,CAAC;QACP,CAAC;IACL,CAAC;CACJ,CAAA;AApJqB,0BAAO;kBAAP,OAAO;IAD5B,IAAA,sBAAU,GAAE;IA+BJ,mBAAA,IAAA,qBAAS,GAAE,CAAA;IACX,mBAAA,IAAA,qBAAS,GAAE,CAAA;IACX,mBAAA,IAAA,qBAAS,GAAE,CAAA;IACX,mBAAA,IAAA,qBAAS,GAAE,CAAA;;GAjCE,OAAO,CAoJ5B"}
|
package/lib/node/pseudo-pty.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { IPty } from 'node-pty';
|
|
2
|
-
import { Event } from '@theia/core';
|
|
3
|
-
export declare class PseudoPty implements IPty {
|
|
4
|
-
readonly pid: number;
|
|
5
|
-
readonly cols: number;
|
|
6
|
-
readonly rows: number;
|
|
7
|
-
readonly process: string;
|
|
8
|
-
handleFlowControl: boolean;
|
|
9
|
-
readonly onData: Event<string>;
|
|
10
|
-
readonly onExit: Event<{
|
|
11
|
-
exitCode: number;
|
|
12
|
-
signal?: number;
|
|
13
|
-
}>;
|
|
14
|
-
on(event: string, listener: (data: string) => void): void;
|
|
15
|
-
on(event: string, listener: (exitCode: number, signal?: number) => void): void;
|
|
16
|
-
on(event: string, listener: (error?: string) => void): void;
|
|
17
|
-
resize(columns: number, rows: number): void;
|
|
18
|
-
write(data: string): void;
|
|
19
|
-
kill(signal?: string): void;
|
|
20
|
-
pause(): void;
|
|
21
|
-
resume(): void;
|
|
22
|
-
clear(): void;
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=pseudo-pty.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pseudo-pty.d.ts","sourceRoot":"","sources":["../../src/node/pseudo-pty.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,qBAAa,SAAU,YAAW,IAAI;IAElC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAM;IAE1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAM;IAE3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAM;IAE3B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAM;IAE9B,iBAAiB,UAAS;IAE1B,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAc;IAE5C,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAc;IAE3E,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,GAAG,IAAI;IAEzD,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,GAAG,IAAI;IAE9E,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,GAAG,IAAI;IAK3D,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI;IAE3C,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAEzB,IAAI,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI;IAE3B,KAAK,IAAI,IAAI;IAEb,MAAM,IAAI,IAAI;IAEd,KAAK,IAAI,IAAI;CAChB"}
|
package/lib/node/pseudo-pty.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2020 Alibaba Inc. 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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.PseudoPty = void 0;
|
|
19
|
-
const core_1 = require("@theia/core");
|
|
20
|
-
class PseudoPty {
|
|
21
|
-
constructor() {
|
|
22
|
-
this.pid = -1;
|
|
23
|
-
this.cols = -1;
|
|
24
|
-
this.rows = -1;
|
|
25
|
-
this.process = '';
|
|
26
|
-
this.handleFlowControl = false;
|
|
27
|
-
this.onData = core_1.Event.None;
|
|
28
|
-
this.onExit = core_1.Event.None;
|
|
29
|
-
}
|
|
30
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
31
|
-
on(event, listener) { }
|
|
32
|
-
resize(columns, rows) { }
|
|
33
|
-
write(data) { }
|
|
34
|
-
kill(signal) { }
|
|
35
|
-
pause() { }
|
|
36
|
-
resume() { }
|
|
37
|
-
clear() { }
|
|
38
|
-
}
|
|
39
|
-
exports.PseudoPty = PseudoPty;
|
|
40
|
-
//# sourceMappingURL=pseudo-pty.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pseudo-pty.js","sourceRoot":"","sources":["../../src/node/pseudo-pty.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,8CAA8C;AAC9C,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;;;AAGhF,sCAAoC;AAEpC,MAAa,SAAS;IAAtB;QAEa,QAAG,GAAW,CAAC,CAAC,CAAC;QAEjB,SAAI,GAAW,CAAC,CAAC,CAAC;QAElB,SAAI,GAAW,CAAC,CAAC,CAAC;QAElB,YAAO,GAAW,EAAE,CAAC;QAE9B,sBAAiB,GAAG,KAAK,CAAC;QAEjB,WAAM,GAAkB,YAAK,CAAC,IAAI,CAAC;QAEnC,WAAM,GAAiD,YAAK,CAAC,IAAI,CAAC;IAsB/E,CAAC;IAdG,8DAA8D;IAC9D,EAAE,CAAC,KAAa,EAAE,QAAkC,IAAU,CAAC;IAE/D,MAAM,CAAC,OAAe,EAAE,IAAY,IAAU,CAAC;IAE/C,KAAK,CAAC,IAAY,IAAU,CAAC;IAE7B,IAAI,CAAC,MAAe,IAAU,CAAC;IAE/B,KAAK,KAAW,CAAC;IAEjB,MAAM,KAAW,CAAC;IAElB,KAAK,KAAW,CAAC;CACpB;AApCD,8BAoCC"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="node" />
|
|
3
|
-
import { ProcessManager } from './process-manager';
|
|
4
|
-
import { ILogger } from '@theia/core/lib/common';
|
|
5
|
-
import { Process, ProcessOptions, ForkOptions } from './process';
|
|
6
|
-
import { ChildProcess } from 'child_process';
|
|
7
|
-
import * as stream from 'stream';
|
|
8
|
-
export { DevNullStream } from './dev-null-stream';
|
|
9
|
-
export declare const RawProcessOptions: unique symbol;
|
|
10
|
-
/**
|
|
11
|
-
* Options to spawn a new process (`spawn`).
|
|
12
|
-
*
|
|
13
|
-
* For more information please refer to the spawn function of Node's
|
|
14
|
-
* child_process module:
|
|
15
|
-
*
|
|
16
|
-
* https://nodejs.org/api/child_process.html#child_process_child_process_spawn_command_args_options
|
|
17
|
-
*/
|
|
18
|
-
export interface RawProcessOptions extends ProcessOptions {
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Options to fork a new process using the current Node interpreter (`fork`).
|
|
22
|
-
*
|
|
23
|
-
* For more information please refer to the fork function of Node's
|
|
24
|
-
* `child_process` module:
|
|
25
|
-
*
|
|
26
|
-
* https://nodejs.org/api/child_process.html#child_process_child_process_fork_modulepath_args_options
|
|
27
|
-
*/
|
|
28
|
-
export interface RawForkOptions extends ForkOptions {
|
|
29
|
-
}
|
|
30
|
-
export declare const RawProcessFactory: unique symbol;
|
|
31
|
-
export interface RawProcessFactory {
|
|
32
|
-
(options: RawProcessOptions | RawForkOptions): RawProcess;
|
|
33
|
-
}
|
|
34
|
-
export declare class RawProcess extends Process {
|
|
35
|
-
/**
|
|
36
|
-
* If the process fails to launch, it will be undefined.
|
|
37
|
-
*/
|
|
38
|
-
readonly process: ChildProcess | undefined;
|
|
39
|
-
readonly outputStream: stream.Readable;
|
|
40
|
-
readonly errorStream: stream.Readable;
|
|
41
|
-
readonly inputStream: stream.Writable;
|
|
42
|
-
constructor(// eslint-disable-next-line @typescript-eslint/indent
|
|
43
|
-
options: RawProcessOptions | RawForkOptions, processManager: ProcessManager, logger: ILogger);
|
|
44
|
-
get pid(): number;
|
|
45
|
-
kill(signal?: string): void;
|
|
46
|
-
}
|
|
47
|
-
//# sourceMappingURL=raw-process.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"raw-process.d.ts","sourceRoot":"","sources":["../../src/node/raw-process.ts"],"names":[],"mappings":";;AAiBA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAe,cAAc,EAAE,WAAW,EAAqB,MAAM,WAAW,CAAC;AACjG,OAAO,EAAE,YAAY,EAAe,MAAM,eAAe,CAAC;AAC1D,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAGjC,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGlD,eAAO,MAAM,iBAAiB,eAA8B,CAAC;AAE7D;;;;;;;GAOG;AACH,MAAM,WAAW,iBAAkB,SAAQ,cAAc;CACxD;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,cAAe,SAAQ,WAAW;CAClD;AAED,eAAO,MAAM,iBAAiB,eAA8B,CAAC;AAC7D,MAAM,WAAW,iBAAiB;IAC9B,CAAC,OAAO,EAAE,iBAAiB,GAAG,cAAc,GAAG,UAAU,CAAC;CAC7D;AAED,qBACa,UAAW,SAAQ,OAAO;IAEnC;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,YAAY,GAAG,SAAS,CAAC;IAE3C,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC,QAAQ,CAAC;IACvC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC,QAAQ,CAAC;IACtC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC,QAAQ,CAAC;gBAEzB,qDAAqD;IACnC,OAAO,EAAE,iBAAiB,GAAG,cAAc,EAC9C,cAAc,EAAE,cAAc,EACnB,MAAM,EAAE,OAAO;IAuEtD,IAAI,GAAG,IAAI,MAAM,CAKhB;IAED,IAAI,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI;CAM9B"}
|
package/lib/node/raw-process.js
DELETED
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2017 Ericsson 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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.RawProcess = exports.RawProcessFactory = exports.RawProcessOptions = exports.DevNullStream = void 0;
|
|
19
|
-
const tslib_1 = require("tslib");
|
|
20
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
21
|
-
const process_manager_1 = require("./process-manager");
|
|
22
|
-
const common_1 = require("@theia/core/lib/common");
|
|
23
|
-
const process_1 = require("./process");
|
|
24
|
-
const child_process_1 = require("child_process");
|
|
25
|
-
// The class was here before, exporting to not break anything.
|
|
26
|
-
var dev_null_stream_1 = require("./dev-null-stream");
|
|
27
|
-
Object.defineProperty(exports, "DevNullStream", { enumerable: true, get: function () { return dev_null_stream_1.DevNullStream; } });
|
|
28
|
-
const dev_null_stream_2 = require("./dev-null-stream");
|
|
29
|
-
exports.RawProcessOptions = Symbol('RawProcessOptions');
|
|
30
|
-
exports.RawProcessFactory = Symbol('RawProcessFactory');
|
|
31
|
-
let RawProcess = class RawProcess extends process_1.Process {
|
|
32
|
-
constructor(options, processManager, logger) {
|
|
33
|
-
super(processManager, logger, process_1.ProcessType.Raw, options);
|
|
34
|
-
const executable = this.isForkOptions(options) ? options.modulePath : options.command;
|
|
35
|
-
this.logger.debug(`Starting raw process: ${executable},`
|
|
36
|
-
+ ` with args: ${options.args ? options.args.join(' ') : ''}, `
|
|
37
|
-
+ ` with options: ${JSON.stringify(options.options)}`);
|
|
38
|
-
// About catching errors: spawn will sometimes throw directly
|
|
39
|
-
// (EACCES on Linux), sometimes return a Process object with the pid
|
|
40
|
-
// property undefined (ENOENT on Linux) and then emit an 'error' event.
|
|
41
|
-
// For now, we try to normalize that into always emitting an 'error'
|
|
42
|
-
// event.
|
|
43
|
-
try {
|
|
44
|
-
if (this.isForkOptions(options)) {
|
|
45
|
-
this.process = (0, child_process_1.fork)(options.modulePath, options.args || [], options.options || {});
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
this.process = (0, child_process_1.spawn)(options.command, options.args || [], options.options || {});
|
|
49
|
-
}
|
|
50
|
-
this.process.on('error', (error) => {
|
|
51
|
-
error.code = error.code || 'Unknown error';
|
|
52
|
-
this.emitOnError(error);
|
|
53
|
-
});
|
|
54
|
-
// When no stdio option is passed, it is null by default.
|
|
55
|
-
this.outputStream = this.process.stdout || new dev_null_stream_2.DevNullStream({ autoDestroy: true });
|
|
56
|
-
this.inputStream = this.process.stdin || new dev_null_stream_2.DevNullStream({ autoDestroy: true });
|
|
57
|
-
this.errorStream = this.process.stderr || new dev_null_stream_2.DevNullStream({ autoDestroy: true });
|
|
58
|
-
this.process.on('exit', (exitCode, signal) => {
|
|
59
|
-
// node's child_process exit sets the unused parameter to null,
|
|
60
|
-
// but we want it to be undefined instead.
|
|
61
|
-
this.emitOnExit(typeof exitCode === 'number' ? exitCode : undefined, typeof signal === 'string' ? signal : undefined);
|
|
62
|
-
this.processManager.unregister(this);
|
|
63
|
-
});
|
|
64
|
-
this.process.on('close', (exitCode, signal) => {
|
|
65
|
-
// node's child_process exit sets the unused parameter to null,
|
|
66
|
-
// but we want it to be undefined instead.
|
|
67
|
-
this.emitOnClose(typeof exitCode === 'number' ? exitCode : undefined, typeof signal === 'string' ? signal : undefined);
|
|
68
|
-
});
|
|
69
|
-
if (this.process.pid !== undefined) {
|
|
70
|
-
process.nextTick(this.emitOnStarted.bind(this));
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
catch (error) {
|
|
74
|
-
/* When an error is thrown, set up some fake streams, so the client
|
|
75
|
-
code doesn't break because these field are undefined. */
|
|
76
|
-
this.outputStream = new dev_null_stream_2.DevNullStream({ autoDestroy: true });
|
|
77
|
-
this.inputStream = new dev_null_stream_2.DevNullStream({ autoDestroy: true });
|
|
78
|
-
this.errorStream = new dev_null_stream_2.DevNullStream({ autoDestroy: true });
|
|
79
|
-
/* Call the client error handler, but first give them a chance to register it. */
|
|
80
|
-
this.emitOnErrorAsync(error);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
get pid() {
|
|
84
|
-
if (!this.process || !this.process.pid) {
|
|
85
|
-
throw new Error('process did not start correctly');
|
|
86
|
-
}
|
|
87
|
-
return this.process.pid;
|
|
88
|
-
}
|
|
89
|
-
kill(signal) {
|
|
90
|
-
if (this.process && this.killed === false) {
|
|
91
|
-
this.process.kill(signal);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
};
|
|
95
|
-
exports.RawProcess = RawProcess;
|
|
96
|
-
exports.RawProcess = RawProcess = tslib_1.__decorate([
|
|
97
|
-
(0, inversify_1.injectable)(),
|
|
98
|
-
tslib_1.__param(0, (0, inversify_1.inject)(exports.RawProcessOptions)),
|
|
99
|
-
tslib_1.__param(1, (0, inversify_1.inject)(process_manager_1.ProcessManager)),
|
|
100
|
-
tslib_1.__param(2, (0, inversify_1.inject)(common_1.ILogger)),
|
|
101
|
-
tslib_1.__param(2, (0, inversify_1.named)('process')),
|
|
102
|
-
tslib_1.__metadata("design:paramtypes", [Object, process_manager_1.ProcessManager, Object])
|
|
103
|
-
], RawProcess);
|
|
104
|
-
//# sourceMappingURL=raw-process.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"raw-process.js","sourceRoot":"","sources":["../../src/node/raw-process.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,gFAAgF;AAChF,gFAAgF;;;;AAEhF,4DAAyE;AACzE,uDAAmD;AACnD,mDAAiD;AACjD,uCAAiG;AACjG,iDAA0D;AAG1D,8DAA8D;AAC9D,qDAAkD;AAAzC,gHAAA,aAAa,OAAA;AACtB,uDAAkD;AAErC,QAAA,iBAAiB,GAAG,MAAM,CAAC,mBAAmB,CAAC,CAAC;AAwBhD,QAAA,iBAAiB,GAAG,MAAM,CAAC,mBAAmB,CAAC,CAAC;AAMtD,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,iBAAO;IAWnC,YAC+B,OAA2C,EAC9C,cAA8B,EACnB,MAAe;QAElD,KAAK,CAAC,cAAc,EAAE,MAAM,EAAE,qBAAW,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;QACxD,MAAM,UAAU,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;QAEtF,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,yBAAyB,UAAU,GAAG;cAClD,eAAe,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG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