@codingame/monaco-vscode-xterm-common 25.0.1 → 25.1.1
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/package.json +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChat.js +9 -9
- package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/terminalStickyScrollColorRegistry.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/terminalStickyScrollOverlay.js +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-xterm-common",
|
|
3
|
-
"version": "25.
|
|
3
|
+
"version": "25.1.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - common package depending on xterm",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "25.
|
|
19
|
-
"@codingame/monaco-vscode-xterm-addons-common": "25.
|
|
18
|
+
"@codingame/monaco-vscode-api": "25.1.1",
|
|
19
|
+
"@codingame/monaco-vscode-xterm-addons-common": "25.1.1",
|
|
20
20
|
"@xterm/xterm": "6.1.0-beta.97"
|
|
21
21
|
},
|
|
22
22
|
"exports": {
|
|
@@ -43,26 +43,26 @@ var TerminalChatContextKeyStrings;
|
|
|
43
43
|
})(TerminalChatContextKeyStrings || (TerminalChatContextKeyStrings = {}));
|
|
44
44
|
var TerminalChatContextKeys;
|
|
45
45
|
(function (TerminalChatContextKeys) {
|
|
46
|
-
TerminalChatContextKeys.focused = ( new RawContextKey(TerminalChatContextKeyStrings.ChatFocus, false, ( localize(
|
|
47
|
-
TerminalChatContextKeys.visible = ( new RawContextKey(TerminalChatContextKeyStrings.ChatVisible, false, ( localize(
|
|
48
|
-
TerminalChatContextKeys.requestActive = ( new RawContextKey(TerminalChatContextKeyStrings.ChatActiveRequest, false, ( localize(
|
|
49
|
-
TerminalChatContextKeys.inputHasText = ( new RawContextKey(TerminalChatContextKeyStrings.ChatInputHasText, false, ( localize(
|
|
46
|
+
TerminalChatContextKeys.focused = ( new RawContextKey(TerminalChatContextKeyStrings.ChatFocus, false, ( localize(11968, "Whether the chat view is focused."))));
|
|
47
|
+
TerminalChatContextKeys.visible = ( new RawContextKey(TerminalChatContextKeyStrings.ChatVisible, false, ( localize(11969, "Whether the chat view is visible."))));
|
|
48
|
+
TerminalChatContextKeys.requestActive = ( new RawContextKey(TerminalChatContextKeyStrings.ChatActiveRequest, false, ( localize(11970, "Whether there is an active chat request."))));
|
|
49
|
+
TerminalChatContextKeys.inputHasText = ( new RawContextKey(TerminalChatContextKeyStrings.ChatInputHasText, false, ( localize(11971, "Whether the chat input has text."))));
|
|
50
50
|
TerminalChatContextKeys.responseContainsCodeBlock = ( new RawContextKey(
|
|
51
51
|
TerminalChatContextKeyStrings.ChatResponseContainsCodeBlock,
|
|
52
52
|
false,
|
|
53
|
-
( localize(
|
|
53
|
+
( localize(11972, "Whether the chat response contains a code block."))
|
|
54
54
|
));
|
|
55
55
|
TerminalChatContextKeys.responseContainsMultipleCodeBlocks = ( new RawContextKey(
|
|
56
56
|
TerminalChatContextKeyStrings.ChatResponseContainsMultipleCodeBlocks,
|
|
57
57
|
false,
|
|
58
|
-
( localize(
|
|
58
|
+
( localize(11973, "Whether the chat response contains multiple code blocks."))
|
|
59
59
|
));
|
|
60
|
-
TerminalChatContextKeys.hasChatAgent = ( new RawContextKey(TerminalChatContextKeyStrings.ChatAgentRegistered, false, ( localize(
|
|
61
|
-
TerminalChatContextKeys.hasChatTerminals = ( new RawContextKey(TerminalChatContextKeyStrings.ChatHasTerminals, false, ( localize(
|
|
60
|
+
TerminalChatContextKeys.hasChatAgent = ( new RawContextKey(TerminalChatContextKeyStrings.ChatAgentRegistered, false, ( localize(11974, "Whether a chat agent is registered for the terminal location."))));
|
|
61
|
+
TerminalChatContextKeys.hasChatTerminals = ( new RawContextKey(TerminalChatContextKeyStrings.ChatHasTerminals, false, ( localize(11975, "Whether there are any chat terminals."))));
|
|
62
62
|
TerminalChatContextKeys.hasHiddenChatTerminals = ( new RawContextKey(
|
|
63
63
|
TerminalChatContextKeyStrings.ChatHasHiddenTerminals,
|
|
64
64
|
false,
|
|
65
|
-
( localize(
|
|
65
|
+
( localize(11976, "Whether there are any hidden chat terminals."))
|
|
66
66
|
));
|
|
67
67
|
})(TerminalChatContextKeys || (TerminalChatContextKeys = {}));
|
|
68
68
|
|
|
@@ -3,7 +3,7 @@ import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
|
3
3
|
import { registerColor } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colorUtils';
|
|
4
4
|
|
|
5
5
|
const terminalStickyScrollBackground = registerColor('terminalStickyScroll.background', null, ( localize(
|
|
6
|
-
|
|
6
|
+
12260,
|
|
7
7
|
'The background color of the sticky scroll overlay in the terminal.'
|
|
8
8
|
)));
|
|
9
9
|
const terminalStickyScrollHoverBackground = registerColor('terminalStickyScrollHover.background', {
|
|
@@ -12,7 +12,7 @@ const terminalStickyScrollHoverBackground = registerColor('terminalStickyScrollH
|
|
|
12
12
|
hcDark: '#E48B39',
|
|
13
13
|
hcLight: '#0f4a85'
|
|
14
14
|
}, ( localize(
|
|
15
|
-
|
|
15
|
+
12261,
|
|
16
16
|
'The background color of the sticky scroll overlay in the terminal when hovered.'
|
|
17
17
|
)));
|
|
18
18
|
registerColor('terminalStickyScroll.border', {
|
|
@@ -20,6 +20,6 @@ registerColor('terminalStickyScroll.border', {
|
|
|
20
20
|
light: null,
|
|
21
21
|
hcDark: '#6fc3df',
|
|
22
22
|
hcLight: '#0f4a85'
|
|
23
|
-
}, ( localize(
|
|
23
|
+
}, ( localize(12262, 'The border of the sticky scroll overlay in the terminal.')));
|
|
24
24
|
|
|
25
25
|
export { terminalStickyScrollBackground, terminalStickyScrollHoverBackground };
|
|
@@ -274,19 +274,19 @@ let TerminalStickyScrollOverlay = class TerminalStickyScrollOverlay extends Disp
|
|
|
274
274
|
this._element = $('.terminal-sticky-scroll', undefined, hoverOverlay);
|
|
275
275
|
this._xterm.raw.element.parentElement.append(this._element);
|
|
276
276
|
this._register(toDisposable(() => this._element?.remove()));
|
|
277
|
-
let hoverTitle = ( localize(
|
|
277
|
+
let hoverTitle = ( localize(12263, 'Navigate to Command'));
|
|
278
278
|
const scrollToPreviousCommandKeybinding = this._keybindingService.lookupKeybinding(TerminalCommandId.ScrollToPreviousCommand);
|
|
279
279
|
if (scrollToPreviousCommandKeybinding) {
|
|
280
280
|
const label = scrollToPreviousCommandKeybinding.getLabel();
|
|
281
281
|
if (label) {
|
|
282
|
-
hoverTitle += '\n' + ( localize(
|
|
282
|
+
hoverTitle += '\n' + ( localize(12264, "{0} ({1})", terminalStrings.scrollToPreviousCommand.value, label));
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
const scrollToNextCommandKeybinding = this._keybindingService.lookupKeybinding(TerminalCommandId.ScrollToNextCommand);
|
|
286
286
|
if (scrollToNextCommandKeybinding) {
|
|
287
287
|
const label = scrollToNextCommandKeybinding.getLabel();
|
|
288
288
|
if (label) {
|
|
289
|
-
hoverTitle += '\n' + ( localize(
|
|
289
|
+
hoverTitle += '\n' + ( localize(12264, "{0} ({1})", terminalStrings.scrollToNextCommand.value, label));
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
292
|
hoverOverlay.title = hoverTitle;
|