@codingame/monaco-vscode-interactive-service-override 21.3.1 → 21.3.3
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 +9 -9
- 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/replEditor.js +0 -1
- 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": "21.3.
|
|
3
|
+
"version": "21.3.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - interactive service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-5e2c24a1-3217-55e8-bc90-521eaf7df5a6-common": "21.3.
|
|
19
|
-
"@codingame/monaco-vscode-670aae94-7f88-54d7-90ea-6fcbef423557-common": "21.3.
|
|
20
|
-
"@codingame/monaco-vscode-a793b3ee-7ba9-5176-a019-30ec806fdd95-common": "21.3.
|
|
21
|
-
"@codingame/monaco-vscode-api": "21.3.
|
|
22
|
-
"@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common": "21.3.
|
|
23
|
-
"@codingame/monaco-vscode-e39a1c8f-7892-5d9b-9987-7b10b79e1a0a-common": "21.3.
|
|
24
|
-
"@codingame/monaco-vscode-eba0b9b3-174c-5dae-9867-a37810ca1808-common": "21.3.
|
|
25
|
-
"@codingame/monaco-vscode-eda30bac-0984-5b42-9362-c68996b85232-common": "21.3.
|
|
18
|
+
"@codingame/monaco-vscode-5e2c24a1-3217-55e8-bc90-521eaf7df5a6-common": "21.3.3",
|
|
19
|
+
"@codingame/monaco-vscode-670aae94-7f88-54d7-90ea-6fcbef423557-common": "21.3.3",
|
|
20
|
+
"@codingame/monaco-vscode-a793b3ee-7ba9-5176-a019-30ec806fdd95-common": "21.3.3",
|
|
21
|
+
"@codingame/monaco-vscode-api": "21.3.3",
|
|
22
|
+
"@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common": "21.3.3",
|
|
23
|
+
"@codingame/monaco-vscode-e39a1c8f-7892-5d9b-9987-7b10b79e1a0a-common": "21.3.3",
|
|
24
|
+
"@codingame/monaco-vscode-eba0b9b3-174c-5dae-9867-a37810ca1808-common": "21.3.3",
|
|
25
|
+
"@codingame/monaco-vscode-eda30bac-0984-5b42-9362-c68996b85232-common": "21.3.3"
|
|
26
26
|
},
|
|
27
27
|
"main": "index.js",
|
|
28
28
|
"module": "index.js",
|
|
@@ -68,7 +68,7 @@ import { isReplEditorControl } from '../../replNotebook/browser/replEditor.js';
|
|
|
68
68
|
import { InlineChatController } from '@codingame/monaco-vscode-a793b3ee-7ba9-5176-a019-30ec806fdd95-common/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatController';
|
|
69
69
|
import { IsWindowsContext, IsLinuxContext } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkeys';
|
|
70
70
|
|
|
71
|
-
const interactiveWindowCategory = ( localize2(
|
|
71
|
+
const interactiveWindowCategory = ( localize2(7888, "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
|
]);
|
|
@@ -277,11 +277,11 @@ registerAction2(class extends Action2 {
|
|
|
277
277
|
constructor() {
|
|
278
278
|
super({
|
|
279
279
|
id: '_interactive.open',
|
|
280
|
-
title: ( localize2(
|
|
280
|
+
title: ( localize2(7889, 'Open Interactive Window')),
|
|
281
281
|
f1: false,
|
|
282
282
|
category: interactiveWindowCategory,
|
|
283
283
|
metadata: {
|
|
284
|
-
description: ( localize(
|
|
284
|
+
description: ( localize(7889, 'Open Interactive Window')),
|
|
285
285
|
args: [
|
|
286
286
|
{
|
|
287
287
|
name: 'showOptions',
|
|
@@ -385,7 +385,7 @@ registerAction2(class extends Action2 {
|
|
|
385
385
|
constructor() {
|
|
386
386
|
super({
|
|
387
387
|
id: 'interactive.execute',
|
|
388
|
-
title: ( localize2(
|
|
388
|
+
title: ( localize2(7890, 'Execute Code')),
|
|
389
389
|
category: interactiveWindowCategory,
|
|
390
390
|
keybinding: [{
|
|
391
391
|
when: ( ContextKeyExpr.and(IS_COMPOSITE_NOTEBOOK, ( ContextKeyExpr.equals('activeEditor', 'workbench.editor.interactive')))),
|
|
@@ -495,7 +495,7 @@ registerAction2(class extends Action2 {
|
|
|
495
495
|
constructor() {
|
|
496
496
|
super({
|
|
497
497
|
id: 'interactive.input.clear',
|
|
498
|
-
title: ( localize2(
|
|
498
|
+
title: ( localize2(7891, 'Clear the interactive window input editor contents')),
|
|
499
499
|
category: interactiveWindowCategory,
|
|
500
500
|
f1: false
|
|
501
501
|
});
|
|
@@ -517,7 +517,7 @@ registerAction2(class extends Action2 {
|
|
|
517
517
|
constructor() {
|
|
518
518
|
super({
|
|
519
519
|
id: 'interactive.history.previous',
|
|
520
|
-
title: ( localize2(
|
|
520
|
+
title: ( localize2(7892, 'Previous value in history')),
|
|
521
521
|
category: interactiveWindowCategory,
|
|
522
522
|
f1: false,
|
|
523
523
|
keybinding: {
|
|
@@ -548,7 +548,7 @@ registerAction2(class extends Action2 {
|
|
|
548
548
|
constructor() {
|
|
549
549
|
super({
|
|
550
550
|
id: 'interactive.history.next',
|
|
551
|
-
title: ( localize2(
|
|
551
|
+
title: ( localize2(7893, 'Next value in history')),
|
|
552
552
|
category: interactiveWindowCategory,
|
|
553
553
|
f1: false,
|
|
554
554
|
keybinding: {
|
|
@@ -579,7 +579,7 @@ registerAction2(class extends Action2 {
|
|
|
579
579
|
constructor() {
|
|
580
580
|
super({
|
|
581
581
|
id: 'interactive.scrollToTop',
|
|
582
|
-
title: ( localize(
|
|
582
|
+
title: ( localize(7894, 'Scroll to Top')),
|
|
583
583
|
keybinding: {
|
|
584
584
|
when: ( ContextKeyExpr.equals('activeEditor', 'workbench.editor.interactive')),
|
|
585
585
|
primary: KeyMod.CtrlCmd | KeyCode.Home,
|
|
@@ -604,7 +604,7 @@ registerAction2(class extends Action2 {
|
|
|
604
604
|
constructor() {
|
|
605
605
|
super({
|
|
606
606
|
id: 'interactive.scrollToBottom',
|
|
607
|
-
title: ( localize(
|
|
607
|
+
title: ( localize(7895, 'Scroll to Bottom')),
|
|
608
608
|
keybinding: {
|
|
609
609
|
when: ( ContextKeyExpr.equals('activeEditor', 'workbench.editor.interactive')),
|
|
610
610
|
primary: KeyMod.CtrlCmd | KeyCode.End,
|
|
@@ -630,7 +630,7 @@ registerAction2(class extends Action2 {
|
|
|
630
630
|
constructor() {
|
|
631
631
|
super({
|
|
632
632
|
id: 'interactive.input.focus',
|
|
633
|
-
title: ( localize2(
|
|
633
|
+
title: ( localize2(7896, 'Focus Input Editor')),
|
|
634
634
|
category: interactiveWindowCategory,
|
|
635
635
|
menu: {
|
|
636
636
|
id: MenuId.CommandPalette,
|
|
@@ -663,7 +663,7 @@ registerAction2(class extends Action2 {
|
|
|
663
663
|
constructor() {
|
|
664
664
|
super({
|
|
665
665
|
id: 'interactive.history.focus',
|
|
666
|
-
title: ( localize2(
|
|
666
|
+
title: ( localize2(7897, 'Focus History')),
|
|
667
667
|
category: interactiveWindowCategory,
|
|
668
668
|
menu: {
|
|
669
669
|
id: MenuId.CommandPalette,
|
|
@@ -696,7 +696,7 @@ registerColor('interactive.activeCodeBorder', {
|
|
|
696
696
|
hcDark: contrastBorder,
|
|
697
697
|
hcLight: contrastBorder
|
|
698
698
|
}, ( localize(
|
|
699
|
-
|
|
699
|
+
7898,
|
|
700
700
|
'The border color for the current interactive code cell when the editor has focus.'
|
|
701
701
|
)));
|
|
702
702
|
registerColor('interactive.inactiveCodeBorder', {
|
|
@@ -705,7 +705,7 @@ registerColor('interactive.inactiveCodeBorder', {
|
|
|
705
705
|
hcDark: PANEL_BORDER,
|
|
706
706
|
hcLight: PANEL_BORDER
|
|
707
707
|
}, ( localize(
|
|
708
|
-
|
|
708
|
+
7899,
|
|
709
709
|
'The border color for the current interactive code cell when the editor does not have focus.'
|
|
710
710
|
)));
|
|
711
711
|
( Registry.as(Extensions.Configuration)).registerConfiguration({
|
|
@@ -717,7 +717,7 @@ registerColor('interactive.inactiveCodeBorder', {
|
|
|
717
717
|
type: 'boolean',
|
|
718
718
|
default: true,
|
|
719
719
|
markdownDescription: ( localize(
|
|
720
|
-
|
|
720
|
+
7900,
|
|
721
721
|
"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."
|
|
722
722
|
))
|
|
723
723
|
},
|
|
@@ -725,7 +725,7 @@ registerColor('interactive.inactiveCodeBorder', {
|
|
|
725
725
|
type: 'boolean',
|
|
726
726
|
default: false,
|
|
727
727
|
markdownDescription: ( localize(
|
|
728
|
-
|
|
728
|
+
7901,
|
|
729
729
|
"Prompt to save the interactive window when it is closed. Only new interactive windows will be affected by this setting change."
|
|
730
730
|
))
|
|
731
731
|
},
|
|
@@ -733,7 +733,7 @@ registerColor('interactive.inactiveCodeBorder', {
|
|
|
733
733
|
type: 'boolean',
|
|
734
734
|
default: false,
|
|
735
735
|
markdownDescription: ( localize(
|
|
736
|
-
|
|
736
|
+
7902,
|
|
737
737
|
"Execute the Interactive Window (REPL) input box with shift+enter, so that enter can be used to create a newline."
|
|
738
738
|
)),
|
|
739
739
|
tags: ['replExecute']
|
|
@@ -742,7 +742,7 @@ registerColor('interactive.inactiveCodeBorder', {
|
|
|
742
742
|
type: 'boolean',
|
|
743
743
|
default: true,
|
|
744
744
|
markdownDescription: ( localize(
|
|
745
|
-
|
|
745
|
+
7903,
|
|
746
746
|
"Display a hint in the Interactive Window (REPL) input box to indicate how to execute code."
|
|
747
747
|
)),
|
|
748
748
|
tags: ['replExecute']
|
|
@@ -81,7 +81,7 @@ let ReplInputHintContentWidget = class ReplInputHintContentWidget extends Dispos
|
|
|
81
81
|
const keybinding = this.getKeybinding();
|
|
82
82
|
const keybindingHintLabel = keybinding?.getLabel();
|
|
83
83
|
if (keybinding && keybindingHintLabel) {
|
|
84
|
-
const actionPart = ( localize(
|
|
84
|
+
const actionPart = ( localize(7904, 'Press {0} to execute. ', keybindingHintLabel));
|
|
85
85
|
const [before, after] = ( actionPart.split(keybindingHintLabel).map((fragment) => {
|
|
86
86
|
const hintPart = $('span', undefined, fragment);
|
|
87
87
|
hintPart.style.fontStyle = 'italic';
|
|
@@ -99,10 +99,10 @@ let ReplInputHintContentWidget = class ReplInputHintContentWidget extends Dispos
|
|
|
99
99
|
this.domNode.append(hintElement);
|
|
100
100
|
const helpKeybinding = this.keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibilityHelp)?.getLabel();
|
|
101
101
|
const helpInfo = helpKeybinding
|
|
102
|
-
? ( localize(
|
|
103
|
-
: ( localize(
|
|
102
|
+
? ( localize(7905, "Use {0} for accessibility help. ", helpKeybinding))
|
|
103
|
+
: ( localize(7906, "Run the Open Accessibility Help command for more information. "));
|
|
104
104
|
this.ariaLabel = actionPart.concat(helpInfo, ( localize(
|
|
105
|
-
|
|
105
|
+
7907,
|
|
106
106
|
' Toggle {0} in settings to disable this hint.',
|
|
107
107
|
AccessibilityVerbositySettingId.ReplEditor
|
|
108
108
|
)));
|
|
@@ -4,7 +4,6 @@ import * as interactive from './media/interactive.css';
|
|
|
4
4
|
import '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
5
5
|
import '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
6
6
|
import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
|
|
7
|
-
import '@codingame/monaco-vscode-api/vscode/vs/base/browser/browser';
|
|
8
7
|
import '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
9
8
|
import { CodeEditorWidget } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/widget/codeEditor/codeEditorWidget';
|
|
10
9
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
@@ -21,7 +21,7 @@ import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
|
21
21
|
import { registerIcon } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/iconRegistry';
|
|
22
22
|
|
|
23
23
|
var ReplEditorInput_1;
|
|
24
|
-
const replTabIcon = registerIcon('repl-editor-label-icon', Codicon.debugLineByLine, ( localize(
|
|
24
|
+
const replTabIcon = registerIcon('repl-editor-label-icon', Codicon.debugLineByLine, ( localize(9888, 'Icon of the REPL editor label.')));
|
|
25
25
|
let ReplEditorInput = class ReplEditorInput extends NotebookEditorInput {
|
|
26
26
|
static { ReplEditorInput_1 = this; }
|
|
27
27
|
static { this.ID = 'workbench.editorinputs.replEditorInput'; }
|