@opensumi/ide-terminal-next 3.7.2-next-1740052080.0 → 3.7.2-next-1740054042.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 (244) hide show
  1. package/LICENSE +21 -0
  2. package/lib/browser/component/resize.delegate.d.ts +14 -0
  3. package/lib/browser/component/resize.delegate.d.ts.map +1 -0
  4. package/lib/browser/component/resize.delegate.js +46 -0
  5. package/lib/browser/component/resize.delegate.js.map +1 -0
  6. package/lib/browser/component/resize.module.less +77 -0
  7. package/lib/browser/component/resize.view.d.ts +16 -0
  8. package/lib/browser/component/resize.view.d.ts.map +1 -0
  9. package/lib/browser/component/resize.view.js +55 -0
  10. package/lib/browser/component/resize.view.js.map +1 -0
  11. package/lib/browser/component/search.module.less +61 -0
  12. package/lib/browser/component/search.view.d.ts +3 -0
  13. package/lib/browser/component/search.view.d.ts.map +1 -0
  14. package/lib/browser/component/search.view.js +89 -0
  15. package/lib/browser/component/search.view.js.map +1 -0
  16. package/lib/browser/component/tab.item.d.ts +7 -0
  17. package/lib/browser/component/tab.item.d.ts.map +1 -0
  18. package/lib/browser/component/tab.item.js +121 -0
  19. package/lib/browser/component/tab.item.js.map +1 -0
  20. package/lib/browser/component/tab.module.less +174 -0
  21. package/lib/browser/component/tab.view.d.ts +4 -0
  22. package/lib/browser/component/tab.view.d.ts.map +1 -0
  23. package/lib/browser/component/tab.view.js +65 -0
  24. package/lib/browser/component/tab.view.js.map +1 -0
  25. package/lib/browser/component/terminal.module.less +50 -0
  26. package/lib/browser/component/terminal.variable.d.ts +8 -0
  27. package/lib/browser/component/terminal.variable.d.ts.map +1 -0
  28. package/lib/browser/component/terminal.variable.js +44 -0
  29. package/lib/browser/component/terminal.variable.js.map +1 -0
  30. package/lib/browser/component/terminal.view.d.ts +5 -0
  31. package/lib/browser/component/terminal.view.d.ts.map +1 -0
  32. package/lib/browser/component/terminal.view.js +63 -0
  33. package/lib/browser/component/terminal.view.js.map +1 -0
  34. package/lib/browser/component/terminal.widget.d.ts +10 -0
  35. package/lib/browser/component/terminal.widget.d.ts.map +1 -0
  36. package/lib/browser/component/terminal.widget.js +65 -0
  37. package/lib/browser/component/terminal.widget.js.map +1 -0
  38. package/lib/browser/component/variable.module.less +15 -0
  39. package/lib/browser/contribution/index.d.ts.map +1 -0
  40. package/lib/browser/contribution/index.js +11 -0
  41. package/lib/browser/contribution/index.js.map +1 -0
  42. package/lib/browser/contribution/terminal.command.js +328 -0
  43. package/lib/browser/contribution/terminal.keybinding.js +87 -0
  44. package/lib/browser/contribution/terminal.lifecycle.js +52 -0
  45. package/lib/browser/contribution/terminal.menu.js +168 -0
  46. package/lib/browser/contribution/terminal.network.js +44 -0
  47. package/lib/browser/contribution/terminal.preference.js +43 -0
  48. package/lib/browser/contribution/terminal.view.js +57 -0
  49. package/lib/browser/index.js +124 -0
  50. package/lib/browser/links/base.d.ts +8 -0
  51. package/lib/browser/links/base.d.ts.map +1 -0
  52. package/lib/browser/links/base.js +13 -0
  53. package/lib/browser/links/base.js.map +1 -0
  54. package/lib/browser/links/external-link-provider-adapter.d.ts +21 -0
  55. package/lib/browser/links/external-link-provider-adapter.d.ts.map +1 -0
  56. package/lib/browser/links/external-link-provider-adapter.js +74 -0
  57. package/lib/browser/links/external-link-provider-adapter.js.map +1 -0
  58. package/lib/browser/links/helpers.d.ts +7 -0
  59. package/lib/browser/links/helpers.d.ts.map +1 -0
  60. package/lib/browser/links/helpers.js +128 -0
  61. package/lib/browser/links/helpers.js.map +1 -0
  62. package/lib/browser/links/link-manager.d.ts +92 -0
  63. package/lib/browser/links/link-manager.d.ts.map +1 -0
  64. package/lib/browser/links/link-manager.js +342 -0
  65. package/lib/browser/links/link-manager.js.map +1 -0
  66. package/lib/browser/links/link.d.ts +31 -0
  67. package/lib/browser/links/link.d.ts.map +1 -0
  68. package/lib/browser/links/link.js +136 -0
  69. package/lib/browser/links/link.js.map +1 -0
  70. package/lib/browser/links/protocol-link-provider.d.ts +14 -0
  71. package/lib/browser/links/protocol-link-provider.d.ts.map +1 -0
  72. package/lib/browser/links/protocol-link-provider.js +71 -0
  73. package/lib/browser/links/protocol-link-provider.js.map +1 -0
  74. package/lib/browser/links/validated-local-link-provider.d.ts +41 -0
  75. package/lib/browser/links/validated-local-link-provider.d.ts.map +1 -0
  76. package/lib/browser/links/validated-local-link-provider.js +235 -0
  77. package/lib/browser/links/validated-local-link-provider.js.map +1 -0
  78. package/lib/browser/links/word-link-provider.d.ts +29 -0
  79. package/lib/browser/links/word-link-provider.d.ts.map +1 -0
  80. package/lib/browser/links/word-link-provider.js +153 -0
  81. package/lib/browser/links/word-link-provider.js.map +1 -0
  82. package/lib/browser/terminal.addon.js +83 -0
  83. package/lib/browser/terminal.api.js +162 -0
  84. package/lib/browser/terminal.client.js +680 -0
  85. package/lib/browser/terminal.color.js +240 -0
  86. package/lib/browser/terminal.context-key.js +29 -0
  87. package/lib/browser/terminal.context-menu.js +96 -0
  88. package/lib/browser/terminal.controller.js +669 -0
  89. package/lib/browser/terminal.environment.service.js +153 -0
  90. package/lib/browser/terminal.error.js +61 -0
  91. package/lib/browser/terminal.ext.host.proxy.js +108 -0
  92. package/lib/browser/terminal.hover.manager.js +85 -0
  93. package/lib/browser/terminal.input.js +32 -0
  94. package/lib/browser/terminal.internal.service.js +107 -0
  95. package/lib/browser/terminal.network.js +150 -0
  96. package/lib/browser/terminal.preference.js +136 -0
  97. package/lib/browser/terminal.profile.internal.js +104 -0
  98. package/lib/browser/terminal.profile.js +211 -0
  99. package/lib/browser/terminal.render.js +25 -0
  100. package/lib/browser/terminal.restore.js +49 -0
  101. package/lib/browser/terminal.search.js +109 -0
  102. package/lib/browser/terminal.service.js +163 -0
  103. package/lib/common/api.d.ts +22 -0
  104. package/lib/common/api.d.ts.map +1 -0
  105. package/lib/common/api.js +5 -0
  106. package/lib/common/api.js.map +1 -0
  107. package/lib/common/client.d.ts +199 -0
  108. package/lib/common/client.d.ts.map +1 -0
  109. package/lib/common/client.js +6 -0
  110. package/lib/common/client.js.map +1 -0
  111. package/lib/common/controller.d.ts +149 -0
  112. package/lib/common/controller.d.ts.map +1 -0
  113. package/lib/common/controller.js +8 -0
  114. package/lib/common/controller.js.map +1 -0
  115. package/lib/common/environmentVariable.d.ts +116 -0
  116. package/lib/common/environmentVariable.d.ts.map +1 -0
  117. package/lib/common/environmentVariable.js +30 -0
  118. package/lib/common/environmentVariable.js.map +1 -0
  119. package/lib/common/environmentVariableCollection.d.ts +9 -0
  120. package/lib/common/environmentVariableCollection.d.ts.map +1 -0
  121. package/lib/common/environmentVariableCollection.js +140 -0
  122. package/lib/common/environmentVariableCollection.js.map +1 -0
  123. package/lib/common/error.d.ts +41 -0
  124. package/lib/common/error.d.ts.map +1 -0
  125. package/lib/common/error.js +13 -0
  126. package/lib/common/error.js.map +1 -0
  127. package/lib/common/extension.d.ts +139 -0
  128. package/lib/common/extension.d.ts.map +1 -0
  129. package/lib/common/extension.js +57 -0
  130. package/lib/common/extension.js.map +1 -0
  131. package/lib/common/index.d.ts +17 -0
  132. package/lib/common/index.d.ts.map +1 -0
  133. package/lib/common/index.js +20 -0
  134. package/lib/common/index.js.map +1 -0
  135. package/lib/common/link-computer.d.ts +56 -0
  136. package/lib/common/link-computer.d.ts.map +1 -0
  137. package/lib/common/link-computer.js +282 -0
  138. package/lib/common/link-computer.js.map +1 -0
  139. package/lib/common/network.d.ts +48 -0
  140. package/lib/common/network.d.ts.map +1 -0
  141. package/lib/common/network.js +10 -0
  142. package/lib/common/network.js.map +1 -0
  143. package/lib/common/preference.d.ts +134 -0
  144. package/lib/common/preference.d.ts.map +1 -0
  145. package/lib/common/preference.js +199 -0
  146. package/lib/common/preference.js.map +1 -0
  147. package/lib/common/process.d.ts +8 -0
  148. package/lib/common/process.d.ts.map +1 -0
  149. package/lib/common/process.js +3 -0
  150. package/lib/common/process.js.map +1 -0
  151. package/lib/common/profile.d.ts +99 -0
  152. package/lib/common/profile.d.ts.map +1 -0
  153. package/lib/common/profile.js +27 -0
  154. package/lib/common/profile.js.map +1 -0
  155. package/lib/common/pty.d.ts +525 -0
  156. package/lib/common/pty.d.ts.map +1 -0
  157. package/lib/common/pty.js +28 -0
  158. package/lib/common/pty.js.map +1 -0
  159. package/lib/common/render.d.ts +29 -0
  160. package/lib/common/render.d.ts.map +1 -0
  161. package/lib/common/render.js +10 -0
  162. package/lib/common/render.js.map +1 -0
  163. package/lib/common/resize.d.ts +43 -0
  164. package/lib/common/resize.d.ts.map +1 -0
  165. package/lib/common/resize.js +3 -0
  166. package/lib/common/resize.js.map +1 -0
  167. package/lib/common/restore.d.ts +6 -0
  168. package/lib/common/restore.d.ts.map +1 -0
  169. package/lib/common/restore.js +5 -0
  170. package/lib/common/restore.js.map +1 -0
  171. package/lib/common/service.d.ts +96 -0
  172. package/lib/common/service.d.ts.map +1 -0
  173. package/lib/common/service.js +6 -0
  174. package/lib/common/service.js.map +1 -0
  175. package/lib/common/shell.d.ts +11 -0
  176. package/lib/common/shell.d.ts.map +1 -0
  177. package/lib/common/shell.js +14 -0
  178. package/lib/common/shell.js.map +1 -0
  179. package/lib/common/theme.d.ts +6 -0
  180. package/lib/common/theme.d.ts.map +1 -0
  181. package/lib/common/theme.js +5 -0
  182. package/lib/common/theme.js.map +1 -0
  183. package/lib/common/utils.d.ts +4 -0
  184. package/lib/common/utils.d.ts.map +1 -0
  185. package/lib/common/utils.js +15 -0
  186. package/lib/common/utils.js.map +1 -0
  187. package/lib/common/xterm.d.ts +27 -0
  188. package/lib/common/xterm.d.ts.map +1 -0
  189. package/lib/common/xterm.js +10 -0
  190. package/lib/common/xterm.js.map +1 -0
  191. package/lib/index.js +5 -0
  192. package/lib/node/data-store.d.ts +13 -0
  193. package/lib/node/data-store.d.ts.map +1 -0
  194. package/lib/node/data-store.js +6 -0
  195. package/lib/node/data-store.js.map +1 -0
  196. package/lib/node/index.d.ts +10 -0
  197. package/lib/node/index.d.ts.map +1 -0
  198. package/lib/node/index.js +64 -0
  199. package/lib/node/index.js.map +1 -0
  200. package/lib/node/pty.d.ts +42 -0
  201. package/lib/node/pty.d.ts.map +1 -0
  202. package/lib/node/pty.js +277 -0
  203. package/lib/node/pty.js.map +1 -0
  204. package/lib/node/pty.manager.d.ts +52 -0
  205. package/lib/node/pty.manager.d.ts.map +1 -0
  206. package/lib/node/pty.manager.js +157 -0
  207. package/lib/node/pty.manager.js.map +1 -0
  208. package/lib/node/pty.manager.remote.d.ts +23 -0
  209. package/lib/node/pty.manager.remote.d.ts.map +1 -0
  210. package/lib/node/pty.manager.remote.js +124 -0
  211. package/lib/node/pty.manager.remote.js.map +1 -0
  212. package/lib/node/pty.proxy.d.ts +45 -0
  213. package/lib/node/pty.proxy.d.ts.map +1 -0
  214. package/lib/node/pty.proxy.js +277 -0
  215. package/lib/node/pty.proxy.js.map +1 -0
  216. package/lib/node/pty.proxy.remote.exec.d.ts +2 -0
  217. package/lib/node/pty.proxy.remote.exec.d.ts.map +1 -0
  218. package/lib/node/pty.proxy.remote.exec.js +7 -0
  219. package/lib/node/pty.proxy.remote.exec.js.map +1 -0
  220. package/lib/node/shell-integration.service.d.ts +24 -0
  221. package/lib/node/shell-integration.service.d.ts.map +1 -0
  222. package/lib/node/shell-integration.service.js +187 -0
  223. package/lib/node/shell-integration.service.js.map +1 -0
  224. package/lib/node/shell.d.ts +20 -0
  225. package/lib/node/shell.d.ts.map +1 -0
  226. package/lib/node/shell.js +199 -0
  227. package/lib/node/shell.js.map +1 -0
  228. package/lib/node/terminal.process.service.d.ts +5 -0
  229. package/lib/node/terminal.process.service.d.ts.map +1 -0
  230. package/lib/node/terminal.process.service.js +15 -0
  231. package/lib/node/terminal.process.service.js.map +1 -0
  232. package/lib/node/terminal.profile.service.d.ts +19 -0
  233. package/lib/node/terminal.profile.service.d.ts.map +1 -0
  234. package/lib/node/terminal.profile.service.js +228 -0
  235. package/lib/node/terminal.profile.service.js.map +1 -0
  236. package/lib/node/terminal.service.client.d.ts +51 -0
  237. package/lib/node/terminal.service.client.d.ts.map +1 -0
  238. package/lib/node/terminal.service.client.js +159 -0
  239. package/lib/node/terminal.service.client.js.map +1 -0
  240. package/lib/node/terminal.service.d.ts +30 -0
  241. package/lib/node/terminal.service.d.ts.map +1 -0
  242. package/lib/node/terminal.service.js +246 -0
  243. package/lib/node/terminal.service.js.map +1 -0
  244. package/package.json +18 -18
@@ -0,0 +1,199 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.terminalPreferenceSchema = exports.TerminalCursorStyle = exports.SupportedOptionsName = exports.ITerminalPreference = void 0;
4
+ const ide_core_common_1 = require("@opensumi/ide-core-common");
5
+ const xterm_1 = require("./xterm");
6
+ exports.ITerminalPreference = Symbol('ITerminalPreference');
7
+ exports.SupportedOptionsName = {
8
+ type: 'type',
9
+ fontFamily: 'fontFamily',
10
+ fontSize: 'fontSize',
11
+ fontWeight: 'fontWeight',
12
+ lineHeight: 'lineHeight',
13
+ cursorBlink: 'cursorBlink',
14
+ scrollback: 'scrollback',
15
+ copyOnSelection: 'copyOnSelection',
16
+ cursorStyle: 'cursorStyle',
17
+ };
18
+ exports.TerminalCursorStyle = {
19
+ BLOCK: 'block',
20
+ LINE: 'line', // Xterm 中的 "bar" Style,就是一条线也就是Line
21
+ UNDERLINE: 'underline',
22
+ };
23
+ const shellDeprecationMessageLinux = (0, ide_core_common_1.localize)('terminal.integrated.shell.linux.deprecation', 'This is deprecated, the new recommended way to configure your default shell is by creating a terminal profile in {0} and setting its profile name as the default in {1}. This will currently take priority over the new profiles settings but that will change in the future.', '`#terminal.integrated.profiles.linux#`');
24
+ const shellDeprecationMessageOsx = (0, ide_core_common_1.localize)('terminal.integrated.shell.osx.deprecation', 'This is deprecated, the new recommended way to configure your default shell is by creating a terminal profile in {0} and setting its profile name as the default in {1}. This will currently take priority over the new profiles settings but that will change in the future.', '`#terminal.integrated.profiles.osx#`');
25
+ const shellDeprecationMessageWindows = (0, ide_core_common_1.localize)('terminal.integrated.shell.windows.deprecation', 'This is deprecated, the new recommended way to configure your default shell is by creating a terminal profile in {0} and setting its profile name as the default in {1}. This will currently take priority over the new profiles settings but that will change in the future.', '`#terminal.integrated.profiles.windows#`');
26
+ exports.terminalPreferenceSchema = {
27
+ type: 'object',
28
+ properties: {
29
+ // 终端
30
+ ["terminal.type" /* TerminalSettingsId.Type */]: {
31
+ type: 'string',
32
+ enum: ['zsh', 'bash', 'sh', 'default'], // for unix
33
+ default: 'default',
34
+ description: '%preference.terminal.typeDesc%',
35
+ },
36
+ ["terminal.fontFamily" /* TerminalSettingsId.FontFamily */]: {
37
+ type: 'string',
38
+ },
39
+ ["terminal.fontSize" /* TerminalSettingsId.FontSize */]: {
40
+ type: 'number',
41
+ default: 12,
42
+ },
43
+ ["terminal.fontWeight" /* TerminalSettingsId.FontWeight */]: {
44
+ type: 'string',
45
+ enum: ['normal', 'bold'],
46
+ default: 400,
47
+ },
48
+ ["terminal.lineHeight" /* TerminalSettingsId.LineHeight */]: {
49
+ type: 'number',
50
+ default: 1,
51
+ },
52
+ ["terminal.cursorBlink" /* TerminalSettingsId.CursorBlink */]: {
53
+ type: 'boolean',
54
+ default: false,
55
+ },
56
+ ["terminal.scrollback" /* TerminalSettingsId.Scrollback */]: {
57
+ type: 'number',
58
+ default: 1000,
59
+ },
60
+ ["terminal.integrated.shellArgs.linux" /* CodeTerminalSettingId.ShellArgsLinux */]: {
61
+ type: 'array',
62
+ default: [],
63
+ description: '%preference.terminal.integrated.shellArgs.linuxDesc%',
64
+ markdownDeprecationMessage: shellDeprecationMessageLinux,
65
+ },
66
+ ["terminal.integrated.shellArgs.osx" /* CodeTerminalSettingId.ShellArgsMacOs */]: {
67
+ type: 'array',
68
+ default: [],
69
+ markdownDeprecationMessage: shellDeprecationMessageOsx,
70
+ },
71
+ ["terminal.integrated.shellArgs.windows" /* CodeTerminalSettingId.ShellArgsWindows */]: {
72
+ type: 'array',
73
+ default: [],
74
+ markdownDeprecationMessage: shellDeprecationMessageWindows,
75
+ },
76
+ ["terminal.integrated.profiles.windows" /* CodeTerminalSettingId.ProfilesWindows */]: {
77
+ restricted: true,
78
+ // comment: ['{0}, {1}, and {2} are the `source`, `path` and optional `args` settings keys'],
79
+ markdownDescription: (0, ide_core_common_1.localize)('terminal.integrated.profiles.windows', 'The Windows profiles to present when creating a new terminal via the terminal dropdown. Use the `path` property to automatically detect the shell\'s location. Or set the {1} property manually with an optional `args`.\n\nSet an existing profile to `null` to hide the profile from the list, for example: `"Ubuntu-20.04 (WSL)": null`.'),
80
+ type: 'object',
81
+ default: {},
82
+ },
83
+ ["terminal.integrated.profiles.osx" /* CodeTerminalSettingId.ProfilesMacOs */]: {
84
+ restricted: true,
85
+ markdownDescription: (0, ide_core_common_1.localize)('terminal.integrated.profile.osx', 'The macOS profiles to present when creating a new terminal via the terminal dropdown. Set the `path` property manually with an optional `args`.\n\nSet an existing profile to `null` to hide the profile from the list, for example: `"bash": null`.'),
86
+ type: 'object',
87
+ default: {
88
+ bash: {
89
+ path: 'bash',
90
+ args: ['-l'],
91
+ // icon: 'terminal-bash',
92
+ },
93
+ zsh: {
94
+ path: 'zsh',
95
+ args: ['-l'],
96
+ },
97
+ fish: {
98
+ path: 'fish',
99
+ args: ['-l'],
100
+ },
101
+ tmux: {
102
+ path: 'tmux',
103
+ // icon: 'terminal-tmux',
104
+ },
105
+ pwsh: {
106
+ path: 'pwsh',
107
+ // icon: 'terminal-powershell',
108
+ },
109
+ },
110
+ },
111
+ ["terminal.integrated.profiles.linux" /* CodeTerminalSettingId.ProfilesLinux */]: {
112
+ restricted: true,
113
+ markdownDescription: (0, ide_core_common_1.localize)('terminal.integrated.profile.linux', 'The Linux profiles to present when creating a new terminal via the terminal dropdown. Set the `path` property manually with an optional `args`.\n\nSet an existing profile to `null` to hide the profile from the list, for example: `"bash": null`.'),
114
+ type: 'object',
115
+ default: {
116
+ bash: {
117
+ path: 'bash',
118
+ icon: 'terminal-bash',
119
+ },
120
+ zsh: {
121
+ path: 'zsh',
122
+ },
123
+ fish: {
124
+ path: 'fish',
125
+ },
126
+ tmux: {
127
+ path: 'tmux',
128
+ icon: 'terminal-tmux',
129
+ },
130
+ pwsh: {
131
+ path: 'pwsh',
132
+ icon: 'terminal-powershell',
133
+ },
134
+ },
135
+ },
136
+ ["terminal.integrated.defaultProfile.linux" /* CodeTerminalSettingId.DefaultProfileLinux */]: {
137
+ restricted: true,
138
+ markdownDescription: (0, ide_core_common_1.localize)('terminal.integrated.defaultProfile.linux', 'The default profile used on Linux. This setting will currently be ignored if either {0} or {1} are set.'),
139
+ type: ['string', 'null'],
140
+ default: null,
141
+ },
142
+ ["terminal.integrated.defaultProfile.osx" /* CodeTerminalSettingId.DefaultProfileMacOs */]: {
143
+ restricted: true,
144
+ markdownDescription: (0, ide_core_common_1.localize)('terminal.integrated.defaultProfile.osx', 'The default profile used on macOS. This setting will currently be ignored if either {0} or {1} are set.'),
145
+ type: ['string', 'null'],
146
+ default: null,
147
+ },
148
+ ["terminal.integrated.defaultProfile.windows" /* CodeTerminalSettingId.DefaultProfileWindows */]: {
149
+ restricted: true,
150
+ markdownDescription: (0, ide_core_common_1.localize)('terminal.integrated.defaultProfile.windows', 'The default profile used on Windows. This setting will currently be ignored if either {0} or {1} are set.'),
151
+ type: ['string', 'null'],
152
+ default: null,
153
+ },
154
+ ["terminal.integrated.copyOnSelection" /* CodeTerminalSettingId.CopyOnSelection */]: {
155
+ type: 'boolean',
156
+ description: '%preference.terminal.integrated.copyOnSelectionDesc%',
157
+ default: false,
158
+ },
159
+ ["terminal.integrated.localEchoEnabled" /* CodeTerminalSettingId.LocalEchoEnabled */]: {
160
+ type: 'boolean',
161
+ description: '%preference.terminal.integrated.localEchoDesc%',
162
+ default: true,
163
+ },
164
+ ["terminal.integrated.localEchoLatencyThreshold" /* CodeTerminalSettingId.LocalEchoLatencyThreshold */]: {
165
+ type: 'number',
166
+ description: '%preference.terminal.integrated.localEchoLatencyThresholdDesc%',
167
+ default: 30,
168
+ },
169
+ ["terminal.integrated.localEchoExcludePrograms" /* CodeTerminalSettingId.LocalEchoExcludePrograms */]: {
170
+ type: 'array',
171
+ description: '%preference.terminal.integrated.localEchoExcludeProgramsDesc%',
172
+ default: ['vim', 'vi', 'nano', 'tmux'],
173
+ },
174
+ ["terminal.integrated.localEchoStyle" /* CodeTerminalSettingId.LocalEchoStyle */]: {
175
+ type: 'string',
176
+ description: '%preference.terminal.integrated.localEchoStyleDesc%',
177
+ enum: ['bold', 'dim', 'italic', 'underlined', 'inverted'],
178
+ default: 'dim',
179
+ },
180
+ ["terminal.integrated.cursorStyle" /* CodeTerminalSettingId.CursorStyle */]: {
181
+ type: 'string',
182
+ description: '%preference.terminal.integrated.cursorStyleDesc%',
183
+ enum: [exports.TerminalCursorStyle.BLOCK, exports.TerminalCursorStyle.LINE, exports.TerminalCursorStyle.UNDERLINE],
184
+ default: exports.TerminalCursorStyle.BLOCK,
185
+ },
186
+ ["terminal.integrated.xtermRenderType" /* CodeTerminalSettingId.XtermRenderType */]: {
187
+ type: 'string',
188
+ description: '%preference.terminal.integrated.xtermRenderTypeDesc%',
189
+ enum: [xterm_1.RenderType.WebGL, xterm_1.RenderType.Canvas, xterm_1.RenderType.Dom],
190
+ default: xterm_1.RenderType.WebGL,
191
+ },
192
+ ["terminal.integrated.enablePersistentSessions" /* CodeTerminalSettingId.EnablePersistentSessions */]: {
193
+ type: 'boolean',
194
+ description: '%preference.terminal.integrated.enablePersistentSessionDesc%',
195
+ default: true,
196
+ },
197
+ },
198
+ };
199
+ //# sourceMappingURL=preference.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preference.js","sourceRoot":"","sources":["../../src/common/preference.ts"],"names":[],"mappings":";;;AAAA,+DAAgF;AAGhF,mCAAqC;AAOxB,QAAA,mBAAmB,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAC;AAmBpD,QAAA,oBAAoB,GAAG;IAClC,IAAI,EAAE,MAAM;IACZ,UAAU,EAAE,YAAY;IACxB,QAAQ,EAAE,UAAU;IACpB,U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jD,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,gEAAgE;YAC7E,OAAO,EAAE,EAAE;SACZ;QACD,qGAAgD,EAAE;YAChD,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,+DAA+D;YAC5E,OAAO,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC;SACvC;QACD,iFAAsC,EAAE;YACtC,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,qDAAqD;YAClE,IAAI,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,UAAU,CAAC;YACzD,OAAO,EAAE,KAAK;SACf;QACD,2EAAmC,EAAE;YACnC,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,kDAAkD;YAC/D,IAAI,EAAE,CAAC,2BAAmB,CAAC,KAAK,EAAE,2BAAmB,CAAC,IAAI,EAAE,2BAAmB,CAAC,SAAS,CAAC;YAC1F,OAAO,EAAE,2BAAmB,CAAC,KAAK;SACnC;QACD,mFAAuC,EAAE;YACvC,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,sDAAsD;YACnE,IAAI,EAAE,CAAC,kBAAU,CAAC,KAAK,EAAE,kBAAU,CAAC,MAAM,EAAE,kBAAU,CAAC,GAAG,CAAC;YAC3D,OAAO,EAAE,kBAAU,CAAC,KAAK;SAC1B;QACD,qGAAgD,EAAE;YAChD,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,8DAA8D;YAC3E,OAAO,EAAE,IAAI;SACd;KACF;CACF,CAAC"}
@@ -0,0 +1,8 @@
1
+ export interface IProcessReadyEvent {
2
+ pid: number;
3
+ }
4
+ export interface IProcessExitEvent {
5
+ exitCode: number;
6
+ signal?: number;
7
+ }
8
+ //# sourceMappingURL=process.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"process.d.ts","sourceRoot":"","sources":["../../src/common/process.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=process.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"process.js","sourceRoot":"","sources":["../../src/common/process.ts"],"names":[],"mappings":""}
@@ -0,0 +1,99 @@
1
+ import { Event, IDisposable, OperatingSystem, URI } from '@opensumi/ide-core-common';
2
+ import { ICreateContributedTerminalProfileOptions, IShellLaunchConfig, ITerminalEnvironment, ITerminalProfileProvider, TerminalIcon } from '..';
3
+ import type vscode from 'vscode';
4
+ export interface IResolveDefaultProfileOptions {
5
+ os?: OperatingSystem;
6
+ }
7
+ export declare const ITerminalProfileService: unique symbol;
8
+ export interface ITerminalProfileService {
9
+ readonly availableProfiles: ITerminalProfile[];
10
+ readonly contributedProfiles: IExtensionTerminalProfile[];
11
+ readonly profilesReady: Promise<void>;
12
+ onTerminalProfileResolved: Event<string>;
13
+ onDidChangeAvailableProfiles: Event<ITerminalProfile[]>;
14
+ onDidChangeDefaultShell: Event<string>;
15
+ getDefaultProfileName(): string | undefined;
16
+ getContributedDefaultProfile(shellLaunchConfig: IShellLaunchConfig): Promise<IExtensionTerminalProfile | undefined>;
17
+ getContributedProfileProvider(extensionIdentifier: string, id: string): ITerminalProfileProvider | undefined;
18
+ refreshAvailableProfiles(): void;
19
+ registerTerminalProfileProvider(extensionIdentifier: string, id: string, profileProvider: ITerminalProfileProvider): IDisposable;
20
+ createContributedTerminalProfile(extensionIdentifier: string, id: string, options: ICreateContributedTerminalProfileOptions): Promise<void>;
21
+ addContributedProfile(extensionId: string, contributions: ITerminalContributions): void;
22
+ removeContributedProfile(extensionId: string): void;
23
+ }
24
+ export declare const ITerminalProfileInternalService: unique symbol;
25
+ export interface ITerminalProfileInternalService {
26
+ resolveDefaultProfile(options?: IResolveDefaultProfileOptions): Promise<ITerminalProfile | undefined>;
27
+ resolveRealDefaultProfile(): Promise<ITerminalProfile | undefined>;
28
+ }
29
+ export interface ITerminalProfile {
30
+ profileName: string;
31
+ path: string;
32
+ isDefault: boolean;
33
+ isAutoDetected?: boolean;
34
+ args?: string | string[] | undefined;
35
+ env?: ITerminalEnvironment;
36
+ overrideName?: boolean;
37
+ color?: string;
38
+ icon?: TerminalIcon;
39
+ }
40
+ export interface IBaseUnresolvedTerminalProfile {
41
+ args?: string | string[] | undefined;
42
+ isAutoDetected?: boolean;
43
+ overrideName?: boolean;
44
+ icon?: string | TerminalIcon;
45
+ color?: string;
46
+ env?: ITerminalEnvironment;
47
+ }
48
+ export interface ITerminalExecutable extends IBaseUnresolvedTerminalProfile {
49
+ path: string | string[];
50
+ }
51
+ export declare const enum ProfileSource {
52
+ GitBash = "Git Bash",
53
+ Pwsh = "PowerShell"
54
+ }
55
+ export interface ITerminalProfileSource extends IBaseUnresolvedTerminalProfile {
56
+ source: ProfileSource;
57
+ }
58
+ export interface IPotentialTerminalProfile {
59
+ profileName: string;
60
+ paths: string[];
61
+ args?: string[];
62
+ icon?: vscode.ThemeIcon | URI | {
63
+ light: URI;
64
+ dark: URI;
65
+ };
66
+ }
67
+ export type IUnresolvedTerminalProfile = ITerminalExecutable | ITerminalProfileSource | null;
68
+ export declare function terminalProfileArgsMatch(args1: string | string[] | undefined, args2: string | string[] | undefined): boolean;
69
+ export interface IDetectProfileOptionsPreference {
70
+ [key: string]: IUnresolvedTerminalProfile;
71
+ }
72
+ export interface IDetectProfileOptions {
73
+ autoDetect: boolean;
74
+ preference?: IDetectProfileOptionsPreference;
75
+ }
76
+ export interface ITerminalContributions {
77
+ profiles?: ITerminalProfileContribution[];
78
+ }
79
+ export interface ITerminalProfileContribution {
80
+ title: string;
81
+ id: string;
82
+ icon?: URI | {
83
+ light: URI;
84
+ dark: URI;
85
+ } | string;
86
+ color?: string;
87
+ }
88
+ export interface IExtensionTerminalProfile extends ITerminalProfileContribution {
89
+ extensionIdentifier: string;
90
+ }
91
+ export type ITerminalProfileObject = ITerminalExecutable | ITerminalProfileSource | IExtensionTerminalProfile | null;
92
+ export type ITerminalProfileType = ITerminalProfile | IExtensionTerminalProfile;
93
+ export interface ISaveContributedProfileArgs {
94
+ extensionIdentifier: string;
95
+ id: string;
96
+ title: string;
97
+ options: ICreateContributedTerminalProfileOptions;
98
+ }
99
+ //# sourceMappingURL=profile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../../src/common/profile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,GAAG,EAAE,MAAM,2BAA2B,CAAC;AAErF,OAAO,EACL,wCAAwC,EACxC,kBAAkB,EAClB,oBAAoB,EACpB,wBAAwB,EACxB,YAAY,EACb,MAAM,IAAI,CAAC;AAEZ,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,WAAW,6BAA6B;IAC5C,EAAE,CAAC,EAAE,eAAe,CAAC;CACtB;AAED,eAAO,MAAM,uBAAuB,eAAoC,CAAC;AACzE,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,iBAAiB,EAAE,gBAAgB,EAAE,CAAC;IAC/C,QAAQ,CAAC,mBAAmB,EAAE,yBAAyB,EAAE,CAAC;IAC1D,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IACtC,yBAAyB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACzC,4BAA4B,EAAE,KAAK,CAAC,gBAAgB,EAAE,CAAC,CAAC;IACxD,uBAAuB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvC,qBAAqB,IAAI,MAAM,GAAG,SAAS,CAAC;IAC5C,4BAA4B,CAAC,iBAAiB,EAAE,kBAAkB,GAAG,OAAO,CAAC,yBAAyB,GAAG,SAAS,CAAC,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AAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,GAAG,GAAG;QAAE,KAAK,EAAE,GAAG,CAAC;QAAC,IAAI,EAAE,GAAG,CAAA;KAAE,GAAG,MAAM,CAAC;IAChD,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,yBAA0B,SAAQ,4BAA4B;IAC7E,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,MAAM,sBAAsB,GAAG,mBAAmB,GAAG,sBAAsB,GAAG,yBAAyB,GAAG,IAAI,CAAC;AACrH,MAAM,MAAM,oBAAoB,GAAG,gBAAgB,GAAG,yBAAyB,CAAC;AAEhF,MAAM,WAAW,2BAA2B;IAC1C,mBAAmB,EAAE,MAAM,CAAC;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,wCAAwC,CAAC;CACnD"}
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ITerminalProfileInternalService = exports.ITerminalProfileService = void 0;
4
+ exports.terminalProfileArgsMatch = terminalProfileArgsMatch;
5
+ exports.ITerminalProfileService = Symbol('ITerminalProfileService');
6
+ exports.ITerminalProfileInternalService = Symbol('ITerminalProfileInternalService');
7
+ function terminalProfileArgsMatch(args1, args2) {
8
+ if (!args1 && !args2) {
9
+ return true;
10
+ }
11
+ else if (typeof args1 === 'string' && typeof args2 === 'string') {
12
+ return args1 === args2;
13
+ }
14
+ else if (Array.isArray(args1) && Array.isArray(args2)) {
15
+ if (args1.length !== args2.length) {
16
+ return false;
17
+ }
18
+ for (let i = 0; i < args1.length; i++) {
19
+ if (args1[i] !== args2[i]) {
20
+ return false;
21
+ }
22
+ }
23
+ return true;
24
+ }
25
+ return false;
26
+ }
27
+ //# sourceMappingURL=profile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile.js","sourceRoot":"","sources":["../../src/common/profile.ts"],"names":[],"mappings":";;;AA0FA,4DAoBC;AA9FY,QAAA,uBAAuB,GAAG,MAAM,CAAC,yBAAyB,CAAC,CAAC;AA0B5D,QAAA,+BAA+B,GAAG,MAAM,CAAC,iCAAiC,CAAC,CAAC;AAgDzF,SAAgB,wBAAwB,CACtC,KAAoC,EACpC,KAAoC;IAEpC,IAAI,CAAC,KAAK,IAAI,CAAC,KAAK,EAAE,CAAC;QACrB,OAAO,IAAI,CAAC;IACd,CAAC;SAAM,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAClE,OAAO,KAAK,KAAK,KAAK,CAAC;IACzB,CAAC;SAAM,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACxD,IAAI,KAAK,CAAC,MAAM,KAAK,KAAK,CAAC,MAAM,EAAE,CAAC;YAClC,OAAO,KAAK,CAAC;QACf,CAAC;QACD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACtC,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;gBAC1B,OAAO,KAAK,CAAC;YACf,CAAC;QACH,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}