@codingame/monaco-vscode-interactive-service-override 8.0.0 → 8.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 +2 -2
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactive.contribution.js +18 -18
- package/vscode/src/vs/workbench/contrib/interactive/browser/replInputHintContentWidget.js +2 -2
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/repl.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditor.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-interactive-service-override",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.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@8.0.
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@8.0.2"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -68,7 +68,7 @@ import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/commo
|
|
|
68
68
|
import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
69
69
|
import { IWorkingCopyEditorService } from 'vscode/vscode/vs/workbench/services/workingCopy/common/workingCopyEditorService.service';
|
|
70
70
|
|
|
71
|
-
const interactiveWindowCategory = ( localize2(
|
|
71
|
+
const interactiveWindowCategory = ( localize2(2349, "Interactive Window"));
|
|
72
72
|
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(InteractiveEditor, INTERACTIVE_WINDOW_EDITOR_ID, 'Interactive Window'), [
|
|
73
73
|
( (new SyncDescriptor(InteractiveEditorInput)))
|
|
74
74
|
]);
|
|
@@ -257,11 +257,11 @@ registerAction2(class extends Action2 {
|
|
|
257
257
|
constructor() {
|
|
258
258
|
super({
|
|
259
259
|
id: '_interactive.open',
|
|
260
|
-
title: ( localize2(
|
|
260
|
+
title: ( localize2(2350, 'Open Interactive Window')),
|
|
261
261
|
f1: false,
|
|
262
262
|
category: interactiveWindowCategory,
|
|
263
263
|
metadata: {
|
|
264
|
-
description: ( localize(
|
|
264
|
+
description: ( localize(2350, 'Open Interactive Window')),
|
|
265
265
|
args: [
|
|
266
266
|
{
|
|
267
267
|
name: 'showOptions',
|
|
@@ -365,7 +365,7 @@ registerAction2(class extends Action2 {
|
|
|
365
365
|
constructor() {
|
|
366
366
|
super({
|
|
367
367
|
id: 'interactive.configure',
|
|
368
|
-
title: ( localize2(
|
|
368
|
+
title: ( localize2(2351, 'Configure input box behavior')),
|
|
369
369
|
category: interactiveWindowCategory,
|
|
370
370
|
f1: false,
|
|
371
371
|
icon: configIcon,
|
|
@@ -382,7 +382,7 @@ registerAction2(class extends Action2 {
|
|
|
382
382
|
constructor() {
|
|
383
383
|
super({
|
|
384
384
|
id: 'interactive.execute',
|
|
385
|
-
title: ( localize2(
|
|
385
|
+
title: ( localize2(2352, 'Execute Code')),
|
|
386
386
|
category: interactiveWindowCategory,
|
|
387
387
|
keybinding: [{
|
|
388
388
|
when: ( (ContextKeyExpr.equals('activeEditor', 'workbench.editor.interactive'))),
|
|
@@ -503,7 +503,7 @@ registerAction2(class extends Action2 {
|
|
|
503
503
|
constructor() {
|
|
504
504
|
super({
|
|
505
505
|
id: 'interactive.input.clear',
|
|
506
|
-
title: ( localize2(
|
|
506
|
+
title: ( localize2(2353, 'Clear the interactive window input editor contents')),
|
|
507
507
|
category: interactiveWindowCategory,
|
|
508
508
|
f1: false
|
|
509
509
|
});
|
|
@@ -525,7 +525,7 @@ registerAction2(class extends Action2 {
|
|
|
525
525
|
constructor() {
|
|
526
526
|
super({
|
|
527
527
|
id: 'interactive.history.previous',
|
|
528
|
-
title: ( localize2(
|
|
528
|
+
title: ( localize2(2354, 'Previous value in history')),
|
|
529
529
|
category: interactiveWindowCategory,
|
|
530
530
|
f1: false,
|
|
531
531
|
keybinding: [{
|
|
@@ -569,7 +569,7 @@ registerAction2(class extends Action2 {
|
|
|
569
569
|
constructor() {
|
|
570
570
|
super({
|
|
571
571
|
id: 'interactive.history.next',
|
|
572
|
-
title: ( localize2(
|
|
572
|
+
title: ( localize2(2355, 'Next value in history')),
|
|
573
573
|
category: interactiveWindowCategory,
|
|
574
574
|
f1: false,
|
|
575
575
|
keybinding: [{
|
|
@@ -613,7 +613,7 @@ registerAction2(class extends Action2 {
|
|
|
613
613
|
constructor() {
|
|
614
614
|
super({
|
|
615
615
|
id: 'interactive.scrollToTop',
|
|
616
|
-
title: ( localize(
|
|
616
|
+
title: ( localize(2356, 'Scroll to Top')),
|
|
617
617
|
keybinding: {
|
|
618
618
|
when: ( (ContextKeyExpr.equals('activeEditor', 'workbench.editor.interactive'))),
|
|
619
619
|
primary: KeyMod.CtrlCmd | KeyCode.Home,
|
|
@@ -638,7 +638,7 @@ registerAction2(class extends Action2 {
|
|
|
638
638
|
constructor() {
|
|
639
639
|
super({
|
|
640
640
|
id: 'interactive.scrollToBottom',
|
|
641
|
-
title: ( localize(
|
|
641
|
+
title: ( localize(2357, 'Scroll to Bottom')),
|
|
642
642
|
keybinding: {
|
|
643
643
|
when: ( (ContextKeyExpr.equals('activeEditor', 'workbench.editor.interactive'))),
|
|
644
644
|
primary: KeyMod.CtrlCmd | KeyCode.End,
|
|
@@ -664,7 +664,7 @@ registerAction2(class extends Action2 {
|
|
|
664
664
|
constructor() {
|
|
665
665
|
super({
|
|
666
666
|
id: 'interactive.input.focus',
|
|
667
|
-
title: ( localize2(
|
|
667
|
+
title: ( localize2(2358, 'Focus Input Editor')),
|
|
668
668
|
category: interactiveWindowCategory,
|
|
669
669
|
menu: {
|
|
670
670
|
id: MenuId.CommandPalette,
|
|
@@ -698,7 +698,7 @@ registerAction2(class extends Action2 {
|
|
|
698
698
|
constructor() {
|
|
699
699
|
super({
|
|
700
700
|
id: 'interactive.history.focus',
|
|
701
|
-
title: ( localize2(
|
|
701
|
+
title: ( localize2(2359, 'Focus History')),
|
|
702
702
|
category: interactiveWindowCategory,
|
|
703
703
|
menu: {
|
|
704
704
|
id: MenuId.CommandPalette,
|
|
@@ -721,7 +721,7 @@ registerColor('interactive.activeCodeBorder', {
|
|
|
721
721
|
hcDark: contrastBorder,
|
|
722
722
|
hcLight: contrastBorder
|
|
723
723
|
}, ( localize(
|
|
724
|
-
|
|
724
|
+
2360,
|
|
725
725
|
'The border color for the current interactive code cell when the editor has focus.'
|
|
726
726
|
)));
|
|
727
727
|
registerColor('interactive.inactiveCodeBorder', {
|
|
@@ -730,7 +730,7 @@ registerColor('interactive.inactiveCodeBorder', {
|
|
|
730
730
|
hcDark: PANEL_BORDER,
|
|
731
731
|
hcLight: PANEL_BORDER
|
|
732
732
|
}, ( localize(
|
|
733
|
-
|
|
733
|
+
2361,
|
|
734
734
|
'The border color for the current interactive code cell when the editor does not have focus.'
|
|
735
735
|
)));
|
|
736
736
|
( (Registry.as(Extensions.Configuration))).registerConfiguration({
|
|
@@ -742,7 +742,7 @@ registerColor('interactive.inactiveCodeBorder', {
|
|
|
742
742
|
type: 'boolean',
|
|
743
743
|
default: true,
|
|
744
744
|
markdownDescription: ( localize(
|
|
745
|
-
|
|
745
|
+
2362,
|
|
746
746
|
"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."
|
|
747
747
|
))
|
|
748
748
|
},
|
|
@@ -750,7 +750,7 @@ registerColor('interactive.inactiveCodeBorder', {
|
|
|
750
750
|
type: 'boolean',
|
|
751
751
|
default: false,
|
|
752
752
|
markdownDescription: ( localize(
|
|
753
|
-
|
|
753
|
+
2363,
|
|
754
754
|
"Prompt to save the interactive window when it is closed. Only new interactive windows will be affected by this setting change."
|
|
755
755
|
))
|
|
756
756
|
},
|
|
@@ -758,7 +758,7 @@ registerColor('interactive.inactiveCodeBorder', {
|
|
|
758
758
|
type: 'boolean',
|
|
759
759
|
default: false,
|
|
760
760
|
markdownDescription: ( localize(
|
|
761
|
-
|
|
761
|
+
2364,
|
|
762
762
|
"Execute the Interactive Window (REPL) input box with shift+enter, so that enter can be used to create a newline."
|
|
763
763
|
)),
|
|
764
764
|
tags: ['replExecute']
|
|
@@ -767,7 +767,7 @@ registerColor('interactive.inactiveCodeBorder', {
|
|
|
767
767
|
type: 'boolean',
|
|
768
768
|
default: true,
|
|
769
769
|
markdownDescription: ( localize(
|
|
770
|
-
|
|
770
|
+
2365,
|
|
771
771
|
"Display a hint in the Interactive Window (REPL) input box to indicate how to execute code."
|
|
772
772
|
)),
|
|
773
773
|
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(10107, '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
|
+
10108,
|
|
94
94
|
' Toggle {0} in settings to disable this hint.',
|
|
95
95
|
AccessibilityVerbositySettingId.ReplInputHint
|
|
96
96
|
)));
|
|
@@ -507,8 +507,8 @@ let ReplEditor = class ReplEditor extends EditorPane {
|
|
|
507
507
|
if (languageId !== 'plaintext') {
|
|
508
508
|
const keybinding = this._keybindingService.lookupKeybinding(EXECUTE_REPL_COMMAND_ID, this._contextKeyService)?.getLabel();
|
|
509
509
|
const text = keybinding ?
|
|
510
|
-
( localize(
|
|
511
|
-
( localize(
|
|
510
|
+
( localize(5657, "Type '{0}' code here and press {1} to run", languageId, keybinding)) :
|
|
511
|
+
( localize(5658, "Type '{0}' code here and click run", languageId));
|
|
512
512
|
decorations.push({
|
|
513
513
|
range: {
|
|
514
514
|
startLineNumber: 0,
|