@codingame/monaco-vscode-interactive-service-override 10.0.2 → 10.1.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/package.json +2 -2
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactive.contribution.js +17 -17
- package/vscode/src/vs/workbench/contrib/interactive/browser/replInputHintContentWidget.js +4 -4
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorInput.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-interactive-service-override",
|
|
3
|
-
"version": "10.0
|
|
3
|
+
"version": "10.1.0",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@10.0
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@10.1.0"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -64,7 +64,7 @@ import { isReplEditorControl } from '../../replNotebook/browser/replEditor.js';
|
|
|
64
64
|
import { InlineChatController } from 'vscode/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatController';
|
|
65
65
|
import { IsWindowsContext, IsLinuxContext } from 'vscode/vscode/vs/platform/contextkey/common/contextkeys';
|
|
66
66
|
|
|
67
|
-
const interactiveWindowCategory = ( localize2(
|
|
67
|
+
const interactiveWindowCategory = ( localize2(2353, "Interactive Window"));
|
|
68
68
|
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(InteractiveEditor, INTERACTIVE_WINDOW_EDITOR_ID, 'Interactive Window'), [
|
|
69
69
|
( (new SyncDescriptor(InteractiveEditorInput)))
|
|
70
70
|
]);
|
|
@@ -269,11 +269,11 @@ registerAction2(class extends Action2 {
|
|
|
269
269
|
constructor() {
|
|
270
270
|
super({
|
|
271
271
|
id: '_interactive.open',
|
|
272
|
-
title: ( localize2(
|
|
272
|
+
title: ( localize2(2354, 'Open Interactive Window')),
|
|
273
273
|
f1: false,
|
|
274
274
|
category: interactiveWindowCategory,
|
|
275
275
|
metadata: {
|
|
276
|
-
description: ( localize(
|
|
276
|
+
description: ( localize(2354, 'Open Interactive Window')),
|
|
277
277
|
args: [
|
|
278
278
|
{
|
|
279
279
|
name: 'showOptions',
|
|
@@ -377,7 +377,7 @@ registerAction2(class extends Action2 {
|
|
|
377
377
|
constructor() {
|
|
378
378
|
super({
|
|
379
379
|
id: 'interactive.execute',
|
|
380
|
-
title: ( localize2(
|
|
380
|
+
title: ( localize2(2355, 'Execute Code')),
|
|
381
381
|
category: interactiveWindowCategory,
|
|
382
382
|
keybinding: [{
|
|
383
383
|
when: ( (ContextKeyExpr.equals('activeEditor', 'workbench.editor.interactive'))),
|
|
@@ -493,7 +493,7 @@ registerAction2(class extends Action2 {
|
|
|
493
493
|
constructor() {
|
|
494
494
|
super({
|
|
495
495
|
id: 'interactive.input.clear',
|
|
496
|
-
title: ( localize2(
|
|
496
|
+
title: ( localize2(2356, 'Clear the interactive window input editor contents')),
|
|
497
497
|
category: interactiveWindowCategory,
|
|
498
498
|
f1: false
|
|
499
499
|
});
|
|
@@ -515,7 +515,7 @@ registerAction2(class extends Action2 {
|
|
|
515
515
|
constructor() {
|
|
516
516
|
super({
|
|
517
517
|
id: 'interactive.history.previous',
|
|
518
|
-
title: ( localize2(
|
|
518
|
+
title: ( localize2(2357, 'Previous value in history')),
|
|
519
519
|
category: interactiveWindowCategory,
|
|
520
520
|
f1: false,
|
|
521
521
|
keybinding: {
|
|
@@ -550,7 +550,7 @@ registerAction2(class extends Action2 {
|
|
|
550
550
|
constructor() {
|
|
551
551
|
super({
|
|
552
552
|
id: 'interactive.history.next',
|
|
553
|
-
title: ( localize2(
|
|
553
|
+
title: ( localize2(2358, 'Next value in history')),
|
|
554
554
|
category: interactiveWindowCategory,
|
|
555
555
|
f1: false,
|
|
556
556
|
keybinding: {
|
|
@@ -585,7 +585,7 @@ registerAction2(class extends Action2 {
|
|
|
585
585
|
constructor() {
|
|
586
586
|
super({
|
|
587
587
|
id: 'interactive.scrollToTop',
|
|
588
|
-
title: ( localize(
|
|
588
|
+
title: ( localize(2359, 'Scroll to Top')),
|
|
589
589
|
keybinding: {
|
|
590
590
|
when: ( (ContextKeyExpr.equals('activeEditor', 'workbench.editor.interactive'))),
|
|
591
591
|
primary: 2048 | 14 ,
|
|
@@ -610,7 +610,7 @@ registerAction2(class extends Action2 {
|
|
|
610
610
|
constructor() {
|
|
611
611
|
super({
|
|
612
612
|
id: 'interactive.scrollToBottom',
|
|
613
|
-
title: ( localize(
|
|
613
|
+
title: ( localize(2360, 'Scroll to Bottom')),
|
|
614
614
|
keybinding: {
|
|
615
615
|
when: ( (ContextKeyExpr.equals('activeEditor', 'workbench.editor.interactive'))),
|
|
616
616
|
primary: 2048 | 13 ,
|
|
@@ -636,7 +636,7 @@ registerAction2(class extends Action2 {
|
|
|
636
636
|
constructor() {
|
|
637
637
|
super({
|
|
638
638
|
id: 'interactive.input.focus',
|
|
639
|
-
title: ( localize2(
|
|
639
|
+
title: ( localize2(2361, 'Focus Input Editor')),
|
|
640
640
|
category: interactiveWindowCategory,
|
|
641
641
|
menu: {
|
|
642
642
|
id: MenuId.CommandPalette,
|
|
@@ -674,7 +674,7 @@ registerAction2(class extends Action2 {
|
|
|
674
674
|
constructor() {
|
|
675
675
|
super({
|
|
676
676
|
id: 'interactive.history.focus',
|
|
677
|
-
title: ( localize2(
|
|
677
|
+
title: ( localize2(2362, 'Focus History')),
|
|
678
678
|
category: interactiveWindowCategory,
|
|
679
679
|
menu: {
|
|
680
680
|
id: MenuId.CommandPalette,
|
|
@@ -710,7 +710,7 @@ registerColor('interactive.activeCodeBorder', {
|
|
|
710
710
|
hcDark: contrastBorder,
|
|
711
711
|
hcLight: contrastBorder
|
|
712
712
|
}, ( localize(
|
|
713
|
-
|
|
713
|
+
2363,
|
|
714
714
|
'The border color for the current interactive code cell when the editor has focus.'
|
|
715
715
|
)));
|
|
716
716
|
registerColor('interactive.inactiveCodeBorder', {
|
|
@@ -719,7 +719,7 @@ registerColor('interactive.inactiveCodeBorder', {
|
|
|
719
719
|
hcDark: PANEL_BORDER,
|
|
720
720
|
hcLight: PANEL_BORDER
|
|
721
721
|
}, ( localize(
|
|
722
|
-
|
|
722
|
+
2364,
|
|
723
723
|
'The border color for the current interactive code cell when the editor does not have focus.'
|
|
724
724
|
)));
|
|
725
725
|
( (Registry.as(Extensions.Configuration))).registerConfiguration({
|
|
@@ -731,7 +731,7 @@ registerColor('interactive.inactiveCodeBorder', {
|
|
|
731
731
|
type: 'boolean',
|
|
732
732
|
default: true,
|
|
733
733
|
markdownDescription: ( localize(
|
|
734
|
-
|
|
734
|
+
2365,
|
|
735
735
|
"Automatically scroll the interactive window to show the output of the last statement executed. If this value is false, the window will only scroll if the last cell was already the one scrolled to."
|
|
736
736
|
))
|
|
737
737
|
},
|
|
@@ -739,7 +739,7 @@ registerColor('interactive.inactiveCodeBorder', {
|
|
|
739
739
|
type: 'boolean',
|
|
740
740
|
default: false,
|
|
741
741
|
markdownDescription: ( localize(
|
|
742
|
-
|
|
742
|
+
2366,
|
|
743
743
|
"Prompt to save the interactive window when it is closed. Only new interactive windows will be affected by this setting change."
|
|
744
744
|
))
|
|
745
745
|
},
|
|
@@ -747,7 +747,7 @@ registerColor('interactive.inactiveCodeBorder', {
|
|
|
747
747
|
type: 'boolean',
|
|
748
748
|
default: false,
|
|
749
749
|
markdownDescription: ( localize(
|
|
750
|
-
|
|
750
|
+
2367,
|
|
751
751
|
"Execute the Interactive Window (REPL) input box with shift+enter, so that enter can be used to create a newline."
|
|
752
752
|
)),
|
|
753
753
|
tags: ['replExecute']
|
|
@@ -756,7 +756,7 @@ registerColor('interactive.inactiveCodeBorder', {
|
|
|
756
756
|
type: 'boolean',
|
|
757
757
|
default: true,
|
|
758
758
|
markdownDescription: ( localize(
|
|
759
|
-
|
|
759
|
+
2368,
|
|
760
760
|
"Display a hint in the Interactive Window (REPL) input box to indicate how to execute code."
|
|
761
761
|
)),
|
|
762
762
|
tags: ['replExecute']
|
|
@@ -73,7 +73,7 @@ let ReplInputHintContentWidget = class ReplInputHintContentWidget extends Dispos
|
|
|
73
73
|
const keybinding = this.getKeybinding();
|
|
74
74
|
const keybindingHintLabel = keybinding?.getLabel();
|
|
75
75
|
if (keybinding && keybindingHintLabel) {
|
|
76
|
-
const actionPart = ( localize(
|
|
76
|
+
const actionPart = ( localize(10246, 'Press {0} to execute. ', keybindingHintLabel));
|
|
77
77
|
const [before, after] = ( (actionPart.split(keybindingHintLabel).map((fragment) => {
|
|
78
78
|
const hintPart = $('span', undefined, fragment);
|
|
79
79
|
hintPart.style.fontStyle = 'italic';
|
|
@@ -88,10 +88,10 @@ let ReplInputHintContentWidget = class ReplInputHintContentWidget extends Dispos
|
|
|
88
88
|
this.domNode.append(hintElement);
|
|
89
89
|
const helpKeybinding = this.keybindingService.lookupKeybinding("editor.action.accessibilityHelp" )?.getLabel();
|
|
90
90
|
const helpInfo = helpKeybinding
|
|
91
|
-
? ( localize(
|
|
92
|
-
: ( localize(
|
|
91
|
+
? ( localize(10247, "Use {0} for accessibility help. ", helpKeybinding))
|
|
92
|
+
: ( localize(10248, "Run the Open Accessibility Help command for more information. "));
|
|
93
93
|
this.ariaLabel = helpInfo.concat(actionPart, ( localize(
|
|
94
|
-
|
|
94
|
+
10249,
|
|
95
95
|
' Toggle {0} in settings to disable this hint.',
|
|
96
96
|
"accessibility.verbosity.replInputHint"
|
|
97
97
|
)));
|
|
@@ -19,7 +19,7 @@ import { localize } from 'vscode/vscode/vs/nls';
|
|
|
19
19
|
import { registerIcon } from 'vscode/vscode/vs/platform/theme/common/iconRegistry';
|
|
20
20
|
|
|
21
21
|
var ReplEditorInput_1;
|
|
22
|
-
const replTabIcon = registerIcon('repl-editor-label-icon', Codicon.debugLineByLine, ( localize(
|
|
22
|
+
const replTabIcon = registerIcon('repl-editor-label-icon', Codicon.debugLineByLine, ( localize(10250, 'Icon of the REPL editor label.')));
|
|
23
23
|
let ReplEditorInput = class ReplEditorInput extends NotebookEditorInput {
|
|
24
24
|
static { ReplEditorInput_1 = this; }
|
|
25
25
|
static { this.ID = 'workbench.editorinputs.replEditorInput'; }
|