@opensumi/ide-terminal-next 2.27.3-rc-1708395495.0 → 2.27.3-rc-1710386185.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 (176) hide show
  1. package/lib/browser/component/tab.item.d.ts.map +1 -1
  2. package/lib/browser/component/tab.item.js +12 -7
  3. package/lib/browser/component/tab.item.js.map +1 -1
  4. package/lib/browser/component/tab.module.less +5 -5
  5. package/lib/browser/component/tab.view.d.ts.map +1 -1
  6. package/lib/browser/component/tab.view.js +2 -1
  7. package/lib/browser/component/tab.view.js.map +1 -1
  8. package/lib/browser/component/terminal.widget.d.ts +1 -1
  9. package/lib/browser/component/terminal.widget.d.ts.map +1 -1
  10. package/lib/browser/contribution/terminal.command.d.ts +2 -2
  11. package/lib/browser/contribution/terminal.command.d.ts.map +1 -1
  12. package/lib/browser/contribution/terminal.lifecycle.d.ts.map +1 -1
  13. package/lib/browser/contribution/terminal.menu.d.ts +2 -2
  14. package/lib/browser/contribution/terminal.menu.d.ts.map +1 -1
  15. package/lib/browser/contribution/terminal.network.d.ts +2 -2
  16. package/lib/browser/contribution/terminal.network.d.ts.map +1 -1
  17. package/lib/browser/contribution/terminal.view.d.ts +1 -1
  18. package/lib/browser/contribution/terminal.view.d.ts.map +1 -1
  19. package/lib/browser/index.d.ts.map +1 -1
  20. package/lib/browser/links/base.d.ts +1 -1
  21. package/lib/browser/links/base.d.ts.map +1 -1
  22. package/lib/browser/links/external-link-provider-adapter.d.ts +2 -2
  23. package/lib/browser/links/external-link-provider-adapter.d.ts.map +1 -1
  24. package/lib/browser/links/external-link-provider-adapter.js.map +1 -1
  25. package/lib/browser/links/helpers.d.ts +1 -1
  26. package/lib/browser/links/helpers.d.ts.map +1 -1
  27. package/lib/browser/links/link-manager.d.ts +1 -1
  28. package/lib/browser/links/link-manager.d.ts.map +1 -1
  29. package/lib/browser/links/link.d.ts +1 -1
  30. package/lib/browser/links/link.d.ts.map +1 -1
  31. package/lib/browser/links/link.js.map +1 -1
  32. package/lib/browser/links/protocol-link-provider.d.ts +1 -1
  33. package/lib/browser/links/protocol-link-provider.d.ts.map +1 -1
  34. package/lib/browser/links/protocol-link-provider.js.map +1 -1
  35. package/lib/browser/links/validated-local-link-provider.d.ts +2 -2
  36. package/lib/browser/links/validated-local-link-provider.d.ts.map +1 -1
  37. package/lib/browser/links/validated-local-link-provider.js.map +1 -1
  38. package/lib/browser/terminal.addon.d.ts +1 -1
  39. package/lib/browser/terminal.addon.d.ts.map +1 -1
  40. package/lib/browser/terminal.addon.js +1 -1
  41. package/lib/browser/terminal.addon.js.map +1 -1
  42. package/lib/browser/terminal.api.d.ts +2 -2
  43. package/lib/browser/terminal.api.d.ts.map +1 -1
  44. package/lib/browser/terminal.api.js.map +1 -1
  45. package/lib/browser/terminal.client.d.ts +2 -2
  46. package/lib/browser/terminal.client.d.ts.map +1 -1
  47. package/lib/browser/terminal.color.d.ts +1 -1
  48. package/lib/browser/terminal.color.d.ts.map +1 -1
  49. package/lib/browser/terminal.context-key.d.ts +1 -1
  50. package/lib/browser/terminal.context-key.d.ts.map +1 -1
  51. package/lib/browser/terminal.context-menu.d.ts.map +1 -1
  52. package/lib/browser/terminal.controller.d.ts +2 -2
  53. package/lib/browser/terminal.controller.d.ts.map +1 -1
  54. package/lib/browser/terminal.environment.service.d.ts.map +1 -1
  55. package/lib/browser/terminal.error.d.ts +1 -1
  56. package/lib/browser/terminal.error.d.ts.map +1 -1
  57. package/lib/browser/terminal.ext.host.proxy.d.ts +1 -1
  58. package/lib/browser/terminal.ext.host.proxy.d.ts.map +1 -1
  59. package/lib/browser/terminal.internal.service.d.ts +1 -1
  60. package/lib/browser/terminal.internal.service.d.ts.map +1 -1
  61. package/lib/browser/terminal.network.d.ts +2 -2
  62. package/lib/browser/terminal.network.d.ts.map +1 -1
  63. package/lib/browser/terminal.preference.d.ts +1 -1
  64. package/lib/browser/terminal.preference.d.ts.map +1 -1
  65. package/lib/browser/terminal.profile.d.ts +2 -2
  66. package/lib/browser/terminal.profile.d.ts.map +1 -1
  67. package/lib/browser/terminal.profile.js +2 -3
  68. package/lib/browser/terminal.profile.js.map +1 -1
  69. package/lib/browser/terminal.restore.d.ts +2 -2
  70. package/lib/browser/terminal.restore.d.ts.map +1 -1
  71. package/lib/browser/terminal.search.d.ts +1 -1
  72. package/lib/browser/terminal.search.d.ts.map +1 -1
  73. package/lib/browser/terminal.service.d.ts +2 -2
  74. package/lib/browser/terminal.service.d.ts.map +1 -1
  75. package/lib/browser/terminal.theme.d.ts +1 -1
  76. package/lib/browser/terminal.theme.d.ts.map +1 -1
  77. package/lib/browser/terminal.theme.js.map +1 -1
  78. package/lib/browser/terminal.typeAhead.addon.d.ts +2 -2
  79. package/lib/browser/terminal.typeAhead.addon.d.ts.map +1 -1
  80. package/lib/browser/terminal.typeAhead.addon.js.map +1 -1
  81. package/lib/browser/terminal.view.d.ts +2 -2
  82. package/lib/browser/terminal.view.d.ts.map +1 -1
  83. package/lib/browser/xterm.d.ts.map +1 -1
  84. package/lib/browser/xterm.js.map +1 -1
  85. package/lib/common/api.d.ts +1 -1
  86. package/lib/common/api.d.ts.map +1 -1
  87. package/lib/common/client.d.ts +2 -2
  88. package/lib/common/client.d.ts.map +1 -1
  89. package/lib/common/controller.d.ts +6 -6
  90. package/lib/common/controller.d.ts.map +1 -1
  91. package/lib/common/controller.js.map +1 -1
  92. package/lib/common/environmentVariable.d.ts +1 -1
  93. package/lib/common/environmentVariable.d.ts.map +1 -1
  94. package/lib/common/environmentVariableCollection.d.ts +1 -1
  95. package/lib/common/environmentVariableCollection.d.ts.map +1 -1
  96. package/lib/common/extension.d.ts +1 -1
  97. package/lib/common/extension.d.ts.map +1 -1
  98. package/lib/common/link-computer.d.ts.map +1 -1
  99. package/lib/common/preference.d.ts.map +1 -1
  100. package/lib/common/preference.js.map +1 -1
  101. package/lib/common/profile.d.ts +2 -2
  102. package/lib/common/profile.d.ts.map +1 -1
  103. package/lib/common/pty.d.ts +2 -2
  104. package/lib/common/pty.d.ts.map +1 -1
  105. package/lib/common/pty.js.map +1 -1
  106. package/lib/common/resize.d.ts +1 -2
  107. package/lib/common/resize.d.ts.map +1 -1
  108. package/lib/node/index.d.ts.map +1 -1
  109. package/lib/node/pty.d.ts +1 -1
  110. package/lib/node/pty.d.ts.map +1 -1
  111. package/lib/node/shell.d.ts.map +1 -1
  112. package/lib/node/terminal.profile.service.d.ts.map +1 -1
  113. package/lib/node/terminal.profile.service.js.map +1 -1
  114. package/lib/node/terminal.service.client.d.ts +1 -1
  115. package/lib/node/terminal.service.client.d.ts.map +1 -1
  116. package/package.json +15 -15
  117. package/src/browser/component/tab.item.tsx +22 -10
  118. package/src/browser/component/tab.module.less +5 -5
  119. package/src/browser/component/tab.view.tsx +4 -3
  120. package/src/browser/component/terminal.view.tsx +4 -4
  121. package/src/browser/component/terminal.widget.tsx +4 -4
  122. package/src/browser/contribution/terminal.command.ts +12 -12
  123. package/src/browser/contribution/terminal.lifecycle.ts +2 -2
  124. package/src/browser/contribution/terminal.menu.ts +8 -8
  125. package/src/browser/contribution/terminal.network.ts +4 -4
  126. package/src/browser/contribution/terminal.view.ts +5 -5
  127. package/src/browser/index.ts +16 -16
  128. package/src/browser/links/base.ts +2 -2
  129. package/src/browser/links/external-link-provider-adapter.ts +5 -5
  130. package/src/browser/links/helpers.ts +2 -2
  131. package/src/browser/links/link-manager.ts +12 -12
  132. package/src/browser/links/link.ts +6 -6
  133. package/src/browser/links/protocol-link-provider.ts +4 -4
  134. package/src/browser/links/validated-local-link-provider.ts +6 -7
  135. package/src/browser/terminal.addon.ts +4 -2
  136. package/src/browser/terminal.api.ts +8 -7
  137. package/src/browser/terminal.client.ts +20 -20
  138. package/src/browser/terminal.color.ts +3 -3
  139. package/src/browser/terminal.context-key.ts +2 -2
  140. package/src/browser/terminal.context-menu.ts +4 -4
  141. package/src/browser/terminal.controller.ts +28 -28
  142. package/src/browser/terminal.environment.service.ts +3 -3
  143. package/src/browser/terminal.error.ts +6 -6
  144. package/src/browser/terminal.ext.host.proxy.ts +3 -3
  145. package/src/browser/terminal.internal.service.ts +8 -8
  146. package/src/browser/terminal.network.ts +5 -5
  147. package/src/browser/terminal.preference.ts +3 -3
  148. package/src/browser/terminal.profile.internal.ts +2 -2
  149. package/src/browser/terminal.profile.ts +11 -11
  150. package/src/browser/terminal.render.ts +1 -1
  151. package/src/browser/terminal.restore.ts +3 -3
  152. package/src/browser/terminal.search.ts +4 -4
  153. package/src/browser/terminal.service.ts +13 -13
  154. package/src/browser/terminal.theme.ts +8 -6
  155. package/src/browser/terminal.typeAhead.addon.ts +5 -5
  156. package/src/browser/terminal.view.ts +6 -6
  157. package/src/browser/xterm.ts +5 -4
  158. package/src/common/api.ts +1 -1
  159. package/src/common/client.ts +2 -2
  160. package/src/common/controller.ts +8 -6
  161. package/src/common/environmentVariable.ts +1 -1
  162. package/src/common/environmentVariableCollection.ts +3 -3
  163. package/src/common/extension.ts +2 -2
  164. package/src/common/link-computer.ts +1 -1
  165. package/src/common/preference.ts +1 -2
  166. package/src/common/profile.ts +3 -3
  167. package/src/common/pty.ts +3 -2
  168. package/src/common/resize.ts +1 -2
  169. package/src/node/index.ts +3 -3
  170. package/src/node/pty.manager.ts +1 -1
  171. package/src/node/pty.proxy.ts +1 -1
  172. package/src/node/pty.ts +3 -3
  173. package/src/node/shell.ts +2 -2
  174. package/src/node/terminal.profile.service.ts +5 -4
  175. package/src/node/terminal.service.client.ts +6 -6
  176. package/src/node/terminal.service.ts +2 -2
@@ -1,15 +1,15 @@
1
- import { observable, computed, makeObservable, action } from 'mobx';
1
+ import { action, computed, makeObservable, observable } from 'mobx';
2
2
 
3
- import { Injectable, Autowired } from '@opensumi/di';
4
- import { Emitter, Disposable, Event } from '@opensumi/ide-core-browser';
3
+ import { Autowired, Injectable } from '@opensumi/di';
4
+ import { Disposable, Emitter, Event } from '@opensumi/ide-core-browser';
5
5
 
6
6
  import {
7
+ IShellLaunchConfig,
7
8
  ITerminalGroupViewService,
8
- IWidget,
9
9
  ITerminalInternalService,
10
- userActionViewUuid,
10
+ IWidget,
11
11
  IWidgetGroup,
12
- IShellLaunchConfig,
12
+ userActionViewUuid,
13
13
  } from '../common';
14
14
 
15
15
  export class Widget extends Disposable implements IWidget {
@@ -1,11 +1,9 @@
1
1
  /* eslint-disable @typescript-eslint/ban-ts-comment */
2
2
  import { ITerminalOptions, ITheme, Terminal } from 'xterm';
3
- import type { CanvasAddon as CanvasAddonType } from 'xterm-addon-canvas';
4
3
  import { FitAddon } from 'xterm-addon-fit';
5
4
  import { ISearchOptions, SearchAddon } from 'xterm-addon-search';
6
- import type { WebglAddon as WebglAddonType } from 'xterm-addon-webgl';
7
5
 
8
- import { Injectable, Autowired, Injector, INJECTOR_TOKEN } from '@opensumi/di';
6
+ import { Autowired, INJECTOR_TOKEN, Injectable, Injector } from '@opensumi/di';
9
7
  import { IClipboardService } from '@opensumi/ide-core-browser';
10
8
  import { PreferenceService } from '@opensumi/ide-core-browser/lib/preferences/types';
11
9
  import { Disposable } from '@opensumi/ide-core-common';
@@ -14,7 +12,7 @@ import { WorkbenchThemeService } from '@opensumi/ide-theme/lib/browser/workbench
14
12
  import { PANEL_BACKGROUND } from '@opensumi/ide-theme/lib/common/color-registry';
15
13
  import { IThemeService } from '@opensumi/ide-theme/lib/common/theme.service';
16
14
 
17
- import { SupportedOptions, CodeTerminalSettingId } from '../common/preference';
15
+ import { CodeTerminalSettingId, SupportedOptions } from '../common/preference';
18
16
  import { IXTerm, RenderType } from '../common/xterm';
19
17
 
20
18
  import styles from './component/terminal.module.less';
@@ -28,6 +26,9 @@ import {
28
26
  TERMINAL_OVERVIEW_RULER_FIND_MATCH_FOREGROUND_COLOR,
29
27
  } from './terminal.color';
30
28
 
29
+ import type { CanvasAddon as CanvasAddonType } from 'xterm-addon-canvas';
30
+ import type { WebglAddon as WebglAddonType } from 'xterm-addon-webgl';
31
+
31
32
  export interface XTermOptions {
32
33
  cwd?: string;
33
34
  // 要传给 xterm 的参数和一些我们自己的参数(如 copyOnSelection)
package/src/common/api.ts CHANGED
@@ -2,7 +2,7 @@ import { Event } from '@opensumi/ide-core-common';
2
2
 
3
3
  import { ITerminalExitEvent, ITerminalTitleChangeEvent } from './client';
4
4
  import { ITerminalExternalClient } from './controller';
5
- import { TerminalOptions, ITerminalInfo } from './pty';
5
+ import { ITerminalInfo, TerminalOptions } from './pty';
6
6
 
7
7
  export const ITerminalApiService = Symbol('ITerminalApiService');
8
8
  export interface ITerminalApiService {
@@ -1,8 +1,8 @@
1
1
  import { Terminal } from 'xterm';
2
2
 
3
- import { IDisposable, Disposable, Event, Deferred } from '@opensumi/ide-core-common';
3
+ import { Deferred, Disposable, Event, IDisposable } from '@opensumi/ide-core-common';
4
4
 
5
- import { INodePtyInstance, TerminalOptions, ICreateTerminalOptions, IShellLaunchConfig } from './pty';
5
+ import { ICreateTerminalOptions, INodePtyInstance, IShellLaunchConfig, TerminalOptions } from './pty';
6
6
  import { IWidget } from './resize';
7
7
 
8
8
  export interface ITerminalDataEvent {
@@ -1,19 +1,21 @@
1
1
  import { IContextKeyService } from '@opensumi/ide-core-browser';
2
- import { Event, Disposable, Deferred, IDisposable, Uri } from '@opensumi/ide-core-common';
2
+ import { Deferred, Disposable, Event, IDisposable, Uri } from '@opensumi/ide-core-common';
3
3
 
4
4
  // eslint-disable-next-line import/no-restricted-paths
5
- import type { ILinkHoverTargetOptions } from '../browser/links/link-manager';
6
5
 
7
6
  import {
8
7
  ITerminalClient,
9
8
  ITerminalExitEvent,
10
- ITerminalTitleChangeEvent,
11
9
  ITerminalExternalLinkProvider,
10
+ ITerminalTitleChangeEvent,
12
11
  } from './client';
13
- import { ITerminalLaunchError, ITerminalProcessExtHostProxy, IStartExtensionTerminalRequest } from './extension';
12
+ import { IStartExtensionTerminalRequest, ITerminalLaunchError, ITerminalProcessExtHostProxy } from './extension';
14
13
  import { ITerminalProfile } from './profile';
15
- import { ITerminalInfo, ICreateTerminalOptions, TerminalOptions, IShellLaunchConfig } from './pty';
16
- import { IWidgetGroup, IWidget } from './resize';
14
+ import { ICreateTerminalOptions, IShellLaunchConfig, ITerminalInfo, TerminalOptions } from './pty';
15
+ import { IWidget, IWidgetGroup } from './resize';
16
+
17
+ // eslint-disable-next-line import/no-restricted-paths
18
+ import type { ILinkHoverTargetOptions } from '../browser/links/link-manager';
17
19
 
18
20
  export interface ITerminalExternalClient {
19
21
  readonly id: string;
@@ -1,4 +1,4 @@
1
- import { Event, OperatingSystem, IProcessEnvironment } from '@opensumi/ide-core-common';
1
+ import { Event, IProcessEnvironment, OperatingSystem } from '@opensumi/ide-core-common';
2
2
 
3
3
  export const EnvironmentVariableServiceToken = Symbol('EnvironmentVariableServiceToken');
4
4
 
@@ -8,11 +8,11 @@
8
8
  import { IProcessEnvironment, OperatingSystem } from '@opensumi/ide-core-common';
9
9
 
10
10
  import {
11
- IMergedEnvironmentVariableCollection,
12
- IExtensionOwnedEnvironmentVariableMutator,
11
+ EnvironmentVariableMutatorType,
13
12
  IEnvironmentVariableCollection,
13
+ IExtensionOwnedEnvironmentVariableMutator,
14
+ IMergedEnvironmentVariableCollection,
14
15
  IMergedEnvironmentVariableCollectionDiff,
15
- EnvironmentVariableMutatorType,
16
16
  } from './environmentVariable';
17
17
  export class MergedEnvironmentVariableCollection implements IMergedEnvironmentVariableCollection {
18
18
  readonly map: Map<string, IExtensionOwnedEnvironmentVariableMutator[]> = new Map();
@@ -1,7 +1,7 @@
1
- import type vscode from 'vscode';
2
-
3
1
  import { Event, IDisposable, URI } from '@opensumi/ide-core-common';
4
2
 
3
+ import type vscode from 'vscode';
4
+
5
5
  export interface IProcessDataEvent {
6
6
  data: string;
7
7
  sync: boolean;
@@ -4,7 +4,7 @@
4
4
  *--------------------------------------------------------------------------------------------*/
5
5
  // Some code copied and modified from https://github.com/microsoft/vscode/blob/1.44.0/src/vs/editor/common/modes/linkComputer.ts
6
6
 
7
- import { IRange, URI, CharCode, CharacterClassifier } from '@opensumi/ide-core-common';
7
+ import { CharCode, CharacterClassifier, IRange, URI } from '@opensumi/ide-core-common';
8
8
 
9
9
  /**
10
10
  * A link inside the editor.
@@ -1,5 +1,4 @@
1
- import { Event, TerminalSettingsId } from '@opensumi/ide-core-common';
2
- import { localize } from '@opensumi/ide-core-common';
1
+ import { Event, TerminalSettingsId, localize } from '@opensumi/ide-core-common';
3
2
  import { PreferenceSchema } from '@opensumi/ide-core-common/lib/preferences';
4
3
 
5
4
  import { RenderType } from './xterm';
@@ -1,6 +1,4 @@
1
- import type vscode from 'vscode';
2
-
3
- import { IDisposable, Event, URI, OperatingSystem } from '@opensumi/ide-core-common';
1
+ import { Event, IDisposable, OperatingSystem, URI } from '@opensumi/ide-core-common';
4
2
 
5
3
  import {
6
4
  ICreateContributedTerminalProfileOptions,
@@ -10,6 +8,8 @@ import {
10
8
  TerminalIcon,
11
9
  } from '..';
12
10
 
11
+ import type vscode from 'vscode';
12
+
13
13
  export interface IResolveDefaultProfileOptions {
14
14
  os?: OperatingSystem;
15
15
  }
package/src/common/pty.ts CHANGED
@@ -1,15 +1,16 @@
1
1
  import { IPty as INodePty } from 'node-pty';
2
2
  import * as pty from 'node-pty';
3
- import type vscode from 'vscode';
4
3
  import { Terminal as XTerm } from 'xterm';
5
4
 
6
- import { MaybePromise, Uri, OperatingSystem, IThemeColor } from '@opensumi/ide-core-common';
5
+ import { IThemeColor, MaybePromise, OperatingSystem, Uri } from '@opensumi/ide-core-common';
7
6
 
8
7
  import { ITerminalError } from './error';
9
8
  import { ITerminalEnvironment, ITerminalProcessExtHostProxy, TerminalLocation } from './extension';
10
9
  import { IDetectProfileOptions, ITerminalProfile } from './profile';
11
10
  import { WindowsShellType } from './shell';
12
11
 
12
+ import type vscode from 'vscode';
13
+
13
14
  export interface IPtySpawnOptions {
14
15
  /**
15
16
  * 恢复终端的历史记录的特性
@@ -1,5 +1,4 @@
1
- import { Event } from '@opensumi/ide-core-common';
2
- import { Disposable } from '@opensumi/ide-core-common';
1
+ import { Disposable, Event } from '@opensumi/ide-core-common';
3
2
 
4
3
  import { IShellLaunchConfig } from './pty';
5
4
 
package/src/node/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Provider, Injectable } from '@opensumi/di';
1
+ import { Injectable, Provider } from '@opensumi/di';
2
2
  import { NodeModule } from '@opensumi/ide-core-node';
3
3
 
4
4
  import {
@@ -9,8 +9,8 @@ import {
9
9
  ITerminalServicePath,
10
10
  } from '../common';
11
11
 
12
- import { PtyService, IPtyService } from './pty';
13
- import { PtyServiceManagerToken, PtyServiceManager } from './pty.manager';
12
+ import { IPtyService, PtyService } from './pty';
13
+ import { PtyServiceManager, PtyServiceManagerToken } from './pty.manager';
14
14
  import { TerminalProcessServiceImpl } from './terminal.process.service';
15
15
  import { ITerminalProfileServiceNode, TerminalProfileServiceNode } from './terminal.profile.service';
16
16
  import { TerminalServiceImpl } from './terminal.service';
@@ -1,6 +1,6 @@
1
1
  import * as pty from 'node-pty';
2
2
 
3
- import { Injectable, Autowired } from '@opensumi/di';
3
+ import { Autowired, Injectable } from '@opensumi/di';
4
4
  import { INodeLogger } from '@opensumi/ide-core-node';
5
5
 
6
6
  import { IPtyProcessProxy, IPtyProxyRPCService, IPtySpawnOptions, IShellLaunchConfig } from '../common';
@@ -8,7 +8,7 @@ import * as pty from 'node-pty';
8
8
  import { RPCServiceCenter, initRPCService } from '@opensumi/ide-connection';
9
9
  import { SumiConnection } from '@opensumi/ide-connection/lib/common/rpc/connection';
10
10
  import { DisposableCollection, getDebugLogger } from '@opensumi/ide-core-node';
11
- import { isMacintosh, isLinux } from '@opensumi/ide-utils/lib/platform';
11
+ import { isLinux, isMacintosh } from '@opensumi/ide-utils/lib/platform';
12
12
 
13
13
  import {
14
14
  IPtyProxyRPCService,
package/src/node/pty.ts CHANGED
@@ -12,12 +12,12 @@ import omit from 'lodash/omit';
12
12
  import * as pty from 'node-pty';
13
13
  import * as osLocale from 'os-locale';
14
14
 
15
- import { Injectable, Autowired } from '@opensumi/di';
16
- import { Disposable, Emitter, INodeLogger, isWindows, path, URI } from '@opensumi/ide-core-node';
15
+ import { Autowired, Injectable } from '@opensumi/di';
16
+ import { Disposable, Emitter, INodeLogger, URI, isWindows, path } from '@opensumi/ide-core-node';
17
17
  import { getShellPath } from '@opensumi/ide-core-node/lib/bootstrap/shell-path';
18
18
 
19
19
  import { IShellLaunchConfig, ITerminalLaunchError } from '../common';
20
- import { IProcessReadyEvent, IProcessExitEvent } from '../common/process';
20
+ import { IProcessExitEvent, IProcessReadyEvent } from '../common/process';
21
21
  import { IPtyProcessProxy, IPtySpawnOptions } from '../common/pty';
22
22
 
23
23
  import { IPtyServiceManager, PtyServiceManagerToken } from './pty.manager';
package/src/node/shell.ts CHANGED
@@ -8,9 +8,9 @@
8
8
  // - https://github.com/microsoft/vscode/blob/ff383268424b1d4b6620e7ea197fb13ae513414f/src/vs/base/node/shell.ts
9
9
 
10
10
  import fs from 'fs';
11
- import { userInfo, release } from 'os';
11
+ import { release, userInfo } from 'os';
12
12
 
13
- import { IProcessEnvironment, isLinux, isMacintosh, OperatingSystem, path } from '@opensumi/ide-core-common';
13
+ import { IProcessEnvironment, OperatingSystem, isLinux, isMacintosh, path } from '@opensumi/ide-core-common';
14
14
  import { isWindows } from '@opensumi/ide-core-node';
15
15
 
16
16
  export const WINDOWS_GIT_BASH_PATHS = [
@@ -6,11 +6,10 @@
6
6
  // some code copied and modified from https://github.com/microsoft/vscode/blob/ff383268424b1d4b6620e7ea197fb13ae513414f/src/vs/platform/terminal/node/terminalProfiles.ts
7
7
 
8
8
  import { readFile } from 'fs-extra';
9
- import type vscode from 'vscode';
10
9
 
11
- import { Injectable, Autowired } from '@opensumi/di';
10
+ import { Autowired, Injectable } from '@opensumi/di';
12
11
  import { URI } from '@opensumi/ide-core-common';
13
- import { INodeLogger, path, isWindows } from '@opensumi/ide-core-node';
12
+ import { INodeLogger, isWindows, path } from '@opensumi/ide-core-node';
14
13
 
15
14
  import { IDetectProfileOptions, ITerminalEnvironment } from '..';
16
15
  import {
@@ -20,7 +19,9 @@ import {
20
19
  ProfileSource,
21
20
  } from '../common/profile';
22
21
 
23
- import { exists, findExecutable, getPowershellPaths, WINDOWS_GIT_BASH_PATHS } from './shell';
22
+ import { WINDOWS_GIT_BASH_PATHS, exists, findExecutable, getPowershellPaths } from './shell';
23
+
24
+ import type vscode from 'vscode';
24
25
 
25
26
  function applyConfigProfilesToMap(
26
27
  configProfiles: { [key: string]: IUnresolvedTerminalProfile } | undefined,
@@ -1,19 +1,19 @@
1
- import { Injectable, Autowired } from '@opensumi/di';
1
+ import { Autowired, Injectable } from '@opensumi/di';
2
2
  import { RPCService } from '@opensumi/ide-connection';
3
- import { INodeLogger, OperatingSystem, isWindows, isMacintosh } from '@opensumi/ide-core-node';
3
+ import { INodeLogger, OperatingSystem, isMacintosh, isWindows } from '@opensumi/ide-core-node';
4
4
 
5
5
  import {
6
+ INodePtyInstance,
6
7
  IShellLaunchConfig,
8
+ ITerminalError,
7
9
  ITerminalNodeService,
8
10
  ITerminalServiceClient,
9
- INodePtyInstance,
10
- ITerminalError,
11
11
  } from '../common';
12
12
  import { IDetectProfileOptions, ITerminalProfile } from '../common/profile';
13
13
  import { IPtyProcessProxy } from '../common/pty';
14
- import { WindowsShellType, WINDOWS_DEFAULT_SHELL_PATH_MAPS } from '../common/shell';
14
+ import { WINDOWS_DEFAULT_SHELL_PATH_MAPS, WindowsShellType } from '../common/shell';
15
15
 
16
- import { findShellExecutableAsync, getSystemShell, WINDOWS_GIT_BASH_PATHS } from './shell';
16
+ import { WINDOWS_GIT_BASH_PATHS, findShellExecutableAsync, getSystemShell } from './shell';
17
17
  import { ITerminalProfileServiceNode, TerminalProfileServiceNode } from './terminal.profile.service';
18
18
 
19
19
  /**
@@ -1,5 +1,5 @@
1
- import { Injectable, Autowired, INJECTOR_TOKEN, Injector } from '@opensumi/di';
2
- import { INodeLogger, AppConfig, isDevelopment, isElectronNode } from '@opensumi/ide-core-node';
1
+ import { Autowired, INJECTOR_TOKEN, Injectable, Injector } from '@opensumi/di';
2
+ import { AppConfig, INodeLogger, isDevelopment, isElectronNode } from '@opensumi/ide-core-node';
3
3
 
4
4
  import { ETerminalErrorType, ITerminalNodeService, ITerminalServiceClient, TERMINAL_ID_SEPARATOR } from '../common';
5
5
  import { IPtyProcessProxy, IShellLaunchConfig } from '../common/pty';