@theia/task 1.65.0-next.16 → 1.65.0-next.28

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.
Files changed (39) hide show
  1. package/lib/browser/quick-open-task.d.ts +2 -2
  2. package/lib/browser/quick-open-task.d.ts.map +1 -1
  3. package/lib/browser/quick-open-task.js +2 -1
  4. package/lib/browser/quick-open-task.js.map +1 -1
  5. package/lib/browser/task-configuration-manager.d.ts +5 -7
  6. package/lib/browser/task-configuration-manager.d.ts.map +1 -1
  7. package/lib/browser/task-configuration-manager.js +17 -28
  8. package/lib/browser/task-configuration-manager.js.map +1 -1
  9. package/lib/browser/task-configuration-model.d.ts +5 -4
  10. package/lib/browser/task-configuration-model.d.ts.map +1 -1
  11. package/lib/browser/task-configuration-model.js +16 -13
  12. package/lib/browser/task-configuration-model.js.map +1 -1
  13. package/lib/browser/task-frontend-module.js +1 -1
  14. package/lib/browser/task-frontend-module.js.map +1 -1
  15. package/lib/browser/task-schema-updater.d.ts +0 -1
  16. package/lib/browser/task-schema-updater.d.ts.map +1 -1
  17. package/lib/browser/task-schema-updater.js +4 -4
  18. package/lib/browser/task-schema-updater.js.map +1 -1
  19. package/lib/common/task-preferences.d.ts +6 -0
  20. package/lib/common/task-preferences.d.ts.map +1 -0
  21. package/lib/{browser → common}/task-preferences.js +9 -9
  22. package/lib/common/task-preferences.js.map +1 -0
  23. package/lib/node/task-backend-module.d.ts.map +1 -1
  24. package/lib/node/task-backend-module.js +2 -0
  25. package/lib/node/task-backend-module.js.map +1 -1
  26. package/lib/node/task-server.slow-spec.js +7 -3
  27. package/lib/node/task-server.slow-spec.js.map +1 -1
  28. package/package.json +12 -12
  29. package/src/browser/quick-open-task.ts +2 -2
  30. package/src/browser/task-configuration-manager.ts +14 -19
  31. package/src/browser/task-configuration-model.ts +18 -15
  32. package/src/browser/task-frontend-module.ts +1 -1
  33. package/src/browser/task-schema-updater.ts +1 -2
  34. package/src/{browser → common}/task-preferences.ts +7 -6
  35. package/src/node/task-backend-module.ts +2 -0
  36. package/src/node/task-server.slow-spec.ts +8 -3
  37. package/lib/browser/task-preferences.d.ts +0 -5
  38. package/lib/browser/task-preferences.d.ts.map +0 -1
  39. package/lib/browser/task-preferences.js.map +0 -1
@@ -29,6 +29,7 @@ import { TestWebSocketChannelSetup } from '@theia/core/lib/node/messaging/test/t
29
29
  import { expect } from 'chai';
30
30
  import URI from '@theia/core/lib/common/uri';
31
31
  import { StringBufferingStream } from '@theia/terminal/lib/node/buffering-stream';
32
+ import { BackendApplicationConfigProvider } from '@theia/core/lib/node/backend-application-config-provider';
32
33
 
33
34
  // test scripts that we bundle with tasks
34
35
  const commandShortRunning = './task';
@@ -57,13 +58,17 @@ const wsRootUri: URI = FileUri.create(__dirname).resolve('../../test-resources')
57
58
  const wsRoot: string = FileUri.fsPath(wsRootUri);
58
59
 
59
60
  describe('Task server / back-end', function (): void {
60
- this.timeout(10000);
61
+ this.timeout(20000);
61
62
 
62
63
  let backend: BackendApplication;
63
64
  let server: http.Server | https.Server;
64
65
  let taskServer: TaskServer;
65
66
  let taskWatcher: TaskWatcher;
66
67
 
68
+ this.beforeAll(() => {
69
+ BackendApplicationConfigProvider.set({});
70
+ });
71
+
67
72
  beforeEach(async () => {
68
73
  delete process.env['THEIA_TASK_TEST_DEBUG'];
69
74
  const testContainer = createTaskTestContainer();
@@ -198,7 +203,7 @@ describe('Task server / back-end', function (): void {
198
203
  // possible on what node's child_process module does.
199
204
  if (isWindows) {
200
205
  // On Windows, node-pty just reports an exit code of 0.
201
- expect(exitStatus).equals(1);
206
+ // expect(exitStatus).equals(1); // this does not work reliably: locally, the exit code from node-pty is 0, whereas in CI it is 1
202
207
  } else {
203
208
  // On Linux/macOS, node-pty sends SIGHUP by default, for some reason.
204
209
  expect(exitStatus).equals('SIGHUP');
@@ -218,7 +223,7 @@ describe('Task server / back-end', function (): void {
218
223
  // possible on what node's child_process module does.
219
224
  if (isWindows) {
220
225
  // On Windows, node-pty just reports an exit code of 1.
221
- expect(exitStatus).equals(1);
226
+ // expect(exitStatus).equals(1); // this does not work reliably: locally, the exit code from node-pty is 0, whereas in CI it is 1
222
227
  } else {
223
228
  // On Linux/macOS, node-pty sends SIGHUP by default, for some reason.
224
229
  expect(exitStatus).equals('SIGHUP');
@@ -1,5 +0,0 @@
1
- import { interfaces } from '@theia/core/shared/inversify';
2
- import { PreferenceSchema } from '@theia/core/lib/browser/preferences/preference-contribution';
3
- export declare const taskPreferencesSchema: PreferenceSchema;
4
- export declare function bindTaskPreferences(bind: interfaces.Bind): void;
5
- //# sourceMappingURL=task-preferences.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"task-preferences.d.ts","sourceRoot":"","sources":["../../src/browser/task-preferences.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAA0B,gBAAgB,EAAE,MAAM,6DAA6D,CAAC;AAIvH,eAAO,MAAM,qBAAqB,EAAE,gBAanC,CAAC;AAEF,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,GAAG,IAAI,CAG/D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"task-preferences.js","sourceRoot":"","sources":["../../src/browser/task-preferences.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;;;AAGhF,yGAAuH;AACvH,+DAAqD;AACrD,6GAAwG;AAE3F,QAAA,qBAAqB,GAAqB;IACnD,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,UAAU;IACjB,UAAU,EAAE;QACR,KAAK,EAAE;YACH,IAAI,EAAE,kCAAY;YAClB,WAAW,EAAE,sBAAsB;YACnC,YAAY,EAAE;gBACV,OAAO,EAAE,OAAO;gBAChB,KAAK,EAAE,EAAE;aACZ;SACJ;KACJ;CACJ,CAAC;AAEF,SAAgB,mBAAmB,CAAC,IAAqB;IACrD,IAAI,CAAC,gDAAsB,CAAC,CAAC,eAAe,CAAC,EAAE,MAAM,EAAE,6BAAqB,EAAE,CAAC,CAAC;IAChF,IAAI,CAAC,mDAAuB,CAAC,CAAC,eAAe,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC;AACrE,CAAC;AAHD,kDAGC"}