@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.
- package/LICENSE +21 -0
- package/lib/browser/component/resize.delegate.d.ts +14 -0
- package/lib/browser/component/resize.delegate.d.ts.map +1 -0
- package/lib/browser/component/resize.delegate.js +46 -0
- package/lib/browser/component/resize.delegate.js.map +1 -0
- package/lib/browser/component/resize.module.less +77 -0
- package/lib/browser/component/resize.view.d.ts +16 -0
- package/lib/browser/component/resize.view.d.ts.map +1 -0
- package/lib/browser/component/resize.view.js +55 -0
- package/lib/browser/component/resize.view.js.map +1 -0
- package/lib/browser/component/search.module.less +61 -0
- package/lib/browser/component/search.view.d.ts +3 -0
- package/lib/browser/component/search.view.d.ts.map +1 -0
- package/lib/browser/component/search.view.js +89 -0
- package/lib/browser/component/search.view.js.map +1 -0
- package/lib/browser/component/tab.item.d.ts +7 -0
- package/lib/browser/component/tab.item.d.ts.map +1 -0
- package/lib/browser/component/tab.item.js +121 -0
- package/lib/browser/component/tab.item.js.map +1 -0
- package/lib/browser/component/tab.module.less +174 -0
- package/lib/browser/component/tab.view.d.ts +4 -0
- package/lib/browser/component/tab.view.d.ts.map +1 -0
- package/lib/browser/component/tab.view.js +65 -0
- package/lib/browser/component/tab.view.js.map +1 -0
- package/lib/browser/component/terminal.module.less +50 -0
- package/lib/browser/component/terminal.variable.d.ts +8 -0
- package/lib/browser/component/terminal.variable.d.ts.map +1 -0
- package/lib/browser/component/terminal.variable.js +44 -0
- package/lib/browser/component/terminal.variable.js.map +1 -0
- package/lib/browser/component/terminal.view.d.ts +5 -0
- package/lib/browser/component/terminal.view.d.ts.map +1 -0
- package/lib/browser/component/terminal.view.js +63 -0
- package/lib/browser/component/terminal.view.js.map +1 -0
- package/lib/browser/component/terminal.widget.d.ts +10 -0
- package/lib/browser/component/terminal.widget.d.ts.map +1 -0
- package/lib/browser/component/terminal.widget.js +65 -0
- package/lib/browser/component/terminal.widget.js.map +1 -0
- package/lib/browser/component/variable.module.less +15 -0
- package/lib/browser/contribution/index.d.ts.map +1 -0
- package/lib/browser/contribution/index.js +11 -0
- package/lib/browser/contribution/index.js.map +1 -0
- package/lib/browser/contribution/terminal.command.js +328 -0
- package/lib/browser/contribution/terminal.keybinding.js +87 -0
- package/lib/browser/contribution/terminal.lifecycle.js +52 -0
- package/lib/browser/contribution/terminal.menu.js +168 -0
- package/lib/browser/contribution/terminal.network.js +44 -0
- package/lib/browser/contribution/terminal.preference.js +43 -0
- package/lib/browser/contribution/terminal.view.js +57 -0
- package/lib/browser/index.js +124 -0
- package/lib/browser/links/base.d.ts +8 -0
- package/lib/browser/links/base.d.ts.map +1 -0
- package/lib/browser/links/base.js +13 -0
- package/lib/browser/links/base.js.map +1 -0
- package/lib/browser/links/external-link-provider-adapter.d.ts +21 -0
- package/lib/browser/links/external-link-provider-adapter.d.ts.map +1 -0
- package/lib/browser/links/external-link-provider-adapter.js +74 -0
- package/lib/browser/links/external-link-provider-adapter.js.map +1 -0
- package/lib/browser/links/helpers.d.ts +7 -0
- package/lib/browser/links/helpers.d.ts.map +1 -0
- package/lib/browser/links/helpers.js +128 -0
- package/lib/browser/links/helpers.js.map +1 -0
- package/lib/browser/links/link-manager.d.ts +92 -0
- package/lib/browser/links/link-manager.d.ts.map +1 -0
- package/lib/browser/links/link-manager.js +342 -0
- package/lib/browser/links/link-manager.js.map +1 -0
- package/lib/browser/links/link.d.ts +31 -0
- package/lib/browser/links/link.d.ts.map +1 -0
- package/lib/browser/links/link.js +136 -0
- package/lib/browser/links/link.js.map +1 -0
- package/lib/browser/links/protocol-link-provider.d.ts +14 -0
- package/lib/browser/links/protocol-link-provider.d.ts.map +1 -0
- package/lib/browser/links/protocol-link-provider.js +71 -0
- package/lib/browser/links/protocol-link-provider.js.map +1 -0
- package/lib/browser/links/validated-local-link-provider.d.ts +41 -0
- package/lib/browser/links/validated-local-link-provider.d.ts.map +1 -0
- package/lib/browser/links/validated-local-link-provider.js +235 -0
- package/lib/browser/links/validated-local-link-provider.js.map +1 -0
- package/lib/browser/links/word-link-provider.d.ts +29 -0
- package/lib/browser/links/word-link-provider.d.ts.map +1 -0
- package/lib/browser/links/word-link-provider.js +153 -0
- package/lib/browser/links/word-link-provider.js.map +1 -0
- package/lib/browser/terminal.addon.js +83 -0
- package/lib/browser/terminal.api.js +162 -0
- package/lib/browser/terminal.client.js +680 -0
- package/lib/browser/terminal.color.js +240 -0
- package/lib/browser/terminal.context-key.js +29 -0
- package/lib/browser/terminal.context-menu.js +96 -0
- package/lib/browser/terminal.controller.js +669 -0
- package/lib/browser/terminal.environment.service.js +153 -0
- package/lib/browser/terminal.error.js +61 -0
- package/lib/browser/terminal.ext.host.proxy.js +108 -0
- package/lib/browser/terminal.hover.manager.js +85 -0
- package/lib/browser/terminal.input.js +32 -0
- package/lib/browser/terminal.internal.service.js +107 -0
- package/lib/browser/terminal.network.js +150 -0
- package/lib/browser/terminal.preference.js +136 -0
- package/lib/browser/terminal.profile.internal.js +104 -0
- package/lib/browser/terminal.profile.js +211 -0
- package/lib/browser/terminal.render.js +25 -0
- package/lib/browser/terminal.restore.js +49 -0
- package/lib/browser/terminal.search.js +109 -0
- package/lib/browser/terminal.service.js +163 -0
- package/lib/common/api.d.ts +22 -0
- package/lib/common/api.d.ts.map +1 -0
- package/lib/common/api.js +5 -0
- package/lib/common/api.js.map +1 -0
- package/lib/common/client.d.ts +199 -0
- package/lib/common/client.d.ts.map +1 -0
- package/lib/common/client.js +6 -0
- package/lib/common/client.js.map +1 -0
- package/lib/common/controller.d.ts +149 -0
- package/lib/common/controller.d.ts.map +1 -0
- package/lib/common/controller.js +8 -0
- package/lib/common/controller.js.map +1 -0
- package/lib/common/environmentVariable.d.ts +116 -0
- package/lib/common/environmentVariable.d.ts.map +1 -0
- package/lib/common/environmentVariable.js +30 -0
- package/lib/common/environmentVariable.js.map +1 -0
- package/lib/common/environmentVariableCollection.d.ts +9 -0
- package/lib/common/environmentVariableCollection.d.ts.map +1 -0
- package/lib/common/environmentVariableCollection.js +140 -0
- package/lib/common/environmentVariableCollection.js.map +1 -0
- package/lib/common/error.d.ts +41 -0
- package/lib/common/error.d.ts.map +1 -0
- package/lib/common/error.js +13 -0
- package/lib/common/error.js.map +1 -0
- package/lib/common/extension.d.ts +139 -0
- package/lib/common/extension.d.ts.map +1 -0
- package/lib/common/extension.js +57 -0
- package/lib/common/extension.js.map +1 -0
- package/lib/common/index.d.ts +17 -0
- package/lib/common/index.d.ts.map +1 -0
- package/lib/common/index.js +20 -0
- package/lib/common/index.js.map +1 -0
- package/lib/common/link-computer.d.ts +56 -0
- package/lib/common/link-computer.d.ts.map +1 -0
- package/lib/common/link-computer.js +282 -0
- package/lib/common/link-computer.js.map +1 -0
- package/lib/common/network.d.ts +48 -0
- package/lib/common/network.d.ts.map +1 -0
- package/lib/common/network.js +10 -0
- package/lib/common/network.js.map +1 -0
- package/lib/common/preference.d.ts +134 -0
- package/lib/common/preference.d.ts.map +1 -0
- package/lib/common/preference.js +199 -0
- package/lib/common/preference.js.map +1 -0
- package/lib/common/process.d.ts +8 -0
- package/lib/common/process.d.ts.map +1 -0
- package/lib/common/process.js +3 -0
- package/lib/common/process.js.map +1 -0
- package/lib/common/profile.d.ts +99 -0
- package/lib/common/profile.d.ts.map +1 -0
- package/lib/common/profile.js +27 -0
- package/lib/common/profile.js.map +1 -0
- package/lib/common/pty.d.ts +525 -0
- package/lib/common/pty.d.ts.map +1 -0
- package/lib/common/pty.js +28 -0
- package/lib/common/pty.js.map +1 -0
- package/lib/common/render.d.ts +29 -0
- package/lib/common/render.d.ts.map +1 -0
- package/lib/common/render.js +10 -0
- package/lib/common/render.js.map +1 -0
- package/lib/common/resize.d.ts +43 -0
- package/lib/common/resize.d.ts.map +1 -0
- package/lib/common/resize.js +3 -0
- package/lib/common/resize.js.map +1 -0
- package/lib/common/restore.d.ts +6 -0
- package/lib/common/restore.d.ts.map +1 -0
- package/lib/common/restore.js +5 -0
- package/lib/common/restore.js.map +1 -0
- package/lib/common/service.d.ts +96 -0
- package/lib/common/service.d.ts.map +1 -0
- package/lib/common/service.js +6 -0
- package/lib/common/service.js.map +1 -0
- package/lib/common/shell.d.ts +11 -0
- package/lib/common/shell.d.ts.map +1 -0
- package/lib/common/shell.js +14 -0
- package/lib/common/shell.js.map +1 -0
- package/lib/common/theme.d.ts +6 -0
- package/lib/common/theme.d.ts.map +1 -0
- package/lib/common/theme.js +5 -0
- package/lib/common/theme.js.map +1 -0
- package/lib/common/utils.d.ts +4 -0
- package/lib/common/utils.d.ts.map +1 -0
- package/lib/common/utils.js +15 -0
- package/lib/common/utils.js.map +1 -0
- package/lib/common/xterm.d.ts +27 -0
- package/lib/common/xterm.d.ts.map +1 -0
- package/lib/common/xterm.js +10 -0
- package/lib/common/xterm.js.map +1 -0
- package/lib/index.js +5 -0
- package/lib/node/data-store.d.ts +13 -0
- package/lib/node/data-store.d.ts.map +1 -0
- package/lib/node/data-store.js +6 -0
- package/lib/node/data-store.js.map +1 -0
- package/lib/node/index.d.ts +10 -0
- package/lib/node/index.d.ts.map +1 -0
- package/lib/node/index.js +64 -0
- package/lib/node/index.js.map +1 -0
- package/lib/node/pty.d.ts +42 -0
- package/lib/node/pty.d.ts.map +1 -0
- package/lib/node/pty.js +277 -0
- package/lib/node/pty.js.map +1 -0
- package/lib/node/pty.manager.d.ts +52 -0
- package/lib/node/pty.manager.d.ts.map +1 -0
- package/lib/node/pty.manager.js +157 -0
- package/lib/node/pty.manager.js.map +1 -0
- package/lib/node/pty.manager.remote.d.ts +23 -0
- package/lib/node/pty.manager.remote.d.ts.map +1 -0
- package/lib/node/pty.manager.remote.js +124 -0
- package/lib/node/pty.manager.remote.js.map +1 -0
- package/lib/node/pty.proxy.d.ts +45 -0
- package/lib/node/pty.proxy.d.ts.map +1 -0
- package/lib/node/pty.proxy.js +277 -0
- package/lib/node/pty.proxy.js.map +1 -0
- package/lib/node/pty.proxy.remote.exec.d.ts +2 -0
- package/lib/node/pty.proxy.remote.exec.d.ts.map +1 -0
- package/lib/node/pty.proxy.remote.exec.js +7 -0
- package/lib/node/pty.proxy.remote.exec.js.map +1 -0
- package/lib/node/shell-integration.service.d.ts +24 -0
- package/lib/node/shell-integration.service.d.ts.map +1 -0
- package/lib/node/shell-integration.service.js +187 -0
- package/lib/node/shell-integration.service.js.map +1 -0
- package/lib/node/shell.d.ts +20 -0
- package/lib/node/shell.d.ts.map +1 -0
- package/lib/node/shell.js +199 -0
- package/lib/node/shell.js.map +1 -0
- package/lib/node/terminal.process.service.d.ts +5 -0
- package/lib/node/terminal.process.service.d.ts.map +1 -0
- package/lib/node/terminal.process.service.js +15 -0
- package/lib/node/terminal.process.service.js.map +1 -0
- package/lib/node/terminal.profile.service.d.ts +19 -0
- package/lib/node/terminal.profile.service.d.ts.map +1 -0
- package/lib/node/terminal.profile.service.js +228 -0
- package/lib/node/terminal.profile.service.js.map +1 -0
- package/lib/node/terminal.service.client.d.ts +51 -0
- package/lib/node/terminal.service.client.d.ts.map +1 -0
- package/lib/node/terminal.service.client.js +159 -0
- package/lib/node/terminal.service.client.js.map +1 -0
- package/lib/node/terminal.service.d.ts +30 -0
- package/lib/node/terminal.service.d.ts.map +1 -0
- package/lib/node/terminal.service.js +246 -0
- package/lib/node/terminal.service.js.map +1 -0
- 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,UAAU,EAAE,YAAY;IACxB,UAAU,EAAE,YAAY;IACxB,WAAW,EAAE,aAAa;IAC1B,UAAU,EAAE,YAAY;IACxB,eAAe,EAAE,iBAAiB;IAClC,WAAW,EAAE,aAAa;CAC3B,CAAC;AAiGW,QAAA,mBAAmB,GAAG;IACjC,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM,EAAE,oCAAoC;IAClD,SAAS,EAAE,WAAW;CACvB,CAAC;AAEF,MAAM,4BAA4B,GAAG,IAAA,0BAAQ,EAC3C,6CAA6C,EAC7C,+QAA+Q,EAC/Q,wCAAwC,CACzC,CAAC;AACF,MAAM,0BAA0B,GAAG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;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 @@
|
|
|
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 @@
|
|
|
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,qBAA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AED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,EAAE,4BAA4B,EAAE,CAAC;CAC3C;AAED,MAAM,WAAW,4BAA4B;IAC3C,KAAK,EAAE,MAAM,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"}
|