@theia/terminal 1.39.0-next.9 → 1.40.0

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 (124) hide show
  1. package/lib/browser/base/terminal-widget.js +1 -1
  2. package/lib/browser/base/terminal-widget.js.map +1 -1
  3. package/lib/browser/index.js +1 -1
  4. package/lib/browser/index.js.map +1 -1
  5. package/lib/browser/search/terminal-search-container.js +1 -1
  6. package/lib/browser/search/terminal-search-container.js.map +1 -1
  7. package/lib/browser/search/terminal-search-widget.js +1 -1
  8. package/lib/browser/search/terminal-search-widget.js.map +1 -1
  9. package/lib/browser/shell-terminal-profile.js +2 -2
  10. package/lib/browser/shell-terminal-profile.js.map +1 -1
  11. package/lib/browser/terminal-contribution.js +1 -1
  12. package/lib/browser/terminal-contribution.js.map +1 -1
  13. package/lib/browser/terminal-copy-on-selection-handler.js +1 -1
  14. package/lib/browser/terminal-copy-on-selection-handler.js.map +1 -1
  15. package/lib/browser/terminal-file-link-provider.js +2 -2
  16. package/lib/browser/terminal-file-link-provider.js.map +1 -1
  17. package/lib/browser/terminal-frontend-contribution.d.ts +2 -1
  18. package/lib/browser/terminal-frontend-contribution.d.ts.map +1 -1
  19. package/lib/browser/terminal-frontend-contribution.js +20 -7
  20. package/lib/browser/terminal-frontend-contribution.js.map +1 -1
  21. package/lib/browser/terminal-frontend-module.js +7 -2
  22. package/lib/browser/terminal-frontend-module.js.map +1 -1
  23. package/lib/browser/terminal-keybinding-contexts.js +1 -1
  24. package/lib/browser/terminal-keybinding-contexts.js.map +1 -1
  25. package/lib/browser/terminal-link-helpers.js +1 -1
  26. package/lib/browser/terminal-link-helpers.js.map +1 -1
  27. package/lib/browser/terminal-link-provider.js +1 -1
  28. package/lib/browser/terminal-link-provider.js.map +1 -1
  29. package/lib/browser/terminal-preferences.js +39 -12
  30. package/lib/browser/terminal-preferences.js.map +1 -1
  31. package/lib/browser/terminal-profile-service.js +1 -1
  32. package/lib/browser/terminal-profile-service.js.map +1 -1
  33. package/lib/browser/terminal-quick-open-service.js +1 -1
  34. package/lib/browser/terminal-quick-open-service.js.map +1 -1
  35. package/lib/browser/terminal-theme-service.js +1 -1
  36. package/lib/browser/terminal-theme-service.js.map +1 -1
  37. package/lib/browser/terminal-url-link-provider.js +1 -1
  38. package/lib/browser/terminal-url-link-provider.js.map +1 -1
  39. package/lib/browser/terminal-widget-impl.js +6 -3
  40. package/lib/browser/terminal-widget-impl.js.map +1 -1
  41. package/lib/common/base-terminal-protocol.d.ts +2 -2
  42. package/lib/common/base-terminal-protocol.d.ts.map +1 -1
  43. package/lib/common/base-terminal-protocol.js +1 -1
  44. package/lib/common/base-terminal-protocol.js.map +1 -1
  45. package/lib/common/shell-terminal-protocol.d.ts +2 -2
  46. package/lib/common/shell-terminal-protocol.d.ts.map +1 -1
  47. package/lib/common/shell-terminal-protocol.js +1 -1
  48. package/lib/common/shell-terminal-protocol.js.map +1 -1
  49. package/lib/common/terminal-common-module.js +1 -1
  50. package/lib/common/terminal-common-module.js.map +1 -1
  51. package/lib/common/terminal-protocol.js +1 -1
  52. package/lib/common/terminal-protocol.js.map +1 -1
  53. package/lib/common/terminal-watcher.js +1 -1
  54. package/lib/common/terminal-watcher.js.map +1 -1
  55. package/lib/node/base-terminal-server.js +1 -1
  56. package/lib/node/base-terminal-server.js.map +1 -1
  57. package/lib/node/buffering-stream.js +1 -1
  58. package/lib/node/buffering-stream.js.map +1 -1
  59. package/lib/node/buffering-stream.spec.js +1 -1
  60. package/lib/node/buffering-stream.spec.js.map +1 -1
  61. package/lib/node/index.js +1 -1
  62. package/lib/node/index.js.map +1 -1
  63. package/lib/node/shell-process.js +1 -1
  64. package/lib/node/shell-process.js.map +1 -1
  65. package/lib/node/shell-terminal-server.js +1 -1
  66. package/lib/node/shell-terminal-server.js.map +1 -1
  67. package/lib/node/shell-terminal-server.spec.js +1 -1
  68. package/lib/node/shell-terminal-server.spec.js.map +1 -1
  69. package/lib/node/terminal-backend-contribution.js +1 -1
  70. package/lib/node/terminal-backend-contribution.js.map +1 -1
  71. package/lib/node/terminal-backend-contribution.slow-spec.js +1 -1
  72. package/lib/node/terminal-backend-contribution.slow-spec.js.map +1 -1
  73. package/lib/node/terminal-backend-module.js +2 -2
  74. package/lib/node/terminal-backend-module.js.map +1 -1
  75. package/lib/node/terminal-server.js +1 -1
  76. package/lib/node/terminal-server.js.map +1 -1
  77. package/lib/node/terminal-server.spec.js +1 -1
  78. package/lib/node/terminal-server.spec.js.map +1 -1
  79. package/lib/node/test/terminal-test-container.js +1 -1
  80. package/lib/node/test/terminal-test-container.js.map +1 -1
  81. package/lib/package.spec.js +1 -1
  82. package/lib/package.spec.js.map +1 -1
  83. package/package.json +10 -10
  84. package/src/browser/base/terminal-service.ts +1 -1
  85. package/src/browser/base/terminal-widget.ts +1 -1
  86. package/src/browser/index.ts +1 -1
  87. package/src/browser/search/terminal-search-container.ts +1 -1
  88. package/src/browser/search/terminal-search-widget.tsx +1 -1
  89. package/src/browser/shell-terminal-profile.ts +1 -1
  90. package/src/browser/style/terminal-search.css +54 -48
  91. package/src/browser/style/terminal.css +5 -6
  92. package/src/browser/terminal-contribution.ts +1 -1
  93. package/src/browser/terminal-copy-on-selection-handler.ts +1 -1
  94. package/src/browser/terminal-file-link-provider.ts +1 -1
  95. package/src/browser/terminal-frontend-contribution.ts +11 -4
  96. package/src/browser/terminal-frontend-module.ts +1 -1
  97. package/src/browser/terminal-keybinding-contexts.ts +1 -1
  98. package/src/browser/terminal-link-helpers.ts +1 -1
  99. package/src/browser/terminal-link-provider.ts +1 -1
  100. package/src/browser/terminal-preferences.ts +2 -2
  101. package/src/browser/terminal-profile-service.ts +1 -1
  102. package/src/browser/terminal-quick-open-service.ts +1 -1
  103. package/src/browser/terminal-theme-service.ts +1 -1
  104. package/src/browser/terminal-url-link-provider.ts +1 -1
  105. package/src/browser/terminal-widget-impl.ts +2 -2
  106. package/src/common/base-terminal-protocol.ts +3 -3
  107. package/src/common/shell-terminal-protocol.ts +3 -3
  108. package/src/common/terminal-common-module.ts +1 -1
  109. package/src/common/terminal-protocol.ts +1 -1
  110. package/src/common/terminal-watcher.ts +1 -1
  111. package/src/node/base-terminal-server.ts +1 -1
  112. package/src/node/buffering-stream.spec.ts +1 -1
  113. package/src/node/buffering-stream.ts +1 -1
  114. package/src/node/index.ts +1 -1
  115. package/src/node/shell-process.ts +1 -1
  116. package/src/node/shell-terminal-server.spec.ts +1 -1
  117. package/src/node/shell-terminal-server.ts +1 -1
  118. package/src/node/terminal-backend-contribution.slow-spec.ts +1 -1
  119. package/src/node/terminal-backend-contribution.ts +1 -1
  120. package/src/node/terminal-backend-module.ts +3 -3
  121. package/src/node/terminal-server.spec.ts +1 -1
  122. package/src/node/terminal-server.ts +1 -1
  123. package/src/node/test/terminal-test-container.ts +1 -1
  124. package/src/package.spec.ts +1 -1
@@ -11,14 +11,14 @@
11
11
  * with the GNU Classpath Exception which is available at
12
12
  * https://www.gnu.org/software/classpath/license.html.
13
13
  *
14
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
14
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  ********************************************************************************/
16
16
 
17
17
  .terminal-container {
18
- width:100%;
19
- height:100%;
20
- padding: var(--theia-code-padding);
21
- background: var(--theia-terminal-background);
18
+ width: 100%;
19
+ height: 100%;
20
+ padding: var(--theia-code-padding);
21
+ background: var(--theia-terminal-background);
22
22
  }
23
23
 
24
24
  .xterm .xterm-screen canvas {
@@ -26,7 +26,6 @@
26
26
  border: 1px solid var(--theia-terminal-background);
27
27
  }
28
28
 
29
-
30
29
  .terminal-container .xterm .xterm-helper-textarea {
31
30
  /* fix secondary cursor-like issue. See https://github.com/eclipse-theia/theia/issues/8158 */
32
31
  opacity: 0 !important;
@@ -11,7 +11,7 @@
11
11
  // with the GNU Classpath Exception which is available at
12
12
  // https://www.gnu.org/software/classpath/license.html.
13
13
  //
14
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  // *****************************************************************************
16
16
 
17
17
  import { TerminalContribution } from './terminal-widget-impl';
@@ -11,7 +11,7 @@
11
11
  // with the GNU Classpath Exception which is available at
12
12
  // https://www.gnu.org/software/classpath/license.html.
13
13
  //
14
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  // *****************************************************************************
16
16
 
17
17
  import { injectable, postConstruct } from '@theia/core/shared/inversify';
@@ -11,7 +11,7 @@
11
11
  // with the GNU Classpath Exception which is available at
12
12
  // https://www.gnu.org/software/classpath/license.html.
13
13
  //
14
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  // *****************************************************************************
16
16
 
17
17
  import { OS, Path } from '@theia/core';
@@ -11,7 +11,7 @@
11
11
  // with the GNU Classpath Exception which is available at
12
12
  // https://www.gnu.org/software/classpath/license.html.
13
13
  //
14
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  // *****************************************************************************
16
16
 
17
17
  import { inject, injectable, optional, postConstruct } from '@theia/core/shared/inversify';
@@ -32,7 +32,7 @@ import {
32
32
  import {
33
33
  ApplicationShell, KeybindingContribution, KeyCode, Key, WidgetManager, PreferenceService,
34
34
  KeybindingRegistry, LabelProvider, WidgetOpenerOptions, StorageService, QuickInputService,
35
- codicon, CommonCommands, FrontendApplicationContribution, OnWillStopAction, Dialog, ConfirmDialog, FrontendApplication, PreferenceScope
35
+ codicon, CommonCommands, FrontendApplicationContribution, OnWillStopAction, Dialog, ConfirmDialog, FrontendApplication, PreferenceScope, Widget
36
36
  } from '@theia/core/lib/browser';
37
37
  import { TabBarToolbarContribution, TabBarToolbarRegistry } from '@theia/core/lib/browser/shell/tab-bar-toolbar';
38
38
  import { TERMINAL_WIDGET_FACTORY_ID, TerminalWidgetFactoryOptions, TerminalWidgetImpl } from './terminal-widget-impl';
@@ -543,8 +543,8 @@ export class TerminalFrontendContribution implements FrontendApplicationContribu
543
543
  });
544
544
  commands.registerCommand(TerminalCommands.SPLIT, {
545
545
  execute: () => this.splitTerminal(),
546
- isEnabled: () => this.shell.currentWidget instanceof TerminalWidget,
547
- isVisible: () => this.shell.currentWidget instanceof TerminalWidget,
546
+ isEnabled: w => this.withWidget(w, () => true),
547
+ isVisible: w => this.withWidget(w, () => true),
548
548
  });
549
549
  commands.registerCommand(TerminalCommands.TERMINAL_CLEAR);
550
550
  commands.registerHandler(TerminalCommands.TERMINAL_CLEAR.id, {
@@ -1022,6 +1022,13 @@ export class TerminalFrontendContribution implements FrontendApplicationContribu
1022
1022
  this.open(termWidget, { widgetOptions: options });
1023
1023
  }
1024
1024
 
1025
+ protected withWidget<T>(widget: Widget | undefined, fn: (widget: TerminalWidget) => T): T | false {
1026
+ if (widget instanceof TerminalWidget) {
1027
+ return fn(widget);
1028
+ }
1029
+ return false;
1030
+ }
1031
+
1025
1032
  /**
1026
1033
  * It should be aligned with https://code.visualstudio.com/api/references/theme-color#integrated-terminal-colors
1027
1034
  */
@@ -11,7 +11,7 @@
11
11
  // with the GNU Classpath Exception which is available at
12
12
  // https://www.gnu.org/software/classpath/license.html.
13
13
  //
14
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  // *****************************************************************************
16
16
 
17
17
  import '../../src/browser/style/terminal.css';
@@ -11,7 +11,7 @@
11
11
  // with the GNU Classpath Exception which is available at
12
12
  // https://www.gnu.org/software/classpath/license.html.
13
13
  //
14
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  // *****************************************************************************
16
16
 
17
17
  import { injectable, inject } from '@theia/core/shared/inversify';
@@ -11,7 +11,7 @@
11
11
  // with the GNU Classpath Exception which is available at
12
12
  // https://www.gnu.org/software/classpath/license.html.
13
13
  //
14
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  // *****************************************************************************
16
16
 
17
17
  import type { IBufferRange, IBufferLine, IBuffer, Terminal } from 'xterm';
@@ -11,7 +11,7 @@
11
11
  // with the GNU Classpath Exception which is available at
12
12
  // https://www.gnu.org/software/classpath/license.html.
13
13
  //
14
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  // *****************************************************************************
16
16
 
17
17
  import { CancellationToken, ContributionProvider, DisposableCollection, disposableTimeout, isOSX } from '@theia/core';
@@ -11,7 +11,7 @@
11
11
  // with the GNU Classpath Exception which is available at
12
12
  // https://www.gnu.org/software/classpath/license.html.
13
13
  //
14
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  // *****************************************************************************
16
16
 
17
17
  /* eslint-disable max-len */
@@ -121,7 +121,7 @@ export const TerminalConfigSchema: PreferenceSchema = {
121
121
  default: 1
122
122
  },
123
123
  'terminal.integrated.scrollback': {
124
- description: nls.localizeByDefault('Controls the maximum number of lines the terminal keeps in its buffer.'),
124
+ description: nls.localizeByDefault('Controls the maximum number of lines the terminal keeps in its buffer. We pre-allocate memory based on this value in order to ensure a smooth experience. As such, as the value increases, so will the amount of memory.'),
125
125
  type: 'number',
126
126
  default: 1000
127
127
  },
@@ -11,7 +11,7 @@
11
11
  // with the GNU Classpath Exception which is available at
12
12
  // https://www.gnu.org/software/classpath/license.html.
13
13
  //
14
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  // *****************************************************************************
16
16
 
17
17
  import { Emitter, Event } from '@theia/core';
@@ -11,7 +11,7 @@
11
11
  // with the GNU Classpath Exception which is available at
12
12
  // https://www.gnu.org/software/classpath/license.html.
13
13
  //
14
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  // *****************************************************************************
16
16
 
17
17
  import { inject, injectable, optional } from '@theia/core/shared/inversify';
@@ -11,7 +11,7 @@
11
11
  // with the GNU Classpath Exception which is available at
12
12
  // https://www.gnu.org/software/classpath/license.html.
13
13
  //
14
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  // *****************************************************************************
16
16
 
17
17
  import { ITheme } from 'xterm';
@@ -11,7 +11,7 @@
11
11
  // with the GNU Classpath Exception which is available at
12
12
  // https://www.gnu.org/software/classpath/license.html.
13
13
  //
14
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  // *****************************************************************************
16
16
 
17
17
  import { inject, injectable } from '@theia/core/shared/inversify';
@@ -11,7 +11,7 @@
11
11
  // with the GNU Classpath Exception which is available at
12
12
  // https://www.gnu.org/software/classpath/license.html.
13
13
  //
14
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  // *****************************************************************************
16
16
 
17
17
  import { Terminal, RendererType } from 'xterm';
@@ -706,7 +706,7 @@ export class TerminalWidgetImpl extends TerminalWidget implements StatefulWidget
706
706
  }
707
707
 
708
708
  async executeCommand(commandOptions: CommandLineOptions): Promise<void> {
709
- this.sendText(this.shellCommandBuilder.buildCommand(await this.processInfo, commandOptions) + '\n');
709
+ this.sendText(this.shellCommandBuilder.buildCommand(await this.processInfo, commandOptions) + OS.backend.EOL);
710
710
  }
711
711
 
712
712
  scrollLineUp(): void {
@@ -11,10 +11,10 @@
11
11
  // with the GNU Classpath Exception which is available at
12
12
  // https://www.gnu.org/software/classpath/license.html.
13
13
  //
14
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  // *****************************************************************************
16
16
 
17
- import { JsonRpcServer } from '@theia/core/lib/common/messaging/proxy-factory';
17
+ import { RpcServer } from '@theia/core/lib/common/messaging/proxy-factory';
18
18
  import { Disposable } from '@theia/core';
19
19
 
20
20
  export interface TerminalProcessInfo {
@@ -24,7 +24,7 @@ export interface TerminalProcessInfo {
24
24
 
25
25
  export interface IBaseTerminalServerOptions { }
26
26
 
27
- export interface IBaseTerminalServer extends JsonRpcServer<IBaseTerminalClient> {
27
+ export interface IBaseTerminalServer extends RpcServer<IBaseTerminalClient> {
28
28
  create(IBaseTerminalServerOptions: object): Promise<number>;
29
29
  getProcessId(id: number): Promise<number>;
30
30
  getProcessInfo(id: number): Promise<TerminalProcessInfo>;
@@ -11,10 +11,10 @@
11
11
  // with the GNU Classpath Exception which is available at
12
12
  // https://www.gnu.org/software/classpath/license.html.
13
13
  //
14
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  // *****************************************************************************
16
16
 
17
- import { JsonRpcProxy } from '@theia/core';
17
+ import { RpcProxy } from '@theia/core';
18
18
  import { IBaseTerminalServer, IBaseTerminalServerOptions } from './base-terminal-protocol';
19
19
  import { OS } from '@theia/core/lib/common/os';
20
20
 
@@ -47,4 +47,4 @@ export interface IShellTerminalServerOptions extends IBaseTerminalServerOptions
47
47
  }
48
48
 
49
49
  export const ShellTerminalServerProxy = Symbol('ShellTerminalServerProxy');
50
- export type ShellTerminalServerProxy = JsonRpcProxy<IShellTerminalServer>;
50
+ export type ShellTerminalServerProxy = RpcProxy<IShellTerminalServer>;
@@ -11,7 +11,7 @@
11
11
  // with the GNU Classpath Exception which is available at
12
12
  // https://www.gnu.org/software/classpath/license.html.
13
13
  //
14
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  // *****************************************************************************
16
16
 
17
17
  import { interfaces } from '@theia/core/shared/inversify';
@@ -11,7 +11,7 @@
11
11
  // with the GNU Classpath Exception which is available at
12
12
  // https://www.gnu.org/software/classpath/license.html.
13
13
  //
14
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  // *****************************************************************************
16
16
 
17
17
  import { IBaseTerminalServer, IBaseTerminalServerOptions } from './base-terminal-protocol';
@@ -11,7 +11,7 @@
11
11
  // with the GNU Classpath Exception which is available at
12
12
  // https://www.gnu.org/software/classpath/license.html.
13
13
  //
14
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  // *****************************************************************************
16
16
 
17
17
  import { injectable } from '@theia/core/shared/inversify';
@@ -11,7 +11,7 @@
11
11
  // with the GNU Classpath Exception which is available at
12
12
  // https://www.gnu.org/software/classpath/license.html.
13
13
  //
14
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  // *****************************************************************************
16
16
 
17
17
  import { inject, injectable, named } from '@theia/core/shared/inversify';
@@ -11,7 +11,7 @@
11
11
  // with the GNU Classpath Exception which is available at
12
12
  // https://www.gnu.org/software/classpath/license.html.
13
13
  //
14
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  // *****************************************************************************
16
16
 
17
17
  import { wait } from '@theia/core/lib/common/promise-util';
@@ -11,7 +11,7 @@
11
11
  // with the GNU Classpath Exception which is available at
12
12
  // https://www.gnu.org/software/classpath/license.html.
13
13
  //
14
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  // *****************************************************************************
16
16
 
17
17
  import { Emitter, Event } from '@theia/core/lib/common/event';
package/src/node/index.ts CHANGED
@@ -11,7 +11,7 @@
11
11
  // with the GNU Classpath Exception which is available at
12
12
  // https://www.gnu.org/software/classpath/license.html.
13
13
  //
14
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  // *****************************************************************************
16
16
 
17
17
  export * from './terminal-backend-module';
@@ -11,7 +11,7 @@
11
11
  // with the GNU Classpath Exception which is available at
12
12
  // https://www.gnu.org/software/classpath/license.html.
13
13
  //
14
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  // *****************************************************************************
16
16
 
17
17
  import { injectable, inject, named } from '@theia/core/shared/inversify';
@@ -11,7 +11,7 @@
11
11
  // with the GNU Classpath Exception which is available at
12
12
  // https://www.gnu.org/software/classpath/license.html.
13
13
  //
14
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  // *****************************************************************************
16
16
  import * as chai from 'chai';
17
17
  import { createTerminalTestContainer } from './test/terminal-test-container';
@@ -11,7 +11,7 @@
11
11
  // with the GNU Classpath Exception which is available at
12
12
  // https://www.gnu.org/software/classpath/license.html.
13
13
  //
14
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  // *****************************************************************************
16
16
 
17
17
  import { inject, injectable, named } from '@theia/core/shared/inversify';
@@ -11,7 +11,7 @@
11
11
  // with the GNU Classpath Exception which is available at
12
12
  // https://www.gnu.org/software/classpath/license.html.
13
13
  //
14
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  // *****************************************************************************
16
16
 
17
17
  import { createTerminalTestContainer } from './test/terminal-test-container';
@@ -11,7 +11,7 @@
11
11
  // with the GNU Classpath Exception which is available at
12
12
  // https://www.gnu.org/software/classpath/license.html.
13
13
  //
14
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  // *****************************************************************************
16
16
 
17
17
  import { injectable, inject, named } from '@theia/core/shared/inversify';
@@ -11,12 +11,12 @@
11
11
  // with the GNU Classpath Exception which is available at
12
12
  // https://www.gnu.org/software/classpath/license.html.
13
13
  //
14
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  // *****************************************************************************
16
16
 
17
17
  import { ContainerModule, Container, interfaces } from '@theia/core/shared/inversify';
18
18
  import { TerminalBackendContribution } from './terminal-backend-contribution';
19
- import { ConnectionHandler, JsonRpcConnectionHandler } from '@theia/core/lib/common/messaging';
19
+ import { ConnectionHandler, RpcConnectionHandler } from '@theia/core/lib/common/messaging';
20
20
  import { ShellProcess, ShellProcessFactory, ShellProcessOptions } from './shell-process';
21
21
  import { ITerminalServer, terminalPath } from '../common/terminal-protocol';
22
22
  import { IBaseTerminalClient, DispatchingBaseTerminalClient, IBaseTerminalServer } from '../common/base-terminal-protocol';
@@ -45,7 +45,7 @@ export function bindTerminalServer(bind: interfaces.Bind, { path, identifier, co
45
45
  return terminalServer;
46
46
  });
47
47
  bind(ConnectionHandler).toDynamicValue(ctx =>
48
- new JsonRpcConnectionHandler<IBaseTerminalClient>(path, client => {
48
+ new RpcConnectionHandler<IBaseTerminalClient>(path, client => {
49
49
  const disposable = dispatchingClient.push(client);
50
50
  client.onDidCloseConnection(() => disposable.dispose());
51
51
  return ctx.container.get(identifier);
@@ -11,7 +11,7 @@
11
11
  // with the GNU Classpath Exception which is available at
12
12
  // https://www.gnu.org/software/classpath/license.html.
13
13
  //
14
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  // *****************************************************************************
16
16
 
17
17
  import * as chai from 'chai';
@@ -11,7 +11,7 @@
11
11
  // with the GNU Classpath Exception which is available at
12
12
  // https://www.gnu.org/software/classpath/license.html.
13
13
  //
14
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  // *****************************************************************************
16
16
 
17
17
  import { inject, injectable, named } from '@theia/core/shared/inversify';
@@ -11,7 +11,7 @@
11
11
  // with the GNU Classpath Exception which is available at
12
12
  // https://www.gnu.org/software/classpath/license.html.
13
13
  //
14
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  // *****************************************************************************
16
16
  import { Container } from '@theia/core/shared/inversify';
17
17
  import { bindLogger } from '@theia/core/lib/node/logger-backend-module';
@@ -11,7 +11,7 @@
11
11
  // with the GNU Classpath Exception which is available at
12
12
  // https://www.gnu.org/software/classpath/license.html.
13
13
  //
14
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  // *****************************************************************************
16
16
 
17
17
  /* note: this bogus test file is required so that