@codingame/monaco-vscode-interactive-service-override 26.2.1 → 27.0.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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-interactive-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "27.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - interactive service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "
|
|
19
|
-
"@codingame/monaco-vscode-katex-common": "
|
|
18
|
+
"@codingame/monaco-vscode-api": "27.0.0",
|
|
19
|
+
"@codingame/monaco-vscode-katex-common": "27.0.0"
|
|
20
20
|
},
|
|
21
21
|
"main": "index.js",
|
|
22
22
|
"module": "index.js",
|
|
@@ -68,7 +68,7 @@ import { isReplEditorControl } from '@codingame/monaco-vscode-katex-common/vscod
|
|
|
68
68
|
import { InlineChatController } from '@codingame/monaco-vscode-katex-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(9539, "Interactive Window"));
|
|
72
72
|
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(
|
|
73
73
|
EditorPaneDescriptor.create(InteractiveEditor, INTERACTIVE_WINDOW_EDITOR_ID, "Interactive Window"),
|
|
74
74
|
[( new SyncDescriptor(InteractiveEditorInput))]
|
|
@@ -315,11 +315,11 @@ registerAction2(class extends Action2 {
|
|
|
315
315
|
constructor() {
|
|
316
316
|
super({
|
|
317
317
|
id: "_interactive.open",
|
|
318
|
-
title: ( localize2(
|
|
318
|
+
title: ( localize2(9540, "Open Interactive Window")),
|
|
319
319
|
f1: false,
|
|
320
320
|
category: interactiveWindowCategory,
|
|
321
321
|
metadata: {
|
|
322
|
-
description: ( localize(
|
|
322
|
+
description: ( localize(9540, "Open Interactive Window")),
|
|
323
323
|
args: [{
|
|
324
324
|
name: "showOptions",
|
|
325
325
|
description: "Show Options",
|
|
@@ -444,7 +444,7 @@ registerAction2(class extends Action2 {
|
|
|
444
444
|
constructor() {
|
|
445
445
|
super({
|
|
446
446
|
id: "interactive.execute",
|
|
447
|
-
title: ( localize2(
|
|
447
|
+
title: ( localize2(9541, "Execute Code")),
|
|
448
448
|
category: interactiveWindowCategory,
|
|
449
449
|
keybinding: [{
|
|
450
450
|
when: ( ContextKeyExpr.and(IS_COMPOSITE_NOTEBOOK, ( ContextKeyExpr.equals("activeEditor", "workbench.editor.interactive")))),
|
|
@@ -551,7 +551,7 @@ registerAction2(class extends Action2 {
|
|
|
551
551
|
constructor() {
|
|
552
552
|
super({
|
|
553
553
|
id: "interactive.input.clear",
|
|
554
|
-
title: ( localize2(
|
|
554
|
+
title: ( localize2(9542, "Clear the interactive window input editor contents")),
|
|
555
555
|
category: interactiveWindowCategory,
|
|
556
556
|
f1: false
|
|
557
557
|
});
|
|
@@ -573,7 +573,7 @@ registerAction2(class extends Action2 {
|
|
|
573
573
|
constructor() {
|
|
574
574
|
super({
|
|
575
575
|
id: "interactive.history.previous",
|
|
576
|
-
title: ( localize2(
|
|
576
|
+
title: ( localize2(9543, "Previous value in history")),
|
|
577
577
|
category: interactiveWindowCategory,
|
|
578
578
|
f1: false,
|
|
579
579
|
keybinding: {
|
|
@@ -604,7 +604,7 @@ registerAction2(class extends Action2 {
|
|
|
604
604
|
constructor() {
|
|
605
605
|
super({
|
|
606
606
|
id: "interactive.history.next",
|
|
607
|
-
title: ( localize2(
|
|
607
|
+
title: ( localize2(9544, "Next value in history")),
|
|
608
608
|
category: interactiveWindowCategory,
|
|
609
609
|
f1: false,
|
|
610
610
|
keybinding: {
|
|
@@ -635,7 +635,7 @@ registerAction2(class extends Action2 {
|
|
|
635
635
|
constructor() {
|
|
636
636
|
super({
|
|
637
637
|
id: "interactive.scrollToTop",
|
|
638
|
-
title: ( localize(
|
|
638
|
+
title: ( localize(9545, "Scroll to Top")),
|
|
639
639
|
keybinding: {
|
|
640
640
|
when: ( ContextKeyExpr.equals("activeEditor", "workbench.editor.interactive")),
|
|
641
641
|
primary: KeyMod.CtrlCmd | KeyCode.Home,
|
|
@@ -665,7 +665,7 @@ registerAction2(class extends Action2 {
|
|
|
665
665
|
constructor() {
|
|
666
666
|
super({
|
|
667
667
|
id: "interactive.scrollToBottom",
|
|
668
|
-
title: ( localize(
|
|
668
|
+
title: ( localize(9546, "Scroll to Bottom")),
|
|
669
669
|
keybinding: {
|
|
670
670
|
when: ( ContextKeyExpr.equals("activeEditor", "workbench.editor.interactive")),
|
|
671
671
|
primary: KeyMod.CtrlCmd | KeyCode.End,
|
|
@@ -696,7 +696,7 @@ registerAction2(class extends Action2 {
|
|
|
696
696
|
constructor() {
|
|
697
697
|
super({
|
|
698
698
|
id: "interactive.input.focus",
|
|
699
|
-
title: ( localize2(
|
|
699
|
+
title: ( localize2(9547, "Focus Input Editor")),
|
|
700
700
|
category: interactiveWindowCategory,
|
|
701
701
|
menu: {
|
|
702
702
|
id: MenuId.CommandPalette,
|
|
@@ -730,7 +730,7 @@ registerAction2(class extends Action2 {
|
|
|
730
730
|
constructor() {
|
|
731
731
|
super({
|
|
732
732
|
id: "interactive.history.focus",
|
|
733
|
-
title: ( localize2(
|
|
733
|
+
title: ( localize2(9548, "Focus History")),
|
|
734
734
|
category: interactiveWindowCategory,
|
|
735
735
|
menu: {
|
|
736
736
|
id: MenuId.CommandPalette,
|
|
@@ -762,7 +762,7 @@ registerColor("interactive.activeCodeBorder", {
|
|
|
762
762
|
hcDark: contrastBorder,
|
|
763
763
|
hcLight: contrastBorder
|
|
764
764
|
}, ( localize(
|
|
765
|
-
|
|
765
|
+
9549,
|
|
766
766
|
"The border color for the current interactive code cell when the editor has focus."
|
|
767
767
|
)));
|
|
768
768
|
registerColor("interactive.inactiveCodeBorder", {
|
|
@@ -779,7 +779,7 @@ registerColor("interactive.inactiveCodeBorder", {
|
|
|
779
779
|
hcDark: PANEL_BORDER,
|
|
780
780
|
hcLight: PANEL_BORDER
|
|
781
781
|
}, ( localize(
|
|
782
|
-
|
|
782
|
+
9550,
|
|
783
783
|
"The border color for the current interactive code cell when the editor does not have focus."
|
|
784
784
|
)));
|
|
785
785
|
( Registry.as(Extensions.Configuration)).registerConfiguration({
|
|
@@ -791,7 +791,7 @@ registerColor("interactive.inactiveCodeBorder", {
|
|
|
791
791
|
type: "boolean",
|
|
792
792
|
default: true,
|
|
793
793
|
markdownDescription: ( localize(
|
|
794
|
-
|
|
794
|
+
9551,
|
|
795
795
|
"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."
|
|
796
796
|
))
|
|
797
797
|
},
|
|
@@ -799,7 +799,7 @@ registerColor("interactive.inactiveCodeBorder", {
|
|
|
799
799
|
type: "boolean",
|
|
800
800
|
default: false,
|
|
801
801
|
markdownDescription: ( localize(
|
|
802
|
-
|
|
802
|
+
9552,
|
|
803
803
|
"Prompt to save the interactive window when it is closed. Only new interactive windows will be affected by this setting change."
|
|
804
804
|
))
|
|
805
805
|
},
|
|
@@ -807,7 +807,7 @@ registerColor("interactive.inactiveCodeBorder", {
|
|
|
807
807
|
type: "boolean",
|
|
808
808
|
default: false,
|
|
809
809
|
markdownDescription: ( localize(
|
|
810
|
-
|
|
810
|
+
9553,
|
|
811
811
|
"Execute the Interactive Window (REPL) input box with shift+enter, so that enter can be used to create a newline."
|
|
812
812
|
)),
|
|
813
813
|
tags: ["replExecute"]
|
|
@@ -816,7 +816,7 @@ registerColor("interactive.inactiveCodeBorder", {
|
|
|
816
816
|
type: "boolean",
|
|
817
817
|
default: true,
|
|
818
818
|
markdownDescription: ( localize(
|
|
819
|
-
|
|
819
|
+
9554,
|
|
820
820
|
"Display a hint in the Interactive Window (REPL) input box to indicate how to execute code."
|
|
821
821
|
)),
|
|
822
822
|
tags: ["replExecute"]
|
|
@@ -468,19 +468,19 @@ let InteractiveEditor = class InteractiveEditor extends EditorPane {
|
|
|
468
468
|
this._updateInputHint();
|
|
469
469
|
}
|
|
470
470
|
}));
|
|
471
|
-
this._codeEditorWidget.onDidChangeModelDecorations(() => {
|
|
471
|
+
this._widgetDisposableStore.add(this._codeEditorWidget.onDidChangeModelDecorations(() => {
|
|
472
472
|
if (this.isVisible()) {
|
|
473
473
|
this._updateInputHint();
|
|
474
474
|
}
|
|
475
|
-
});
|
|
475
|
+
}));
|
|
476
476
|
this._widgetDisposableStore.add(this._codeEditorWidget.onDidChangeModel(() => {
|
|
477
477
|
this._updateInputHint();
|
|
478
478
|
}));
|
|
479
|
-
this._configurationService.onDidChangeConfiguration(e => {
|
|
479
|
+
this._widgetDisposableStore.add(this._configurationService.onDidChangeConfiguration(e => {
|
|
480
480
|
if (e.affectsConfiguration(ReplEditorSettings.showExecutionHint)) {
|
|
481
481
|
this._updateInputHint();
|
|
482
482
|
}
|
|
483
|
-
});
|
|
483
|
+
}));
|
|
484
484
|
const cursorAtBoundaryContext = INTERACTIVE_INPUT_CURSOR_BOUNDARY.bindTo(this._contextKeyService);
|
|
485
485
|
if (input.resource && ( input.historyService.has(input.resource))) {
|
|
486
486
|
cursorAtBoundaryContext.set("top");
|