@codingame/monaco-vscode-interactive-service-override 9.0.0 → 9.0.2
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-interactive-service-override",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.2",
|
|
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@9.0.
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@9.0.2"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -64,7 +64,7 @@ import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/commo
|
|
|
64
64
|
import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
65
65
|
import { IWorkingCopyEditorService } from 'vscode/vscode/vs/workbench/services/workingCopy/common/workingCopyEditorService.service';
|
|
66
66
|
|
|
67
|
-
const interactiveWindowCategory = ( localize2(
|
|
67
|
+
const interactiveWindowCategory = ( localize2(2336, "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(2337, 'Open Interactive Window')),
|
|
273
273
|
f1: false,
|
|
274
274
|
category: interactiveWindowCategory,
|
|
275
275
|
metadata: {
|
|
276
|
-
description: ( localize(
|
|
276
|
+
description: ( localize(2337, '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(2338, 'Execute Code')),
|
|
381
381
|
category: interactiveWindowCategory,
|
|
382
382
|
keybinding: [{
|
|
383
383
|
when: ( (ContextKeyExpr.equals('activeEditor', 'workbench.editor.interactive'))),
|
|
@@ -489,7 +489,7 @@ registerAction2(class extends Action2 {
|
|
|
489
489
|
constructor() {
|
|
490
490
|
super({
|
|
491
491
|
id: 'interactive.input.clear',
|
|
492
|
-
title: ( localize2(
|
|
492
|
+
title: ( localize2(2339, 'Clear the interactive window input editor contents')),
|
|
493
493
|
category: interactiveWindowCategory,
|
|
494
494
|
f1: false
|
|
495
495
|
});
|
|
@@ -511,7 +511,7 @@ registerAction2(class extends Action2 {
|
|
|
511
511
|
constructor() {
|
|
512
512
|
super({
|
|
513
513
|
id: 'interactive.history.previous',
|
|
514
|
-
title: ( localize2(
|
|
514
|
+
title: ( localize2(2340, 'Previous value in history')),
|
|
515
515
|
category: interactiveWindowCategory,
|
|
516
516
|
f1: false,
|
|
517
517
|
keybinding: [{
|
|
@@ -555,7 +555,7 @@ registerAction2(class extends Action2 {
|
|
|
555
555
|
constructor() {
|
|
556
556
|
super({
|
|
557
557
|
id: 'interactive.history.next',
|
|
558
|
-
title: ( localize2(
|
|
558
|
+
title: ( localize2(2341, 'Next value in history')),
|
|
559
559
|
category: interactiveWindowCategory,
|
|
560
560
|
f1: false,
|
|
561
561
|
keybinding: [{
|
|
@@ -599,7 +599,7 @@ registerAction2(class extends Action2 {
|
|
|
599
599
|
constructor() {
|
|
600
600
|
super({
|
|
601
601
|
id: 'interactive.scrollToTop',
|
|
602
|
-
title: ( localize(
|
|
602
|
+
title: ( localize(2342, 'Scroll to Top')),
|
|
603
603
|
keybinding: {
|
|
604
604
|
when: ( (ContextKeyExpr.equals('activeEditor', 'workbench.editor.interactive'))),
|
|
605
605
|
primary: KeyMod.CtrlCmd | KeyCode.Home,
|
|
@@ -624,7 +624,7 @@ registerAction2(class extends Action2 {
|
|
|
624
624
|
constructor() {
|
|
625
625
|
super({
|
|
626
626
|
id: 'interactive.scrollToBottom',
|
|
627
|
-
title: ( localize(
|
|
627
|
+
title: ( localize(2343, 'Scroll to Bottom')),
|
|
628
628
|
keybinding: {
|
|
629
629
|
when: ( (ContextKeyExpr.equals('activeEditor', 'workbench.editor.interactive'))),
|
|
630
630
|
primary: KeyMod.CtrlCmd | KeyCode.End,
|
|
@@ -650,7 +650,7 @@ registerAction2(class extends Action2 {
|
|
|
650
650
|
constructor() {
|
|
651
651
|
super({
|
|
652
652
|
id: 'interactive.input.focus',
|
|
653
|
-
title: ( localize2(
|
|
653
|
+
title: ( localize2(2344, 'Focus Input Editor')),
|
|
654
654
|
category: interactiveWindowCategory,
|
|
655
655
|
menu: {
|
|
656
656
|
id: MenuId.CommandPalette,
|
|
@@ -684,7 +684,7 @@ registerAction2(class extends Action2 {
|
|
|
684
684
|
constructor() {
|
|
685
685
|
super({
|
|
686
686
|
id: 'interactive.history.focus',
|
|
687
|
-
title: ( localize2(
|
|
687
|
+
title: ( localize2(2345, 'Focus History')),
|
|
688
688
|
category: interactiveWindowCategory,
|
|
689
689
|
menu: {
|
|
690
690
|
id: MenuId.CommandPalette,
|
|
@@ -707,7 +707,7 @@ registerColor('interactive.activeCodeBorder', {
|
|
|
707
707
|
hcDark: contrastBorder,
|
|
708
708
|
hcLight: contrastBorder
|
|
709
709
|
}, ( localize(
|
|
710
|
-
|
|
710
|
+
2346,
|
|
711
711
|
'The border color for the current interactive code cell when the editor has focus.'
|
|
712
712
|
)));
|
|
713
713
|
registerColor('interactive.inactiveCodeBorder', {
|
|
@@ -716,7 +716,7 @@ registerColor('interactive.inactiveCodeBorder', {
|
|
|
716
716
|
hcDark: PANEL_BORDER,
|
|
717
717
|
hcLight: PANEL_BORDER
|
|
718
718
|
}, ( localize(
|
|
719
|
-
|
|
719
|
+
2347,
|
|
720
720
|
'The border color for the current interactive code cell when the editor does not have focus.'
|
|
721
721
|
)));
|
|
722
722
|
( (Registry.as(Extensions.Configuration))).registerConfiguration({
|
|
@@ -728,7 +728,7 @@ registerColor('interactive.inactiveCodeBorder', {
|
|
|
728
728
|
type: 'boolean',
|
|
729
729
|
default: true,
|
|
730
730
|
markdownDescription: ( localize(
|
|
731
|
-
|
|
731
|
+
2348,
|
|
732
732
|
"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."
|
|
733
733
|
))
|
|
734
734
|
},
|
|
@@ -736,7 +736,7 @@ registerColor('interactive.inactiveCodeBorder', {
|
|
|
736
736
|
type: 'boolean',
|
|
737
737
|
default: false,
|
|
738
738
|
markdownDescription: ( localize(
|
|
739
|
-
|
|
739
|
+
2349,
|
|
740
740
|
"Prompt to save the interactive window when it is closed. Only new interactive windows will be affected by this setting change."
|
|
741
741
|
))
|
|
742
742
|
},
|
|
@@ -744,7 +744,7 @@ registerColor('interactive.inactiveCodeBorder', {
|
|
|
744
744
|
type: 'boolean',
|
|
745
745
|
default: false,
|
|
746
746
|
markdownDescription: ( localize(
|
|
747
|
-
|
|
747
|
+
2350,
|
|
748
748
|
"Execute the Interactive Window (REPL) input box with shift+enter, so that enter can be used to create a newline."
|
|
749
749
|
)),
|
|
750
750
|
tags: ['replExecute']
|
|
@@ -753,7 +753,7 @@ registerColor('interactive.inactiveCodeBorder', {
|
|
|
753
753
|
type: 'boolean',
|
|
754
754
|
default: true,
|
|
755
755
|
markdownDescription: ( localize(
|
|
756
|
-
|
|
756
|
+
2351,
|
|
757
757
|
"Display a hint in the Interactive Window (REPL) input box to indicate how to execute code."
|
|
758
758
|
)),
|
|
759
759
|
tags: ['replExecute']
|
|
@@ -76,7 +76,7 @@ let ReplInputHintContentWidget = class ReplInputHintContentWidget extends Dispos
|
|
|
76
76
|
const keybinding = this.getKeybinding();
|
|
77
77
|
const keybindingHintLabel = keybinding?.getLabel();
|
|
78
78
|
if (keybinding && keybindingHintLabel) {
|
|
79
|
-
const actionPart = ( localize(
|
|
79
|
+
const actionPart = ( localize(10141, 'Press {0} to execute. ', keybindingHintLabel));
|
|
80
80
|
const [before, after] = ( (actionPart.split(keybindingHintLabel).map((fragment) => {
|
|
81
81
|
const hintPart = $('span', undefined, fragment);
|
|
82
82
|
hintPart.style.fontStyle = 'italic';
|
|
@@ -90,7 +90,7 @@ let ReplInputHintContentWidget = class ReplInputHintContentWidget extends Dispos
|
|
|
90
90
|
hintElement.appendChild(after);
|
|
91
91
|
this.domNode.append(hintElement);
|
|
92
92
|
this.ariaLabel = actionPart.concat(( localize(
|
|
93
|
-
|
|
93
|
+
10142,
|
|
94
94
|
' Toggle {0} in settings to disable this hint.',
|
|
95
95
|
AccessibilityVerbositySettingId.ReplInputHint
|
|
96
96
|
)));
|