@codingame/monaco-vscode-interactive-service-override 18.4.0 → 19.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 +11 -13
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactive.contribution.js +28 -24
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveCommon.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveEditor.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveEditor.js +2 -2
- package/vscode/src/vs/workbench/contrib/interactive/browser/replInputHintContentWidget.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/interactive/browser/replInputHintContentWidget.js +12 -8
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditor.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditor.js +1 -0
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorInput.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorInput.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-interactive-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "19.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - interactive service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,18 +15,16 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-
|
|
19
|
-
"@codingame/monaco-vscode-
|
|
20
|
-
"@codingame/monaco-vscode-
|
|
21
|
-
"@codingame/monaco-vscode-
|
|
22
|
-
"@codingame/monaco-vscode-
|
|
23
|
-
"@codingame/monaco-vscode-api": "
|
|
24
|
-
"@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common": "
|
|
25
|
-
"@codingame/monaco-vscode-
|
|
26
|
-
"@codingame/monaco-vscode-
|
|
27
|
-
"@codingame/monaco-vscode-
|
|
28
|
-
"@codingame/monaco-vscode-f48982c4-9e82-55e2-b800-20e6d1e6096f-common": "18.4.0",
|
|
29
|
-
"@codingame/monaco-vscode-fc28fb90-97de-5e74-89a9-4cfe44128227-common": "18.4.0"
|
|
18
|
+
"@codingame/monaco-vscode-262ed59d-4f76-57cd-9e9f-1877f26ae049-common": "19.0.0",
|
|
19
|
+
"@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common": "19.0.0",
|
|
20
|
+
"@codingame/monaco-vscode-2726569c-a06b-5f25-b851-14311bef12fa-common": "19.0.0",
|
|
21
|
+
"@codingame/monaco-vscode-3927dd53-f845-534c-9baa-1528ff3956c8-common": "19.0.0",
|
|
22
|
+
"@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common": "19.0.0",
|
|
23
|
+
"@codingame/monaco-vscode-api": "19.0.0",
|
|
24
|
+
"@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common": "19.0.0",
|
|
25
|
+
"@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common": "19.0.0",
|
|
26
|
+
"@codingame/monaco-vscode-eba0b9b3-174c-5dae-9867-a37810ca1808-common": "19.0.0",
|
|
27
|
+
"@codingame/monaco-vscode-fc28fb90-97de-5e74-89a9-4cfe44128227-common": "19.0.0"
|
|
30
28
|
},
|
|
31
29
|
"main": "index.js",
|
|
32
30
|
"module": "index.js",
|
|
@@ -42,7 +42,7 @@ import { EditorPaneDescriptor } from '@codingame/monaco-vscode-60014c9d-b815-501
|
|
|
42
42
|
import { registerWorkbenchContribution2, WorkbenchPhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
|
|
43
43
|
import { EditorExtensions, EditorsOrder } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor';
|
|
44
44
|
import { PANEL_BORDER } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/theme';
|
|
45
|
-
import { ResourceNotebookCellEdit } from '@codingame/monaco-vscode-
|
|
45
|
+
import { ResourceNotebookCellEdit } from '@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/bulkEdit/browser/bulkCellEdits';
|
|
46
46
|
import { INTERACTIVE_INPUT_CURSOR_BOUNDARY, ReplEditorSettings } from './interactiveCommon.js';
|
|
47
47
|
import '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
48
48
|
import { InteractiveEditor } from './interactiveEditor.js';
|
|
@@ -50,14 +50,14 @@ import { InteractiveEditorInput } from '@codingame/monaco-vscode-eba0b9b3-174c-5
|
|
|
50
50
|
import '@codingame/monaco-vscode-api/vscode/vs/base/common/collections';
|
|
51
51
|
import '@codingame/monaco-vscode-api/vscode/vs/base/common/map';
|
|
52
52
|
import { IInteractiveHistoryService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/interactive/browser/interactiveHistoryService.service';
|
|
53
|
-
import { NOTEBOOK_EDITOR_WIDGET_ACTION_WEIGHT } from '@codingame/monaco-vscode-
|
|
54
|
-
import { executeIcon } from '@codingame/monaco-vscode-
|
|
53
|
+
import { NOTEBOOK_EDITOR_WIDGET_ACTION_WEIGHT } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
|
|
54
|
+
import { executeIcon } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/notebookIcons';
|
|
55
55
|
import { INotebookEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service';
|
|
56
56
|
import { INTERACTIVE_WINDOW_EDITOR_ID, CellUri, NotebookWorkingCopyTypeIdentifier, CellKind, CellEditType, NotebookSetting } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
57
|
-
import { IS_COMPOSITE_NOTEBOOK, NOTEBOOK_EDITOR_FOCUSED, InteractiveWindowOpen } from '@codingame/monaco-vscode-
|
|
57
|
+
import { IS_COMPOSITE_NOTEBOOK, NOTEBOOK_EDITOR_FOCUSED, InteractiveWindowOpen } from '@codingame/monaco-vscode-3927dd53-f845-534c-9baa-1528ff3956c8-common/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
58
58
|
import { INotebookKernelService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookKernelService.service';
|
|
59
59
|
import { INotebookService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookService.service';
|
|
60
|
-
import { columnToEditorGroup } from '@codingame/monaco-vscode-
|
|
60
|
+
import { columnToEditorGroup } from '@codingame/monaco-vscode-2726569c-a06b-5f25-b851-14311bef12fa-common/vscode/vs/workbench/services/editor/common/editorGroupColumn';
|
|
61
61
|
import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
62
62
|
import { RegisteredEditorPriority } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorResolverService';
|
|
63
63
|
import { IEditorResolverService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorResolverService.service';
|
|
@@ -65,10 +65,10 @@ import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench
|
|
|
65
65
|
import { IExtensionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
66
66
|
import { IWorkingCopyEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/workingCopy/common/workingCopyEditorService.service';
|
|
67
67
|
import { isReplEditorControl } from '../../replNotebook/browser/replEditor.js';
|
|
68
|
-
import { InlineChatController } from '@codingame/monaco-vscode-
|
|
68
|
+
import { InlineChatController } from '@codingame/monaco-vscode-3927dd53-f845-534c-9baa-1528ff3956c8-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(7606, "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
|
]);
|
|
@@ -95,7 +95,11 @@ let InteractiveDocumentContribution = class InteractiveDocumentContribution exte
|
|
|
95
95
|
singlePerResource: true
|
|
96
96
|
}, {
|
|
97
97
|
createEditorInput: ({ resource }) => {
|
|
98
|
-
const editorInput = editorService.
|
|
98
|
+
const editorInput = editorService.findEditors({
|
|
99
|
+
resource,
|
|
100
|
+
editorId: 'interactive',
|
|
101
|
+
typeId: InteractiveEditorInput.ID
|
|
102
|
+
}, { order: EditorsOrder.SEQUENTIAL }).at(0);
|
|
99
103
|
return editorInput;
|
|
100
104
|
}
|
|
101
105
|
});
|
|
@@ -273,11 +277,11 @@ registerAction2(class extends Action2 {
|
|
|
273
277
|
constructor() {
|
|
274
278
|
super({
|
|
275
279
|
id: '_interactive.open',
|
|
276
|
-
title: ( localize2(
|
|
280
|
+
title: ( localize2(7607, 'Open Interactive Window')),
|
|
277
281
|
f1: false,
|
|
278
282
|
category: interactiveWindowCategory,
|
|
279
283
|
metadata: {
|
|
280
|
-
description: ( localize(
|
|
284
|
+
description: ( localize(7607, 'Open Interactive Window')),
|
|
281
285
|
args: [
|
|
282
286
|
{
|
|
283
287
|
name: 'showOptions',
|
|
@@ -381,7 +385,7 @@ registerAction2(class extends Action2 {
|
|
|
381
385
|
constructor() {
|
|
382
386
|
super({
|
|
383
387
|
id: 'interactive.execute',
|
|
384
|
-
title: ( localize2(
|
|
388
|
+
title: ( localize2(7608, 'Execute Code')),
|
|
385
389
|
category: interactiveWindowCategory,
|
|
386
390
|
keybinding: [{
|
|
387
391
|
when: ( ContextKeyExpr.and(IS_COMPOSITE_NOTEBOOK, ( ContextKeyExpr.equals('activeEditor', 'workbench.editor.interactive')))),
|
|
@@ -491,7 +495,7 @@ registerAction2(class extends Action2 {
|
|
|
491
495
|
constructor() {
|
|
492
496
|
super({
|
|
493
497
|
id: 'interactive.input.clear',
|
|
494
|
-
title: ( localize2(
|
|
498
|
+
title: ( localize2(7609, 'Clear the interactive window input editor contents')),
|
|
495
499
|
category: interactiveWindowCategory,
|
|
496
500
|
f1: false
|
|
497
501
|
});
|
|
@@ -513,7 +517,7 @@ registerAction2(class extends Action2 {
|
|
|
513
517
|
constructor() {
|
|
514
518
|
super({
|
|
515
519
|
id: 'interactive.history.previous',
|
|
516
|
-
title: ( localize2(
|
|
520
|
+
title: ( localize2(7610, 'Previous value in history')),
|
|
517
521
|
category: interactiveWindowCategory,
|
|
518
522
|
f1: false,
|
|
519
523
|
keybinding: {
|
|
@@ -544,7 +548,7 @@ registerAction2(class extends Action2 {
|
|
|
544
548
|
constructor() {
|
|
545
549
|
super({
|
|
546
550
|
id: 'interactive.history.next',
|
|
547
|
-
title: ( localize2(
|
|
551
|
+
title: ( localize2(7611, 'Next value in history')),
|
|
548
552
|
category: interactiveWindowCategory,
|
|
549
553
|
f1: false,
|
|
550
554
|
keybinding: {
|
|
@@ -575,7 +579,7 @@ registerAction2(class extends Action2 {
|
|
|
575
579
|
constructor() {
|
|
576
580
|
super({
|
|
577
581
|
id: 'interactive.scrollToTop',
|
|
578
|
-
title: ( localize(
|
|
582
|
+
title: ( localize(7612, 'Scroll to Top')),
|
|
579
583
|
keybinding: {
|
|
580
584
|
when: ( ContextKeyExpr.equals('activeEditor', 'workbench.editor.interactive')),
|
|
581
585
|
primary: KeyMod.CtrlCmd | KeyCode.Home,
|
|
@@ -600,7 +604,7 @@ registerAction2(class extends Action2 {
|
|
|
600
604
|
constructor() {
|
|
601
605
|
super({
|
|
602
606
|
id: 'interactive.scrollToBottom',
|
|
603
|
-
title: ( localize(
|
|
607
|
+
title: ( localize(7613, 'Scroll to Bottom')),
|
|
604
608
|
keybinding: {
|
|
605
609
|
when: ( ContextKeyExpr.equals('activeEditor', 'workbench.editor.interactive')),
|
|
606
610
|
primary: KeyMod.CtrlCmd | KeyCode.End,
|
|
@@ -626,7 +630,7 @@ registerAction2(class extends Action2 {
|
|
|
626
630
|
constructor() {
|
|
627
631
|
super({
|
|
628
632
|
id: 'interactive.input.focus',
|
|
629
|
-
title: ( localize2(
|
|
633
|
+
title: ( localize2(7614, 'Focus Input Editor')),
|
|
630
634
|
category: interactiveWindowCategory,
|
|
631
635
|
menu: {
|
|
632
636
|
id: MenuId.CommandPalette,
|
|
@@ -659,7 +663,7 @@ registerAction2(class extends Action2 {
|
|
|
659
663
|
constructor() {
|
|
660
664
|
super({
|
|
661
665
|
id: 'interactive.history.focus',
|
|
662
|
-
title: ( localize2(
|
|
666
|
+
title: ( localize2(7615, 'Focus History')),
|
|
663
667
|
category: interactiveWindowCategory,
|
|
664
668
|
menu: {
|
|
665
669
|
id: MenuId.CommandPalette,
|
|
@@ -692,7 +696,7 @@ registerColor('interactive.activeCodeBorder', {
|
|
|
692
696
|
hcDark: contrastBorder,
|
|
693
697
|
hcLight: contrastBorder
|
|
694
698
|
}, ( localize(
|
|
695
|
-
|
|
699
|
+
7616,
|
|
696
700
|
'The border color for the current interactive code cell when the editor has focus.'
|
|
697
701
|
)));
|
|
698
702
|
registerColor('interactive.inactiveCodeBorder', {
|
|
@@ -701,7 +705,7 @@ registerColor('interactive.inactiveCodeBorder', {
|
|
|
701
705
|
hcDark: PANEL_BORDER,
|
|
702
706
|
hcLight: PANEL_BORDER
|
|
703
707
|
}, ( localize(
|
|
704
|
-
|
|
708
|
+
7617,
|
|
705
709
|
'The border color for the current interactive code cell when the editor does not have focus.'
|
|
706
710
|
)));
|
|
707
711
|
( Registry.as(Extensions.Configuration)).registerConfiguration({
|
|
@@ -713,7 +717,7 @@ registerColor('interactive.inactiveCodeBorder', {
|
|
|
713
717
|
type: 'boolean',
|
|
714
718
|
default: true,
|
|
715
719
|
markdownDescription: ( localize(
|
|
716
|
-
|
|
720
|
+
7618,
|
|
717
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."
|
|
718
722
|
))
|
|
719
723
|
},
|
|
@@ -721,7 +725,7 @@ registerColor('interactive.inactiveCodeBorder', {
|
|
|
721
725
|
type: 'boolean',
|
|
722
726
|
default: false,
|
|
723
727
|
markdownDescription: ( localize(
|
|
724
|
-
|
|
728
|
+
7619,
|
|
725
729
|
"Prompt to save the interactive window when it is closed. Only new interactive windows will be affected by this setting change."
|
|
726
730
|
))
|
|
727
731
|
},
|
|
@@ -729,7 +733,7 @@ registerColor('interactive.inactiveCodeBorder', {
|
|
|
729
733
|
type: 'boolean',
|
|
730
734
|
default: false,
|
|
731
735
|
markdownDescription: ( localize(
|
|
732
|
-
|
|
736
|
+
7620,
|
|
733
737
|
"Execute the Interactive Window (REPL) input box with shift+enter, so that enter can be used to create a newline."
|
|
734
738
|
)),
|
|
735
739
|
tags: ['replExecute']
|
|
@@ -738,7 +742,7 @@ registerColor('interactive.inactiveCodeBorder', {
|
|
|
738
742
|
type: 'boolean',
|
|
739
743
|
default: true,
|
|
740
744
|
markdownDescription: ( localize(
|
|
741
|
-
|
|
745
|
+
7621,
|
|
742
746
|
"Display a hint in the Interactive Window (REPL) input box to indicate how to execute code."
|
|
743
747
|
)),
|
|
744
748
|
tags: ['replExecute']
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RawContextKey } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey";
|
|
2
|
-
export declare const INTERACTIVE_INPUT_CURSOR_BOUNDARY: RawContextKey<"top" | "
|
|
2
|
+
export declare const INTERACTIVE_INPUT_CURSOR_BOUNDARY: RawContextKey<"top" | "none" | "bottom" | "both">;
|
|
3
3
|
export declare const ReplEditorSettings: {
|
|
4
4
|
interactiveWindowAlwaysScrollOnNewCell: string;
|
|
5
5
|
executeWithShiftEnter: string;
|
|
@@ -11,7 +11,7 @@ import { IThemeService } from "@codingame/monaco-vscode-api/vscode/vs/platform/t
|
|
|
11
11
|
import { EditorPane } from "@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common/vscode/vs/workbench/browser/parts/editor/editorPane";
|
|
12
12
|
import { IEditorOpenContext, IEditorPaneScrollPosition, IEditorPaneSelectionChangeEvent, IEditorPaneWithScrolling } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor";
|
|
13
13
|
import { InteractiveEditorInput } from "@codingame/monaco-vscode-eba0b9b3-174c-5dae-9867-a37810ca1808-common/vscode/vs/workbench/contrib/interactive/browser/interactiveEditorInput";
|
|
14
|
-
import { INotebookEditorOptions, INotebookEditorViewState } from "@codingame/monaco-vscode-
|
|
14
|
+
import { INotebookEditorOptions, INotebookEditorViewState } from "@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser";
|
|
15
15
|
import { INotebookEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service";
|
|
16
16
|
import { IEditorGroup } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService";
|
|
17
17
|
import { IEditorGroupsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service";
|
|
@@ -15,7 +15,7 @@ import { ITelemetryService } from '@codingame/monaco-vscode-api/vscode/vs/platfo
|
|
|
15
15
|
import { IThemeService } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service';
|
|
16
16
|
import { EditorPane } from '@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common/vscode/vs/workbench/browser/parts/editor/editorPane';
|
|
17
17
|
import { EditorPaneSelectionChangeReason } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor';
|
|
18
|
-
import { getSimpleEditorOptions } from '@codingame/monaco-vscode-
|
|
18
|
+
import { getSimpleEditorOptions } from '@codingame/monaco-vscode-262ed59d-4f76-57cd-9e9f-1877f26ae049-common/vscode/vs/workbench/contrib/codeEditor/browser/simpleEditorOptions';
|
|
19
19
|
import { InteractiveEditorInput } from '@codingame/monaco-vscode-eba0b9b3-174c-5dae-9867-a37810ca1808-common/vscode/vs/workbench/contrib/interactive/browser/interactiveEditorInput';
|
|
20
20
|
import { NotebookEditorExtensionsRegistry } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditorExtensions';
|
|
21
21
|
import { INotebookEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service';
|
|
@@ -47,7 +47,7 @@ import { ITextResourceConfigurationService } from '@codingame/monaco-vscode-api/
|
|
|
47
47
|
import { TextEditorSelectionSource } from '@codingame/monaco-vscode-api/vscode/vs/platform/editor/common/editor';
|
|
48
48
|
import { NotebookExecutionType } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService';
|
|
49
49
|
import { INotebookExecutionStateService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service';
|
|
50
|
-
import { NOTEBOOK_KERNEL } from '@codingame/monaco-vscode-
|
|
50
|
+
import { NOTEBOOK_KERNEL } from '@codingame/monaco-vscode-3927dd53-f845-534c-9baa-1528ff3956c8-common/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
51
51
|
import { IExtensionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
52
52
|
import { isEqual } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
|
|
53
53
|
import { NotebookFindContrib } from '@codingame/monaco-vscode-fc28fb90-97de-5e74-89a9-4cfe44128227-common/vscode/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget';
|
|
@@ -9,6 +9,7 @@ export declare class ReplInputHintContentWidget extends Disposable implements IC
|
|
|
9
9
|
private static readonly ID;
|
|
10
10
|
private domNode;
|
|
11
11
|
private ariaLabel;
|
|
12
|
+
private label;
|
|
12
13
|
constructor(editor: ICodeEditor, configurationService: IConfigurationService, keybindingService: IKeybindingService);
|
|
13
14
|
getId(): string;
|
|
14
15
|
getPosition(): IContentWidgetPosition | null;
|
|
@@ -81,25 +81,28 @@ 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(7622, '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';
|
|
88
88
|
return hintPart;
|
|
89
89
|
}));
|
|
90
90
|
hintElement.appendChild(before);
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
label
|
|
91
|
+
if (this.label) {
|
|
92
|
+
this.label.dispose();
|
|
93
|
+
}
|
|
94
|
+
this.label = this._register(( new KeybindingLabel(hintElement, OS)));
|
|
95
|
+
this.label.set(keybinding);
|
|
96
|
+
this.label.element.style.width = 'min-content';
|
|
97
|
+
this.label.element.style.display = 'inline';
|
|
95
98
|
hintElement.appendChild(after);
|
|
96
99
|
this.domNode.append(hintElement);
|
|
97
100
|
const helpKeybinding = this.keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibilityHelp)?.getLabel();
|
|
98
101
|
const helpInfo = helpKeybinding
|
|
99
|
-
? ( localize(
|
|
100
|
-
: ( localize(
|
|
102
|
+
? ( localize(7623, "Use {0} for accessibility help. ", helpKeybinding))
|
|
103
|
+
: ( localize(7624, "Run the Open Accessibility Help command for more information. "));
|
|
101
104
|
this.ariaLabel = actionPart.concat(helpInfo, ( localize(
|
|
102
|
-
|
|
105
|
+
7625,
|
|
103
106
|
' Toggle {0} in settings to disable this hint.',
|
|
104
107
|
AccessibilityVerbositySettingId.ReplEditor
|
|
105
108
|
)));
|
|
@@ -136,6 +139,7 @@ let ReplInputHintContentWidget = class ReplInputHintContentWidget extends Dispos
|
|
|
136
139
|
dispose() {
|
|
137
140
|
super.dispose();
|
|
138
141
|
this.editor.removeContentWidget(this);
|
|
142
|
+
this.label?.dispose();
|
|
139
143
|
}
|
|
140
144
|
};
|
|
141
145
|
ReplInputHintContentWidget = ReplInputHintContentWidget_1 = ( __decorate([
|
|
@@ -9,7 +9,7 @@ import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platfo
|
|
|
9
9
|
import { IThemeService } from "@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service";
|
|
10
10
|
import { EditorPane } from "@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common/vscode/vs/workbench/browser/parts/editor/editorPane";
|
|
11
11
|
import { IEditorOpenContext, IEditorPaneScrollPosition, IEditorPaneSelectionChangeEvent, IEditorPaneWithScrolling } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor";
|
|
12
|
-
import { INotebookEditorOptions, INotebookEditorViewState } from "@codingame/monaco-vscode-
|
|
12
|
+
import { INotebookEditorOptions, INotebookEditorViewState } from "@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser";
|
|
13
13
|
import { INotebookEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service";
|
|
14
14
|
import { NotebookEditorWidget } from "@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditorWidget";
|
|
15
15
|
import { IEditorGroup } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService";
|
|
@@ -3,6 +3,7 @@ import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
|
3
3
|
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
|
+
import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
|
|
6
7
|
import '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
7
8
|
import { CodeEditorWidget } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/widget/codeEditor/codeEditorWidget';
|
|
8
9
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
@@ -7,7 +7,7 @@ import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/fi
|
|
|
7
7
|
import { ILabelService } from "@codingame/monaco-vscode-api/vscode/vs/platform/label/common/label.service";
|
|
8
8
|
import { IInteractiveHistoryService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/interactive/browser/interactiveHistoryService.service";
|
|
9
9
|
import { NotebookTextModel } from "@codingame/monaco-vscode-notebook-service-override/vscode/vs/workbench/contrib/notebook/common/model/notebookTextModel";
|
|
10
|
-
import { ICompositeNotebookEditorInput, NotebookEditorInput } from "@codingame/monaco-vscode-
|
|
10
|
+
import { ICompositeNotebookEditorInput, NotebookEditorInput } from "@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/common/notebookEditorInput";
|
|
11
11
|
import { INotebookEditorModelResolverService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookEditorModelResolverService.service";
|
|
12
12
|
import { INotebookService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookService.service";
|
|
13
13
|
import { ICustomEditorLabelService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/customEditorLabelService.service";
|
|
@@ -9,7 +9,7 @@ import { ILabelService } from '@codingame/monaco-vscode-api/vscode/vs/platform/l
|
|
|
9
9
|
import { EditorInputCapabilities } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor';
|
|
10
10
|
import { IInteractiveHistoryService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/interactive/browser/interactiveHistoryService.service';
|
|
11
11
|
import { NotebookSetting, CellKind, CellEditType } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
12
|
-
import { NotebookEditorInput } from '@codingame/monaco-vscode-
|
|
12
|
+
import { NotebookEditorInput } from '@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/common/notebookEditorInput';
|
|
13
13
|
import { INotebookEditorModelResolverService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookEditorModelResolverService.service';
|
|
14
14
|
import { INotebookService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookService.service';
|
|
15
15
|
import { ICustomEditorLabelService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/customEditorLabelService.service';
|
|
@@ -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(9560, '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'; }
|