@theia/task 1.74.0-next.6 → 1.74.0-next.60
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-test-container.d.ts","sourceRoot":"","sources":["../../../src/node/test/task-test-container.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"task-test-container.d.ts","sourceRoot":"","sources":["../../../src/node/test/task-test-container.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAczD,wBAAgB,uBAAuB,IAAI,SAAS,CA6BnD"}
|
|
@@ -25,8 +25,9 @@ const task_backend_module_1 = require("../task-backend-module");
|
|
|
25
25
|
const filesystem_backend_module_1 = require("@theia/filesystem/lib/node/filesystem-backend-module");
|
|
26
26
|
const workspace_backend_module_1 = require("@theia/workspace/lib/node/workspace-backend-module");
|
|
27
27
|
const messaging_backend_module_1 = require("@theia/core/lib/node/messaging/messaging-backend-module");
|
|
28
|
+
const node_1 = require("@theia/core/lib/node");
|
|
28
29
|
const application_package_1 = require("@theia/core/shared/@theia/application-package");
|
|
29
|
-
const
|
|
30
|
+
const node_2 = require("@theia/process/lib/node");
|
|
30
31
|
const process_utils_1 = require("@theia/core/lib/node/process-utils");
|
|
31
32
|
function createTaskTestContainer() {
|
|
32
33
|
const testContainer = new inversify_1.Container();
|
|
@@ -39,14 +40,20 @@ function createTaskTestContainer() {
|
|
|
39
40
|
testContainer.load(filesystem_backend_module_1.default);
|
|
40
41
|
testContainer.load(workspace_backend_module_1.default);
|
|
41
42
|
testContainer.load(terminal_backend_module_1.default);
|
|
43
|
+
// The filesystem backend contributions require an `HttpConnectionValidator` (bound by the browser/electron
|
|
44
|
+
// hosting modules, which are not loaded here). Bind a no-op so those contributions can be constructed.
|
|
45
|
+
const noopConnectionValidator = {
|
|
46
|
+
validateRequest: (_req, _res, next) => next()
|
|
47
|
+
};
|
|
48
|
+
testContainer.bind(node_1.HttpConnectionValidator).toConstantValue(noopConnectionValidator);
|
|
42
49
|
// Make it easier to debug processes.
|
|
43
|
-
testContainer.rebind(
|
|
50
|
+
testContainer.rebind(node_2.TerminalProcess).to(TestTerminalProcess);
|
|
44
51
|
testContainer.rebind(process_utils_1.ProcessUtils).toConstantValue(new class extends process_utils_1.ProcessUtils {
|
|
45
52
|
terminateProcessTree() { } // don't actually kill the tree, it breaks the tests.
|
|
46
53
|
});
|
|
47
54
|
return testContainer;
|
|
48
55
|
}
|
|
49
|
-
class TestTerminalProcess extends
|
|
56
|
+
class TestTerminalProcess extends node_2.TerminalProcess {
|
|
50
57
|
emitOnStarted() {
|
|
51
58
|
if (process.env['THEIA_TASK_TEST_DEBUG']) {
|
|
52
59
|
console.log(`START ${this.id} ${JSON.stringify([this.executable, this.options.commandLine, ...this.arguments])}`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-test-container.js","sourceRoot":"","sources":["../../../src/node/test/task-test-container.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"task-test-container.js","sourceRoot":"","sources":["../../../src/node/test/task-test-container.ts"],"names":[],"mappings":";;AA6BA,0DA6BC;AA1DD,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,4DAAyD;AACzD,sFAAwE;AACxE,gGAA2F;AAC3F,2FAAkF;AAClF,8FAAqF;AACrF,gEAAuD;AACvD,oGAA2F;AAC3F,iGAAiF;AACjF,sGAAiG;AACjG,+CAA+D;AAC/D,uFAAmF;AACnF,kDAA0D;AAC1D,sEAAkE;AAElE,SAAgB,uBAAuB;IACnC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S,IAAI,CAAC,EAAE,IAAI,IAAI,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC;YAClH,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,EAAE,YAAY,IAAI,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC;QACxG,CAAC;QACD,KAAK,CAAC,aAAa,EAAE,CAAC;IAC1B,CAAC;CAEJ"}
|
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/task",
|
|
3
|
-
"version": "1.74.0-next.
|
|
3
|
+
"version": "1.74.0-next.60+46ce275d4",
|
|
4
4
|
"description": "Theia - Task extension. This extension adds support for executing raw or terminal processes in the backend.",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@theia/core": "1.74.0-next.
|
|
7
|
-
"@theia/editor": "1.74.0-next.
|
|
8
|
-
"@theia/filesystem": "1.74.0-next.
|
|
9
|
-
"@theia/markers": "1.74.0-next.
|
|
10
|
-
"@theia/monaco": "1.74.0-next.
|
|
6
|
+
"@theia/core": "1.74.0-next.60+46ce275d4",
|
|
7
|
+
"@theia/editor": "1.74.0-next.60+46ce275d4",
|
|
8
|
+
"@theia/filesystem": "1.74.0-next.60+46ce275d4",
|
|
9
|
+
"@theia/markers": "1.74.0-next.60+46ce275d4",
|
|
10
|
+
"@theia/monaco": "1.74.0-next.60+46ce275d4",
|
|
11
11
|
"@theia/monaco-editor-core": "1.108.201",
|
|
12
|
-
"@theia/process": "1.74.0-next.
|
|
13
|
-
"@theia/terminal": "1.74.0-next.
|
|
14
|
-
"@theia/userstorage": "1.74.0-next.
|
|
15
|
-
"@theia/variable-resolver": "1.74.0-next.
|
|
16
|
-
"@theia/workspace": "1.74.0-next.
|
|
12
|
+
"@theia/process": "1.74.0-next.60+46ce275d4",
|
|
13
|
+
"@theia/terminal": "1.74.0-next.60+46ce275d4",
|
|
14
|
+
"@theia/userstorage": "1.74.0-next.60+46ce275d4",
|
|
15
|
+
"@theia/variable-resolver": "1.74.0-next.60+46ce275d4",
|
|
16
|
+
"@theia/workspace": "1.74.0-next.60+46ce275d4",
|
|
17
17
|
"async-mutex": "^0.3.2",
|
|
18
18
|
"jsonc-parser": "^3.3.1",
|
|
19
19
|
"p-debounce": "^2.1.0",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"nyc": {
|
|
59
59
|
"extends": "../../configs/nyc.json"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "46ce275d49f80aaaf9eb453a0852bda9da783c76"
|
|
62
62
|
}
|
|
@@ -22,6 +22,7 @@ import taskBackendModule from '../task-backend-module';
|
|
|
22
22
|
import filesystemBackendModule from '@theia/filesystem/lib/node/filesystem-backend-module';
|
|
23
23
|
import workspaceServer from '@theia/workspace/lib/node/workspace-backend-module';
|
|
24
24
|
import { messagingBackendModule } from '@theia/core/lib/node/messaging/messaging-backend-module';
|
|
25
|
+
import { HttpConnectionValidator } from '@theia/core/lib/node';
|
|
25
26
|
import { ApplicationPackage } from '@theia/core/shared/@theia/application-package';
|
|
26
27
|
import { TerminalProcess } from '@theia/process/lib/node';
|
|
27
28
|
import { ProcessUtils } from '@theia/core/lib/node/process-utils';
|
|
@@ -40,6 +41,13 @@ export function createTaskTestContainer(): Container {
|
|
|
40
41
|
testContainer.load(workspaceServer);
|
|
41
42
|
testContainer.load(terminalBackendModule);
|
|
42
43
|
|
|
44
|
+
// The filesystem backend contributions require an `HttpConnectionValidator` (bound by the browser/electron
|
|
45
|
+
// hosting modules, which are not loaded here). Bind a no-op so those contributions can be constructed.
|
|
46
|
+
const noopConnectionValidator: HttpConnectionValidator = {
|
|
47
|
+
validateRequest: (_req, _res, next) => next()
|
|
48
|
+
};
|
|
49
|
+
testContainer.bind(HttpConnectionValidator).toConstantValue(noopConnectionValidator);
|
|
50
|
+
|
|
43
51
|
// Make it easier to debug processes.
|
|
44
52
|
testContainer.rebind(TerminalProcess).to(TestTerminalProcess);
|
|
45
53
|
|