@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,240 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ansiColorMap = exports.TERMINAL_OVERVIEW_RULER_CURSOR_FOREGROUND_COLOR = exports.TERMINAL_OVERVIEW_RULER_FIND_MATCH_FOREGROUND_COLOR = exports.TERMINAL_FIND_MATCH_HIGHLIGHT_BORDER_COLOR = exports.TERMINAL_FIND_MATCH_HIGHLIGHT_BACKGROUND_COLOR = exports.TERMINAL_FIND_MATCH_BORDER_COLOR = exports.TERMINAL_FIND_MATCH_BACKGROUND_COLOR = exports.TERMINAL_BORDER_COLOR = exports.TERMINAL_INACTIVE_SELECTION_BACKGROUND_COLOR = exports.TERMINAL_SELECTION_FOREGROUND_COLOR = exports.TERMINAL_SELECTION_BACKGROUND_COLOR = exports.TERMINAL_CURSOR_BACKGROUND_COLOR = exports.TERMINAL_CURSOR_FOREGROUND_COLOR = exports.TERMINAL_FOREGROUND_COLOR = exports.TERMINAL_BACKGROUND_COLOR = exports.ansiColorIdentifiers = void 0;
|
|
4
|
+
exports.registerTerminalColors = registerTerminalColors;
|
|
5
|
+
const ide_core_common_1 = require("@opensumi/ide-core-common");
|
|
6
|
+
const ide_theme_1 = require("@opensumi/ide-theme");
|
|
7
|
+
// copied from vscode terminal color registry
|
|
8
|
+
/**
|
|
9
|
+
* The color identifiers for the terminal's ansi colors. The index in the array corresponds to the index
|
|
10
|
+
* of the color in the terminal color table.
|
|
11
|
+
*/
|
|
12
|
+
exports.ansiColorIdentifiers = [];
|
|
13
|
+
exports.TERMINAL_BACKGROUND_COLOR = (0, ide_theme_1.registerColor)('terminal.background', {
|
|
14
|
+
dark: ide_theme_1.PANEL_BACKGROUND,
|
|
15
|
+
light: ide_theme_1.PANEL_BACKGROUND,
|
|
16
|
+
hcDark: ide_theme_1.PANEL_BACKGROUND,
|
|
17
|
+
hcLight: ide_theme_1.PANEL_BACKGROUND,
|
|
18
|
+
}, (0, ide_core_common_1.localize)('terminal.background', 'The background color of the terminal, this allows coloring the terminal differently to the panel.'));
|
|
19
|
+
exports.TERMINAL_FOREGROUND_COLOR = (0, ide_theme_1.registerColor)('terminal.foreground', {
|
|
20
|
+
light: '#333333',
|
|
21
|
+
dark: '#CCCCCC',
|
|
22
|
+
hcDark: '#FFFFFF',
|
|
23
|
+
hcLight: '#292929',
|
|
24
|
+
}, (0, ide_core_common_1.localize)('terminal.foreground', 'The foreground color of the terminal.'));
|
|
25
|
+
exports.TERMINAL_CURSOR_FOREGROUND_COLOR = (0, ide_theme_1.registerColor)('terminalCursor.foreground', null, (0, ide_core_common_1.localize)('terminalCursor.foreground', 'The foreground color of the terminal cursor.'));
|
|
26
|
+
exports.TERMINAL_CURSOR_BACKGROUND_COLOR = (0, ide_theme_1.registerColor)('terminalCursor.background', null, (0, ide_core_common_1.localize)('terminalCursor.background', 'The background color of the terminal cursor. Allows customizing the color of a character overlapped by a block cursor.'));
|
|
27
|
+
exports.TERMINAL_SELECTION_BACKGROUND_COLOR = (0, ide_theme_1.registerColor)('terminal.selectionBackground', {
|
|
28
|
+
light: '#ADD6FF',
|
|
29
|
+
dark: '#264F78',
|
|
30
|
+
hcDark: '#F3F518',
|
|
31
|
+
hcLight: '#0F4A85',
|
|
32
|
+
}, (0, ide_core_common_1.localize)('terminal.selectionBackground', 'The selection background color of the terminal.'));
|
|
33
|
+
exports.TERMINAL_SELECTION_FOREGROUND_COLOR = (0, ide_theme_1.registerColor)('terminal.selectionForeground', {
|
|
34
|
+
light: null,
|
|
35
|
+
dark: null,
|
|
36
|
+
hcDark: '#000000',
|
|
37
|
+
hcLight: '#ffffff',
|
|
38
|
+
}, (0, ide_core_common_1.localize)('terminal.selectionForeground', 'The selection foreground color of the terminal. When this is null the selection foreground will be retained and have the minimum contrast ratio feature applied.'));
|
|
39
|
+
exports.TERMINAL_INACTIVE_SELECTION_BACKGROUND_COLOR = (0, ide_theme_1.registerColor)('terminal.inactiveSelectionBackground', {
|
|
40
|
+
light: (0, ide_theme_1.transparent)(exports.TERMINAL_SELECTION_BACKGROUND_COLOR, 0.5),
|
|
41
|
+
dark: (0, ide_theme_1.transparent)(exports.TERMINAL_SELECTION_BACKGROUND_COLOR, 0.5),
|
|
42
|
+
hcDark: (0, ide_theme_1.transparent)(exports.TERMINAL_SELECTION_BACKGROUND_COLOR, 0.7),
|
|
43
|
+
hcLight: (0, ide_theme_1.transparent)(exports.TERMINAL_SELECTION_BACKGROUND_COLOR, 0.5),
|
|
44
|
+
}, (0, ide_core_common_1.localize)('terminal.inactiveSelectionBackground', 'The selection background color of the terminal when it does not have focus.'));
|
|
45
|
+
exports.TERMINAL_BORDER_COLOR = (0, ide_theme_1.registerColor)('terminal.border', {
|
|
46
|
+
dark: ide_theme_1.PANEL_BORDER,
|
|
47
|
+
light: ide_theme_1.PANEL_BORDER,
|
|
48
|
+
hcDark: ide_theme_1.PANEL_BORDER,
|
|
49
|
+
hcLight: ide_theme_1.PANEL_BORDER,
|
|
50
|
+
}, (0, ide_core_common_1.localize)('terminal.border', 'The color of the border that separates split panes within the terminal. This defaults to panel.border.'));
|
|
51
|
+
exports.TERMINAL_FIND_MATCH_BACKGROUND_COLOR = (0, ide_theme_1.registerColor)('terminal.findMatchBackground', {
|
|
52
|
+
dark: null,
|
|
53
|
+
light: null,
|
|
54
|
+
hcDark: null,
|
|
55
|
+
hcLight: '#0F4A85',
|
|
56
|
+
}, (0, ide_core_common_1.localize)('terminal.findMatchBackground', 'Color of the current search match in the terminal. The color must not be opaque so as not to hide underlying terminal content.'));
|
|
57
|
+
exports.TERMINAL_FIND_MATCH_BORDER_COLOR = (0, ide_theme_1.registerColor)('terminal.findMatchBorder', {
|
|
58
|
+
dark: ide_theme_1.editorFindMatch,
|
|
59
|
+
light: ide_theme_1.editorFindMatch,
|
|
60
|
+
hcDark: '#f38518',
|
|
61
|
+
hcLight: '#0F4A85',
|
|
62
|
+
}, (0, ide_core_common_1.localize)('terminal.findMatchBorder', 'Border color of the current search match in the terminal.'));
|
|
63
|
+
exports.TERMINAL_FIND_MATCH_HIGHLIGHT_BACKGROUND_COLOR = (0, ide_theme_1.registerColor)('terminal.findMatchHighlightBackground', {
|
|
64
|
+
dark: null,
|
|
65
|
+
light: null,
|
|
66
|
+
hcDark: null,
|
|
67
|
+
hcLight: null,
|
|
68
|
+
}, (0, ide_core_common_1.localize)('terminal.findMatchHighlightBackground', 'Color of the other search matches in the terminal. The color must not be opaque so as not to hide underlying terminal content.'));
|
|
69
|
+
exports.TERMINAL_FIND_MATCH_HIGHLIGHT_BORDER_COLOR = (0, ide_theme_1.registerColor)('terminal.findMatchHighlightBorder', {
|
|
70
|
+
dark: ide_theme_1.editorFindMatchHighlight,
|
|
71
|
+
light: ide_theme_1.editorFindMatchHighlight,
|
|
72
|
+
hcDark: '#f38518',
|
|
73
|
+
hcLight: '#0F4A85',
|
|
74
|
+
}, (0, ide_core_common_1.localize)('terminal.findMatchHighlightBorder', 'Border color of the other search matches in the terminal.'));
|
|
75
|
+
exports.TERMINAL_OVERVIEW_RULER_FIND_MATCH_FOREGROUND_COLOR = (0, ide_theme_1.registerColor)('terminalOverviewRuler.findMatchForeground', {
|
|
76
|
+
dark: ide_theme_1.overviewRulerFindMatchForeground,
|
|
77
|
+
light: ide_theme_1.overviewRulerFindMatchForeground,
|
|
78
|
+
hcDark: '#f38518',
|
|
79
|
+
hcLight: '#0F4A85',
|
|
80
|
+
}, (0, ide_core_common_1.localize)('terminalOverviewRuler.findMatchHighlightForeground', 'Overview ruler marker color for find matches in the terminal.'));
|
|
81
|
+
exports.TERMINAL_OVERVIEW_RULER_CURSOR_FOREGROUND_COLOR = (0, ide_theme_1.registerColor)('terminalOverviewRuler.cursorForeground', {
|
|
82
|
+
dark: '#A0A0A0CC',
|
|
83
|
+
light: '#A0A0A0CC',
|
|
84
|
+
hcDark: '#A0A0A0CC',
|
|
85
|
+
hcLight: '#A0A0A0CC',
|
|
86
|
+
}, (0, ide_core_common_1.localize)('terminalOverviewRuler.cursorForeground', 'The overview ruler cursor color.'));
|
|
87
|
+
exports.ansiColorMap = {
|
|
88
|
+
'terminal.ansiBlack': {
|
|
89
|
+
index: 0,
|
|
90
|
+
defaults: {
|
|
91
|
+
light: '#000000',
|
|
92
|
+
dark: '#000000',
|
|
93
|
+
hcDark: '#000000',
|
|
94
|
+
hcLight: '#292929',
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
'terminal.ansiRed': {
|
|
98
|
+
index: 1,
|
|
99
|
+
defaults: {
|
|
100
|
+
light: '#cd3131',
|
|
101
|
+
dark: '#cd3131',
|
|
102
|
+
hcDark: '#cd0000',
|
|
103
|
+
hcLight: '#cd3131',
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
'terminal.ansiGreen': {
|
|
107
|
+
index: 2,
|
|
108
|
+
defaults: {
|
|
109
|
+
light: '#00BC00',
|
|
110
|
+
dark: '#0DBC79',
|
|
111
|
+
hcDark: '#00cd00',
|
|
112
|
+
hcLight: '#00bc00',
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
'terminal.ansiYellow': {
|
|
116
|
+
index: 3,
|
|
117
|
+
defaults: {
|
|
118
|
+
light: '#949800',
|
|
119
|
+
dark: '#e5e510',
|
|
120
|
+
hcDark: '#cdcd00',
|
|
121
|
+
hcLight: '#949800',
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
'terminal.ansiBlue': {
|
|
125
|
+
index: 4,
|
|
126
|
+
defaults: {
|
|
127
|
+
light: '#0451a5',
|
|
128
|
+
dark: '#2472c8',
|
|
129
|
+
hcDark: '#cd00cd',
|
|
130
|
+
hcLight: '#bc05bc',
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
'terminal.ansiMagenta': {
|
|
134
|
+
index: 5,
|
|
135
|
+
defaults: {
|
|
136
|
+
light: '#bc05bc',
|
|
137
|
+
dark: '#bc3fbc',
|
|
138
|
+
hcDark: '#cd00cd',
|
|
139
|
+
hcLight: '#bc05bc',
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
'terminal.ansiCyan': {
|
|
143
|
+
index: 6,
|
|
144
|
+
defaults: {
|
|
145
|
+
light: '#0598bc',
|
|
146
|
+
dark: '#11a8cd',
|
|
147
|
+
hcDark: '#00cdcd',
|
|
148
|
+
hcLight: '#0598b',
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
'terminal.ansiWhite': {
|
|
152
|
+
index: 7,
|
|
153
|
+
defaults: {
|
|
154
|
+
light: '#555555',
|
|
155
|
+
dark: '#e5e5e5',
|
|
156
|
+
hcDark: '#e5e5e5',
|
|
157
|
+
hcLight: '#555555',
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
'terminal.ansiBrightBlack': {
|
|
161
|
+
index: 8,
|
|
162
|
+
defaults: {
|
|
163
|
+
light: '#666666',
|
|
164
|
+
dark: '#666666',
|
|
165
|
+
hcDark: '#7f7f7f',
|
|
166
|
+
hcLight: '#666666',
|
|
167
|
+
},
|
|
168
|
+
},
|
|
169
|
+
'terminal.ansiBrightRed': {
|
|
170
|
+
index: 9,
|
|
171
|
+
defaults: {
|
|
172
|
+
light: '#cd3131',
|
|
173
|
+
dark: '#f14c4c',
|
|
174
|
+
hcDark: '#ff0000',
|
|
175
|
+
hcLight: '#cd3131',
|
|
176
|
+
},
|
|
177
|
+
},
|
|
178
|
+
'terminal.ansiBrightGreen': {
|
|
179
|
+
index: 10,
|
|
180
|
+
defaults: {
|
|
181
|
+
light: '#14CE14',
|
|
182
|
+
dark: '#23d18b',
|
|
183
|
+
hcDark: '#00ff00',
|
|
184
|
+
hcLight: '#00bc00',
|
|
185
|
+
},
|
|
186
|
+
},
|
|
187
|
+
'terminal.ansiBrightYellow': {
|
|
188
|
+
index: 11,
|
|
189
|
+
defaults: {
|
|
190
|
+
light: '#b5ba00',
|
|
191
|
+
dark: '#f5f543',
|
|
192
|
+
hcDark: '#ffff00',
|
|
193
|
+
hcLight: '#b5ba00',
|
|
194
|
+
},
|
|
195
|
+
},
|
|
196
|
+
'terminal.ansiBrightBlue': {
|
|
197
|
+
index: 12,
|
|
198
|
+
defaults: {
|
|
199
|
+
light: '#0451a5',
|
|
200
|
+
dark: '#3b8eea',
|
|
201
|
+
hcDark: '#5c5cff',
|
|
202
|
+
hcLight: '#0451a5',
|
|
203
|
+
},
|
|
204
|
+
},
|
|
205
|
+
'terminal.ansiBrightMagenta': {
|
|
206
|
+
index: 13,
|
|
207
|
+
defaults: {
|
|
208
|
+
light: '#bc05bc',
|
|
209
|
+
dark: '#d670d6',
|
|
210
|
+
hcDark: '#ff00ff',
|
|
211
|
+
hcLight: '#bc05bc',
|
|
212
|
+
},
|
|
213
|
+
},
|
|
214
|
+
'terminal.ansiBrightCyan': {
|
|
215
|
+
index: 14,
|
|
216
|
+
defaults: {
|
|
217
|
+
light: '#0598bc',
|
|
218
|
+
dark: '#29b8db',
|
|
219
|
+
hcDark: '#00ffff',
|
|
220
|
+
hcLight: '#0598bc',
|
|
221
|
+
},
|
|
222
|
+
},
|
|
223
|
+
'terminal.ansiBrightWhite': {
|
|
224
|
+
index: 15,
|
|
225
|
+
defaults: {
|
|
226
|
+
light: '#a5a5a5',
|
|
227
|
+
dark: '#e5e5e5',
|
|
228
|
+
hcDark: '#ffffff',
|
|
229
|
+
hcLight: '#a5a5a5',
|
|
230
|
+
},
|
|
231
|
+
},
|
|
232
|
+
};
|
|
233
|
+
function registerTerminalColors() {
|
|
234
|
+
Object.keys(exports.ansiColorMap).forEach((id) => {
|
|
235
|
+
const entry = exports.ansiColorMap[id];
|
|
236
|
+
const colorName = id.substring(13);
|
|
237
|
+
exports.ansiColorIdentifiers[entry.index] = (0, ide_theme_1.registerColor)(id, entry.defaults, (0, ide_core_common_1.localize)('terminal.ansiColor', "'{0}' ANSI color in the terminal.", colorName));
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
//# sourceMappingURL=terminal.color.js.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TerminalContextKey = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const di_1 = require("@opensumi/di");
|
|
6
|
+
const ide_core_browser_1 = require("@opensumi/ide-core-browser");
|
|
7
|
+
const contextkey_1 = require("@opensumi/ide-core-browser/lib/contextkey");
|
|
8
|
+
let TerminalContextKey = class TerminalContextKey {
|
|
9
|
+
constructor(dom) {
|
|
10
|
+
this._contextKeyService = this.globalContextkeyService.createScoped(dom);
|
|
11
|
+
this.isTerminalFocused = contextkey_1.IsTerminalFocused.bind(this._contextKeyService);
|
|
12
|
+
this.isTerminalViewInitialized = contextkey_1.IsTerminalViewInitialized.bind(this._contextKeyService);
|
|
13
|
+
this.shellExecutionSupportedContextKey = contextkey_1.ShellExecutionSupported.bind(this.globalContextkeyService);
|
|
14
|
+
}
|
|
15
|
+
get service() {
|
|
16
|
+
return this._contextKeyService;
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
exports.TerminalContextKey = TerminalContextKey;
|
|
20
|
+
tslib_1.__decorate([
|
|
21
|
+
(0, di_1.Autowired)(ide_core_browser_1.IContextKeyService),
|
|
22
|
+
tslib_1.__metadata("design:type", Object)
|
|
23
|
+
], TerminalContextKey.prototype, "globalContextkeyService", void 0);
|
|
24
|
+
exports.TerminalContextKey = TerminalContextKey = tslib_1.__decorate([
|
|
25
|
+
(0, di_1.Injectable)(),
|
|
26
|
+
tslib_1.__param(0, (0, di_1.Optional)()),
|
|
27
|
+
tslib_1.__metadata("design:paramtypes", [HTMLDivElement])
|
|
28
|
+
], TerminalContextKey);
|
|
29
|
+
//# sourceMappingURL=terminal.context-key.js.map
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TerminalContextMenuService = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const di_1 = require("@opensumi/di");
|
|
6
|
+
const ide_core_browser_1 = require("@opensumi/ide-core-browser");
|
|
7
|
+
const next_1 = require("@opensumi/ide-core-browser/lib/menu/next");
|
|
8
|
+
const ide_core_common_1 = require("@opensumi/ide-core-common");
|
|
9
|
+
const common_1 = require("../common");
|
|
10
|
+
let TerminalContextMenuService = class TerminalContextMenuService extends ide_core_common_1.Disposable {
|
|
11
|
+
get contextMenu() {
|
|
12
|
+
const contributedContextMenu = this.menuService.createMenu(next_1.MenuId.TerminalPanelContext, this.controller.contextKeyService || this.contextKeyService);
|
|
13
|
+
this.addDispose(contributedContextMenu);
|
|
14
|
+
return contributedContextMenu;
|
|
15
|
+
}
|
|
16
|
+
onContextMenu(event) {
|
|
17
|
+
event.preventDefault();
|
|
18
|
+
const { x, y } = event.nativeEvent;
|
|
19
|
+
const menus = this.contextMenu;
|
|
20
|
+
const menuNodes = (0, next_1.generateMergedCtxMenu)({ menus });
|
|
21
|
+
this.ctxMenuRenderer.show({
|
|
22
|
+
anchor: { x, y },
|
|
23
|
+
menuNodes,
|
|
24
|
+
args: [],
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
get tabContextMenu() {
|
|
28
|
+
const contributedContextMenu = this.menuService.createMenu(next_1.MenuId.TerminalTabContext, this.contextKeyService);
|
|
29
|
+
this.addDispose(contributedContextMenu);
|
|
30
|
+
return contributedContextMenu;
|
|
31
|
+
}
|
|
32
|
+
get tabDropDownContextMenu() {
|
|
33
|
+
const contributedContextMenu = this.menuService.createMenu(next_1.MenuId.TerminalNewDropdownContext, this.contextKeyService);
|
|
34
|
+
this.addDispose(contributedContextMenu);
|
|
35
|
+
return contributedContextMenu;
|
|
36
|
+
}
|
|
37
|
+
onDropDownContextMenu(event) {
|
|
38
|
+
event.preventDefault();
|
|
39
|
+
const { x, y } = event.nativeEvent;
|
|
40
|
+
const menus = this.tabDropDownContextMenu;
|
|
41
|
+
const menuNodes = (0, next_1.generateMergedCtxMenu)({ menus });
|
|
42
|
+
this.ctxMenuRenderer.show({
|
|
43
|
+
anchor: { x, y },
|
|
44
|
+
menuNodes,
|
|
45
|
+
args: [event.target],
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
onTabContextMenu(event, index) {
|
|
49
|
+
event.stopPropagation();
|
|
50
|
+
event.preventDefault();
|
|
51
|
+
const { x, y } = event.nativeEvent;
|
|
52
|
+
const menus = this.tabContextMenu;
|
|
53
|
+
const menuNodes = (0, next_1.generateMergedCtxMenu)({ menus });
|
|
54
|
+
this.ctxMenuRenderer.show({
|
|
55
|
+
anchor: { x, y },
|
|
56
|
+
menuNodes,
|
|
57
|
+
args: [event.target, index],
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
exports.TerminalContextMenuService = TerminalContextMenuService;
|
|
62
|
+
tslib_1.__decorate([
|
|
63
|
+
(0, di_1.Autowired)(common_1.ITerminalController),
|
|
64
|
+
tslib_1.__metadata("design:type", Object)
|
|
65
|
+
], TerminalContextMenuService.prototype, "controller", void 0);
|
|
66
|
+
tslib_1.__decorate([
|
|
67
|
+
(0, di_1.Autowired)(next_1.AbstractMenuService),
|
|
68
|
+
tslib_1.__metadata("design:type", next_1.AbstractMenuService)
|
|
69
|
+
], TerminalContextMenuService.prototype, "menuService", void 0);
|
|
70
|
+
tslib_1.__decorate([
|
|
71
|
+
(0, di_1.Autowired)(next_1.ICtxMenuRenderer),
|
|
72
|
+
tslib_1.__metadata("design:type", next_1.ICtxMenuRenderer)
|
|
73
|
+
], TerminalContextMenuService.prototype, "ctxMenuRenderer", void 0);
|
|
74
|
+
tslib_1.__decorate([
|
|
75
|
+
(0, di_1.Autowired)(ide_core_browser_1.IContextKeyService),
|
|
76
|
+
tslib_1.__metadata("design:type", Object)
|
|
77
|
+
], TerminalContextMenuService.prototype, "contextKeyService", void 0);
|
|
78
|
+
tslib_1.__decorate([
|
|
79
|
+
ide_core_browser_1.memoize,
|
|
80
|
+
tslib_1.__metadata("design:type", Object),
|
|
81
|
+
tslib_1.__metadata("design:paramtypes", [])
|
|
82
|
+
], TerminalContextMenuService.prototype, "contextMenu", null);
|
|
83
|
+
tslib_1.__decorate([
|
|
84
|
+
ide_core_browser_1.memoize,
|
|
85
|
+
tslib_1.__metadata("design:type", Object),
|
|
86
|
+
tslib_1.__metadata("design:paramtypes", [])
|
|
87
|
+
], TerminalContextMenuService.prototype, "tabContextMenu", null);
|
|
88
|
+
tslib_1.__decorate([
|
|
89
|
+
ide_core_browser_1.memoize,
|
|
90
|
+
tslib_1.__metadata("design:type", Object),
|
|
91
|
+
tslib_1.__metadata("design:paramtypes", [])
|
|
92
|
+
], TerminalContextMenuService.prototype, "tabDropDownContextMenu", null);
|
|
93
|
+
exports.TerminalContextMenuService = TerminalContextMenuService = tslib_1.__decorate([
|
|
94
|
+
(0, di_1.Injectable)()
|
|
95
|
+
], TerminalContextMenuService);
|
|
96
|
+
//# sourceMappingURL=terminal.context-menu.js.map
|