@theia/terminal 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.
Files changed (162) hide show
  1. package/README.md +1 -1
  2. package/package.json +11 -10
  3. package/src/browser/search/terminal-search-widget.tsx +24 -8
  4. package/src/browser/terminal-frontend-contribution.ts +16 -15
  5. package/src/browser/terminal-frontend-module.ts +1 -1
  6. package/src/browser/terminal-widget-impl.ts +10 -4
  7. package/lib/browser/base/terminal-service.d.ts +0 -35
  8. package/lib/browser/base/terminal-service.d.ts.map +0 -1
  9. package/lib/browser/base/terminal-service.js +0 -8
  10. package/lib/browser/base/terminal-service.js.map +0 -1
  11. package/lib/browser/base/terminal-widget.d.ts +0 -219
  12. package/lib/browser/base/terminal-widget.d.ts.map +0 -1
  13. package/lib/browser/base/terminal-widget.js +0 -35
  14. package/lib/browser/base/terminal-widget.js.map +0 -1
  15. package/lib/browser/index.d.ts +0 -2
  16. package/lib/browser/index.d.ts.map +0 -1
  17. package/lib/browser/index.js +0 -20
  18. package/lib/browser/index.js.map +0 -1
  19. package/lib/browser/search/terminal-search-container.d.ts +0 -4
  20. package/lib/browser/search/terminal-search-container.d.ts.map +0 -1
  21. package/lib/browser/search/terminal-search-container.js +0 -29
  22. package/lib/browser/search/terminal-search-container.js.map +0 -1
  23. package/lib/browser/search/terminal-search-widget.d.ts +0 -31
  24. package/lib/browser/search/terminal-search-widget.d.ts.map +0 -1
  25. package/lib/browser/search/terminal-search-widget.js +0 -140
  26. package/lib/browser/search/terminal-search-widget.js.map +0 -1
  27. package/lib/browser/shell-terminal-profile.d.ts +0 -21
  28. package/lib/browser/shell-terminal-profile.d.ts.map +0 -1
  29. package/lib/browser/shell-terminal-profile.js +0 -43
  30. package/lib/browser/shell-terminal-profile.js.map +0 -1
  31. package/lib/browser/terminal-contribution.d.ts +0 -4
  32. package/lib/browser/terminal-contribution.d.ts.map +0 -1
  33. package/lib/browser/terminal-contribution.js +0 -21
  34. package/lib/browser/terminal-contribution.js.map +0 -1
  35. package/lib/browser/terminal-copy-on-selection-handler.d.ts +0 -11
  36. package/lib/browser/terminal-copy-on-selection-handler.d.ts.map +0 -1
  37. package/lib/browser/terminal-copy-on-selection-handler.js +0 -96
  38. package/lib/browser/terminal-copy-on-selection-handler.js.map +0 -1
  39. package/lib/browser/terminal-file-link-provider.d.ts +0 -40
  40. package/lib/browser/terminal-file-link-provider.d.ts.map +0 -1
  41. package/lib/browser/terminal-file-link-provider.js +0 -288
  42. package/lib/browser/terminal-file-link-provider.js.map +0 -1
  43. package/lib/browser/terminal-frontend-contribution.d.ts +0 -118
  44. package/lib/browser/terminal-frontend-contribution.d.ts.map +0 -1
  45. package/lib/browser/terminal-frontend-contribution.js +0 -1086
  46. package/lib/browser/terminal-frontend-contribution.js.map +0 -1
  47. package/lib/browser/terminal-frontend-module.d.ts +0 -6
  48. package/lib/browser/terminal-frontend-module.d.ts.map +0 -1
  49. package/lib/browser/terminal-frontend-module.js +0 -118
  50. package/lib/browser/terminal-frontend-module.js.map +0 -1
  51. package/lib/browser/terminal-link-helpers.d.ts +0 -28
  52. package/lib/browser/terminal-link-helpers.d.ts.map +0 -1
  53. package/lib/browser/terminal-link-helpers.js +0 -156
  54. package/lib/browser/terminal-link-helpers.js.map +0 -1
  55. package/lib/browser/terminal-link-provider.d.ts +0 -52
  56. package/lib/browser/terminal-link-provider.d.ts.map +0 -1
  57. package/lib/browser/terminal-link-provider.js +0 -190
  58. package/lib/browser/terminal-link-provider.js.map +0 -1
  59. package/lib/browser/terminal-profile-service.d.ts +0 -59
  60. package/lib/browser/terminal-profile-service.d.ts.map +0 -1
  61. package/lib/browser/terminal-profile-service.js +0 -152
  62. package/lib/browser/terminal-profile-service.js.map +0 -1
  63. package/lib/browser/terminal-quick-open-service.d.ts +0 -37
  64. package/lib/browser/terminal-quick-open-service.d.ts.map +0 -1
  65. package/lib/browser/terminal-quick-open-service.js +0 -130
  66. package/lib/browser/terminal-quick-open-service.js.map +0 -1
  67. package/lib/browser/terminal-theme-service.d.ts +0 -12
  68. package/lib/browser/terminal-theme-service.d.ts.map +0 -1
  69. package/lib/browser/terminal-theme-service.js +0 -67
  70. package/lib/browser/terminal-theme-service.js.map +0 -1
  71. package/lib/browser/terminal-url-link-provider.d.ts +0 -12
  72. package/lib/browser/terminal-url-link-provider.d.ts.map +0 -1
  73. package/lib/browser/terminal-url-link-provider.js +0 -69
  74. package/lib/browser/terminal-url-link-provider.js.map +0 -1
  75. package/lib/browser/terminal-widget-impl.d.ts +0 -191
  76. package/lib/browser/terminal-widget-impl.d.ts.map +0 -1
  77. package/lib/browser/terminal-widget-impl.js +0 -915
  78. package/lib/browser/terminal-widget-impl.js.map +0 -1
  79. package/lib/common/base-terminal-protocol.d.ts +0 -56
  80. package/lib/common/base-terminal-protocol.d.ts.map +0 -1
  81. package/lib/common/base-terminal-protocol.js +0 -85
  82. package/lib/common/base-terminal-protocol.js.map +0 -1
  83. package/lib/common/shell-terminal-protocol.d.ts +0 -67
  84. package/lib/common/shell-terminal-protocol.d.ts.map +0 -1
  85. package/lib/common/shell-terminal-protocol.js +0 -36
  86. package/lib/common/shell-terminal-protocol.js.map +0 -1
  87. package/lib/common/shell-type.d.ts +0 -23
  88. package/lib/common/shell-type.d.ts.map +0 -1
  89. package/lib/common/shell-type.js +0 -66
  90. package/lib/common/shell-type.js.map +0 -1
  91. package/lib/common/shell-type.spec.d.ts +0 -2
  92. package/lib/common/shell-type.spec.d.ts.map +0 -1
  93. package/lib/common/shell-type.spec.js +0 -159
  94. package/lib/common/shell-type.spec.js.map +0 -1
  95. package/lib/common/terminal-preferences.d.ts +0 -74
  96. package/lib/common/terminal-preferences.d.ts.map +0 -1
  97. package/lib/common/terminal-preferences.js +0 -516
  98. package/lib/common/terminal-preferences.js.map +0 -1
  99. package/lib/common/terminal-protocol.d.ts +0 -13
  100. package/lib/common/terminal-protocol.d.ts.map +0 -1
  101. package/lib/common/terminal-protocol.js +0 -22
  102. package/lib/common/terminal-protocol.js.map +0 -1
  103. package/lib/common/terminal-watcher.d.ts +0 -14
  104. package/lib/common/terminal-watcher.d.ts.map +0 -1
  105. package/lib/common/terminal-watcher.js +0 -66
  106. package/lib/common/terminal-watcher.js.map +0 -1
  107. package/lib/node/base-terminal-server.d.ts +0 -25
  108. package/lib/node/base-terminal-server.d.ts.map +0 -1
  109. package/lib/node/base-terminal-server.js +0 -158
  110. package/lib/node/base-terminal-server.js.map +0 -1
  111. package/lib/node/buffering-stream.d.ts +0 -42
  112. package/lib/node/buffering-stream.d.ts.map +0 -1
  113. package/lib/node/buffering-stream.js +0 -76
  114. package/lib/node/buffering-stream.js.map +0 -1
  115. package/lib/node/buffering-stream.spec.d.ts +0 -2
  116. package/lib/node/buffering-stream.spec.d.ts.map +0 -1
  117. package/lib/node/buffering-stream.spec.js +0 -44
  118. package/lib/node/buffering-stream.spec.js.map +0 -1
  119. package/lib/node/index.d.ts +0 -2
  120. package/lib/node/index.d.ts.map +0 -1
  121. package/lib/node/index.js +0 -20
  122. package/lib/node/index.js.map +0 -1
  123. package/lib/node/shell-process.d.ts +0 -28
  124. package/lib/node/shell-process.d.ts.map +0 -1
  125. package/lib/node/shell-process.js +0 -97
  126. package/lib/node/shell-process.js.map +0 -1
  127. package/lib/node/shell-terminal-server.d.ts +0 -31
  128. package/lib/node/shell-terminal-server.d.ts.map +0 -1
  129. package/lib/node/shell-terminal-server.js +0 -218
  130. package/lib/node/shell-terminal-server.js.map +0 -1
  131. package/lib/node/shell-terminal-server.spec.d.ts +0 -2
  132. package/lib/node/shell-terminal-server.spec.d.ts.map +0 -1
  133. package/lib/node/shell-terminal-server.spec.js +0 -36
  134. package/lib/node/shell-terminal-server.spec.js.map +0 -1
  135. package/lib/node/terminal-backend-contribution.d.ts +0 -10
  136. package/lib/node/terminal-backend-contribution.d.ts.map +0 -1
  137. package/lib/node/terminal-backend-contribution.js +0 -68
  138. package/lib/node/terminal-backend-contribution.js.map +0 -1
  139. package/lib/node/terminal-backend-contribution.slow-spec.d.ts +0 -2
  140. package/lib/node/terminal-backend-contribution.slow-spec.d.ts.map +0 -1
  141. package/lib/node/terminal-backend-contribution.slow-spec.js +0 -55
  142. package/lib/node/terminal-backend-contribution.slow-spec.js.map +0 -1
  143. package/lib/node/terminal-backend-module.d.ts +0 -12
  144. package/lib/node/terminal-backend-module.d.ts.map +0 -1
  145. package/lib/node/terminal-backend-module.js +0 -70
  146. package/lib/node/terminal-backend-module.js.map +0 -1
  147. package/lib/node/terminal-server.d.ts +0 -10
  148. package/lib/node/terminal-server.d.ts.map +0 -1
  149. package/lib/node/terminal-server.js +0 -54
  150. package/lib/node/terminal-server.js.map +0 -1
  151. package/lib/node/terminal-server.spec.d.ts +0 -2
  152. package/lib/node/terminal-server.spec.d.ts.map +0 -1
  153. package/lib/node/terminal-server.spec.js +0 -38
  154. package/lib/node/terminal-server.spec.js.map +0 -1
  155. package/lib/node/test/terminal-test-container.d.ts +0 -3
  156. package/lib/node/test/terminal-test-container.d.ts.map +0 -1
  157. package/lib/node/test/terminal-test-container.js +0 -41
  158. package/lib/node/test/terminal-test-container.js.map +0 -1
  159. package/lib/package.spec.d.ts +0 -1
  160. package/lib/package.spec.d.ts.map +0 -1
  161. package/lib/package.spec.js +0 -26
  162. package/lib/package.spec.js.map +0 -1
@@ -1,70 +0,0 @@
1
- "use strict";
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-only WITH Classpath-exception-2.0
16
- // *****************************************************************************
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.bindTerminalServer = void 0;
19
- const inversify_1 = require("@theia/core/shared/inversify");
20
- const terminal_backend_contribution_1 = require("./terminal-backend-contribution");
21
- const messaging_1 = require("@theia/core/lib/common/messaging");
22
- const shell_process_1 = require("./shell-process");
23
- const terminal_protocol_1 = require("../common/terminal-protocol");
24
- const base_terminal_protocol_1 = require("../common/base-terminal-protocol");
25
- const terminal_server_1 = require("./terminal-server");
26
- const shell_terminal_protocol_1 = require("../common/shell-terminal-protocol");
27
- const shell_terminal_server_1 = require("../node/shell-terminal-server");
28
- const terminal_watcher_1 = require("../common/terminal-watcher");
29
- const messaging_service_1 = require("@theia/core/lib/node/messaging/messaging-service");
30
- const terminal_preferences_1 = require("../common/terminal-preferences");
31
- function bindTerminalServer(bind, { path, identifier, constructor }) {
32
- const dispatchingClient = new base_terminal_protocol_1.DispatchingBaseTerminalClient();
33
- bind(identifier).to(constructor).inSingletonScope().onActivation((context, terminalServer) => {
34
- terminalServer.setClient(dispatchingClient);
35
- dispatchingClient.push(context.container.get(terminal_watcher_1.TerminalWatcher).getTerminalClient());
36
- terminalServer.setClient = () => {
37
- throw new Error('use TerminalWatcher');
38
- };
39
- return terminalServer;
40
- });
41
- bind(messaging_1.ConnectionHandler).toDynamicValue(ctx => new messaging_1.RpcConnectionHandler(path, client => {
42
- const disposable = dispatchingClient.push(client);
43
- client.onDidCloseConnection(() => disposable.dispose());
44
- return ctx.container.get(identifier);
45
- })).inSingletonScope();
46
- }
47
- exports.bindTerminalServer = bindTerminalServer;
48
- exports.default = new inversify_1.ContainerModule(bind => {
49
- bind(messaging_service_1.MessagingService.Contribution).to(terminal_backend_contribution_1.TerminalBackendContribution).inSingletonScope();
50
- bind(shell_process_1.ShellProcess).toSelf().inTransientScope();
51
- bind(shell_process_1.ShellProcessFactory).toFactory(ctx => (options) => {
52
- const child = new inversify_1.Container({ defaultScope: 'Singleton' });
53
- child.parent = ctx.container;
54
- child.bind(shell_process_1.ShellProcessOptions).toConstantValue(options);
55
- return child.get(shell_process_1.ShellProcess);
56
- });
57
- bind(terminal_watcher_1.TerminalWatcher).toSelf().inSingletonScope();
58
- bindTerminalServer(bind, {
59
- path: terminal_protocol_1.terminalPath,
60
- identifier: terminal_protocol_1.ITerminalServer,
61
- constructor: terminal_server_1.TerminalServer
62
- });
63
- bindTerminalServer(bind, {
64
- path: shell_terminal_protocol_1.shellTerminalPath,
65
- identifier: shell_terminal_protocol_1.IShellTerminalServer,
66
- constructor: shell_terminal_server_1.ShellTerminalServer
67
- });
68
- (0, terminal_preferences_1.bindTerminalPreferences)(bind);
69
- });
70
- //# sourceMappingURL=terminal-backend-module.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"terminal-backend-module.js","sourceRoot":"","sources":["../../src/node/terminal-backend-module.ts"],"names":[],"mappings":"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"}
@@ -1,10 +0,0 @@
1
- import { ILogger } from '@theia/core/lib/common/logger';
2
- import { ITerminalServer, ITerminalServerOptions } from '../common/terminal-protocol';
3
- import { BaseTerminalServer } from './base-terminal-server';
4
- import { TerminalProcessFactory, ProcessManager } from '@theia/process/lib/node';
5
- export declare class TerminalServer extends BaseTerminalServer implements ITerminalServer {
6
- protected readonly terminalFactory: TerminalProcessFactory;
7
- constructor(processManager: ProcessManager, logger: ILogger);
8
- create(options: ITerminalServerOptions): Promise<number>;
9
- }
10
- //# sourceMappingURL=terminal-server.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"terminal-server.d.ts","sourceRoot":"","sources":["../../src/node/terminal-server.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EACH,eAAe,EACf,sBAAsB,EACzB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEjF,qBACa,cAAe,SAAQ,kBAAmB,YAAW,eAAe;IAE7C,SAAS,CAAC,QAAQ,CAAC,eAAe,EAAE,sBAAsB,CAAC;gBAG/D,cAAc,EAAE,cAAc,EAClB,MAAM,EAAE,OAAO;IAKvD,MAAM,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,MAAM,CAAC;CAc3D"}
@@ -1,54 +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.TerminalServer = void 0;
19
- const tslib_1 = require("tslib");
20
- const inversify_1 = require("@theia/core/shared/inversify");
21
- const logger_1 = require("@theia/core/lib/common/logger");
22
- const base_terminal_server_1 = require("./base-terminal-server");
23
- const node_1 = require("@theia/process/lib/node");
24
- let TerminalServer = class TerminalServer extends base_terminal_server_1.BaseTerminalServer {
25
- constructor(processManager, logger) {
26
- super(processManager, logger);
27
- }
28
- create(options) {
29
- return new Promise((resolve, reject) => {
30
- const term = this.terminalFactory(options);
31
- term.onStart(_ => {
32
- this.postCreate(term);
33
- resolve(term.id);
34
- });
35
- term.onError(error => {
36
- this.logger.error('Error while creating terminal', error);
37
- resolve(-1);
38
- });
39
- });
40
- }
41
- };
42
- exports.TerminalServer = TerminalServer;
43
- tslib_1.__decorate([
44
- (0, inversify_1.inject)(node_1.TerminalProcessFactory),
45
- tslib_1.__metadata("design:type", Function)
46
- ], TerminalServer.prototype, "terminalFactory", void 0);
47
- exports.TerminalServer = TerminalServer = tslib_1.__decorate([
48
- (0, inversify_1.injectable)(),
49
- tslib_1.__param(0, (0, inversify_1.inject)(node_1.ProcessManager)),
50
- tslib_1.__param(1, (0, inversify_1.inject)(logger_1.ILogger)),
51
- tslib_1.__param(1, (0, inversify_1.named)('terminal')),
52
- tslib_1.__metadata("design:paramtypes", [node_1.ProcessManager, Object])
53
- ], TerminalServer);
54
- //# sourceMappingURL=terminal-server.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"terminal-server.js","sourceRoot":"","sources":["../../src/node/terminal-server.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,0DAAwD;AAKxD,iEAA4D;AAC5D,kDAAiF;AAG1E,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,yCAAkB;IAIlD,YAC4B,cAA8B,EAClB,MAAe;QAEnD,KAAK,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;IAClC,CAAC;IAED,MAAM,CAAC,OAA+B;QAClC,OAAO,IAAI,OAAO,CAAS,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YAC3C,MAAM,IAAI,GAAG,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;YAC3C,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;gBACb,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;gBACtB,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YACrB,CAAC,CAAC,CAAC;YACH,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;gBACjB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,+BAA+B,EAAE,KAAK,CAAC,CAAC;gBAC1D,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;YAChB,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IAEP,CAAC;CACJ,CAAA;AAzBY,wCAAc;AAE4B;IAAlD,IAAA,kBAAM,EAAC,6BAAsB,CAAC;;uDAA4D;yBAFlF,cAAc;IAD1B,IAAA,sBAAU,GAAE;IAMJ,mBAAA,IAAA,kBAAM,EAAC,qBAAc,CAAC,CAAA;IACtB,mBAAA,IAAA,kBAAM,EAAC,gBAAO,CAAC,CAAA;IAAE,mBAAA,IAAA,iBAAK,EAAC,UAAU,CAAC,CAAA;6CADK,qBAAc;GALjD,cAAc,CAyB1B"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=terminal-server.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"terminal-server.spec.d.ts","sourceRoot":"","sources":["../../src/node/terminal-server.spec.ts"],"names":[],"mappings":""}
@@ -1,38 +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
- const chai = require("chai");
19
- const terminal_test_container_1 = require("./test/terminal-test-container");
20
- const terminal_protocol_1 = require("../common/terminal-protocol");
21
- /**
22
- * Globals
23
- */
24
- const expect = chai.expect;
25
- describe('TerminalServer', function () {
26
- this.timeout(5000);
27
- let terminalServer;
28
- beforeEach(() => {
29
- const container = (0, terminal_test_container_1.createTerminalTestContainer)();
30
- terminalServer = container.get(terminal_protocol_1.ITerminalServer);
31
- });
32
- it('test terminal create', async function () {
33
- const args = ['--version'];
34
- const createResult = await terminalServer.create({ command: process.execPath, 'args': args });
35
- expect(createResult).to.be.greaterThan(-1);
36
- });
37
- });
38
- //# sourceMappingURL=terminal-server.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"terminal-server.spec.js","sourceRoot":"","sources":["../../src/node/terminal-server.spec.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,6BAA6B;AAC7B,4EAA6E;AAC7E,mEAA8D;AAE9D;;GAEG;AAEH,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;AAE3B,QAAQ,CAAC,gBAAgB,EAAE;IAEvB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACnB,IAAI,cAA+B,CAAC;IAEpC,UAAU,CAAC,GAAG,EAAE;QACZ,MAAM,SAAS,GAAG,IAAA,qDAA2B,GAAE,CAAC;QAChD,cAAc,GAAG,SAAS,CAAC,GAAG,CAAC,mCAAe,CAAC,CAAC;IACpD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,sBAAsB,EAAE,KAAK;QAC5B,MAAM,IAAI,GAAG,CAAC,WAAW,CAAC,CAAC;QAC3B,MAAM,YAAY,GAAG,MAAM,cAAc,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;QAC9F,MAAM,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IAC/C,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- import { Container } from '@theia/core/shared/inversify';
2
- export declare function createTerminalTestContainer(): Container;
3
- //# sourceMappingURL=terminal-test-container.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"terminal-test-container.d.ts","sourceRoot":"","sources":["../../../src/node/test/terminal-test-container.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AASzD,wBAAgB,2BAA2B,IAAI,SAAS,CAcvD"}
@@ -1,41 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createTerminalTestContainer = void 0;
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-only WITH Classpath-exception-2.0
18
- // *****************************************************************************
19
- const inversify_1 = require("@theia/core/shared/inversify");
20
- const logger_backend_module_1 = require("@theia/core/lib/node/logger-backend-module");
21
- const backend_application_module_1 = require("@theia/core/lib/node/backend-application-module");
22
- const process_backend_module_1 = require("@theia/process/lib/node/process-backend-module");
23
- const messaging_backend_module_1 = require("@theia/core/lib/node/messaging/messaging-backend-module");
24
- const terminal_backend_module_1 = require("../terminal-backend-module");
25
- const application_package_1 = require("@theia/core/shared/@theia/application-package");
26
- const process_utils_1 = require("@theia/core/lib/node/process-utils");
27
- function createTerminalTestContainer() {
28
- const container = new inversify_1.Container();
29
- container.load(backend_application_module_1.backendApplicationModule);
30
- container.rebind(application_package_1.ApplicationPackage).toConstantValue({});
31
- container.rebind(process_utils_1.ProcessUtils).toConstantValue(new class extends process_utils_1.ProcessUtils {
32
- terminateProcessTree() { }
33
- });
34
- (0, logger_backend_module_1.bindLogger)(container.bind.bind(container));
35
- container.load(messaging_backend_module_1.messagingBackendModule);
36
- container.load(process_backend_module_1.default);
37
- container.load(terminal_backend_module_1.default);
38
- return container;
39
- }
40
- exports.createTerminalTestContainer = createTerminalTestContainer;
41
- //# sourceMappingURL=terminal-test-container.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"terminal-test-container.js","sourceRoot":"","sources":["../../../src/node/test/terminal-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,gFAAgF;AAChF,gFAAgF;AAChF,4DAAyD;AACzD,sFAAwE;AACxE,gGAA2F;AAC3F,2FAAkF;AAClF,sGAAiG;AACjG,wEAA+D;AAC/D,uFAAmF;AACnF,sEAAkE;AAElE,SAAgB,2BAA2B;IACvC,MAAM,SAAS,GAAG,IAAI,qBAAS,EAAE,CAAC;IAElC,SAAS,CAAC,IAAI,CAAC,qDAAwB,CAAC,CAAC;IACzC,SAAS,CAAC,MAAM,CAAC,wCAAkB,CAAC,CAAC,eAAe,CAAC,EAAwB,CAAC,CAAC;IAC/E,SAAS,CAAC,MAAM,CAAC,4BAAY,CAAC,CAAC,eAAe,CAAC,IAAI,KAAM,SAAQ,4BAAY;QAChE,oBAAoB,KAAW,CAAC;KAC5C,CAAC,CAAC;IAEH,IAAA,kCAAU,EAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC;IAC3C,SAAS,CAAC,IAAI,CAAC,iDAAsB,CAAC,CAAC;IACvC,SAAS,CAAC,IAAI,CAAC,gCAAoB,CAAC,CAAC;IACrC,SAAS,CAAC,IAAI,CAAC,iCAAqB,CAAC,CAAC;IACtC,OAAO,SAAS,CAAC;AACrB,CAAC;AAdD,kEAcC"}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=package.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"package.spec.d.ts","sourceRoot":"","sources":["../src/package.spec.ts"],"names":[],"mappings":""}
@@ -1,26 +0,0 @@
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-only WITH Classpath-exception-2.0
15
- // *****************************************************************************
16
- /* note: this bogus test file is required so that
17
- we are able to run mocha unit tests on this
18
- package, without having any actual unit tests in it.
19
- This way a coverage report will be generated,
20
- showing 0% coverage, instead of no report.
21
- This file can be removed once we have real unit
22
- tests in place. */
23
- describe('terminal package', () => {
24
- it('support code coverage statistics', () => true);
25
- });
26
- //# sourceMappingURL=package.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"package.spec.js","sourceRoot":"","sources":["../src/package.spec.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;;;;;;qBAMqB;AAErB,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;IAE9B,EAAE,CAAC,kCAAkC,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC;AACvD,CAAC,CAAC,CAAC"}