@codingame/monaco-vscode-interactive-service-override 22.1.8 → 23.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 -10
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactive.contribution.js +21 -21
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveEditor.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveEditor.js +6 -6
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveCommon.d.ts +0 -7
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveCommon.js +0 -11
- package/vscode/src/vs/workbench/contrib/interactive/browser/replInputHintContentWidget.d.ts +0 -20
- package/vscode/src/vs/workbench/contrib/interactive/browser/replInputHintContentWidget.js +0 -150
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/interactiveEditor.css +0 -21
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/media/interactive.css +0 -36
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditor.d.ts +0 -110
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditor.js +0 -61
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorInput.d.ts +0 -38
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorInput.js +0 -135
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-interactive-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "23.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - interactive service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,15 +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-
|
|
24
|
-
"@codingame/monaco-vscode-
|
|
25
|
-
"@codingame/monaco-vscode-eba0b9b3-174c-5dae-9867-a37810ca1808-common": "
|
|
26
|
-
"@codingame/monaco-vscode-eda30bac-0984-5b42-9362-c68996b85232-common": "
|
|
18
|
+
"@codingame/monaco-vscode-262ed59d-4f76-57cd-9e9f-1877f26ae049-common": "23.0.0",
|
|
19
|
+
"@codingame/monaco-vscode-3b5a5cd1-d4ff-500a-b609-57e0cd4afa0a-common": "23.0.0",
|
|
20
|
+
"@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common": "23.0.0",
|
|
21
|
+
"@codingame/monaco-vscode-9d2c06d1-1f89-51a5-9964-aa01fe50c198-common": "23.0.0",
|
|
22
|
+
"@codingame/monaco-vscode-a793b3ee-7ba9-5176-a019-30ec806fdd95-common": "23.0.0",
|
|
23
|
+
"@codingame/monaco-vscode-api": "23.0.0",
|
|
24
|
+
"@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common": "23.0.0",
|
|
25
|
+
"@codingame/monaco-vscode-eba0b9b3-174c-5dae-9867-a37810ca1808-common": "23.0.0",
|
|
26
|
+
"@codingame/monaco-vscode-eda30bac-0984-5b42-9362-c68996b85232-common": "23.0.0",
|
|
27
|
+
"@codingame/monaco-vscode-fc28fb90-97de-5e74-89a9-4cfe44128227-common": "23.0.0"
|
|
27
28
|
},
|
|
28
29
|
"main": "index.js",
|
|
29
30
|
"module": "index.js",
|
|
@@ -42,8 +42,8 @@ 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-
|
|
46
|
-
import { INTERACTIVE_INPUT_CURSOR_BOUNDARY, ReplEditorSettings } from '
|
|
45
|
+
import { ResourceNotebookCellEdit } from '@codingame/monaco-vscode-9d2c06d1-1f89-51a5-9964-aa01fe50c198-common/vscode/vs/workbench/contrib/bulkEdit/browser/bulkCellEdits';
|
|
46
|
+
import { INTERACTIVE_INPUT_CURSOR_BOUNDARY, ReplEditorSettings } from '@codingame/monaco-vscode-fc28fb90-97de-5e74-89a9-4cfe44128227-common/vscode/vs/workbench/contrib/interactive/browser/interactiveCommon';
|
|
47
47
|
import '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
48
48
|
import { InteractiveEditor } from './interactiveEditor.js';
|
|
49
49
|
import { InteractiveEditorInput } from '@codingame/monaco-vscode-eba0b9b3-174c-5dae-9867-a37810ca1808-common/vscode/vs/workbench/contrib/interactive/browser/interactiveEditorInput';
|
|
@@ -57,18 +57,18 @@ import { INTERACTIVE_WINDOW_EDITOR_ID, CellUri, NotebookWorkingCopyTypeIdentifie
|
|
|
57
57
|
import { IS_COMPOSITE_NOTEBOOK, NOTEBOOK_EDITOR_FOCUSED, InteractiveWindowOpen } from '@codingame/monaco-vscode-eda30bac-0984-5b42-9362-c68996b85232-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-3b5a5cd1-d4ff-500a-b609-57e0cd4afa0a-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';
|
|
64
64
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
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
|
-
import { isReplEditorControl } from '
|
|
67
|
+
import { isReplEditorControl } from '@codingame/monaco-vscode-fc28fb90-97de-5e74-89a9-4cfe44128227-common/vscode/vs/workbench/contrib/replNotebook/browser/replEditor';
|
|
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(8215, "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(8216, 'Open Interactive Window')),
|
|
281
281
|
f1: false,
|
|
282
282
|
category: interactiveWindowCategory,
|
|
283
283
|
metadata: {
|
|
284
|
-
description: ( localize(
|
|
284
|
+
description: ( localize(8216, '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(8217, '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(8218, '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(8219, '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(8220, '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(8221, '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(8222, '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(8223, '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(8224, '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
|
+
8225,
|
|
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
|
+
8226,
|
|
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
|
+
8227,
|
|
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
|
+
8228,
|
|
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
|
+
8229,
|
|
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
|
+
8230,
|
|
746
746
|
"Display a hint in the Interactive Window (REPL) input box to indicate how to execute code."
|
|
747
747
|
)),
|
|
748
748
|
tags: ['replExecute']
|
|
@@ -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-9d2c06d1-1f89-51a5-9964-aa01fe50c198-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";
|
|
@@ -25,7 +25,7 @@ import { ITextResourceConfigurationService } from "@codingame/monaco-vscode-api/
|
|
|
25
25
|
import { ITextEditorOptions } from "@codingame/monaco-vscode-api/vscode/vs/platform/editor/common/editor";
|
|
26
26
|
import { INotebookExecutionStateService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service";
|
|
27
27
|
import { IExtensionService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service";
|
|
28
|
-
import { ReplEditorControl } from "
|
|
28
|
+
import { ReplEditorControl } from "@codingame/monaco-vscode-fc28fb90-97de-5e74-89a9-4cfe44128227-common/vscode/vs/workbench/contrib/replNotebook/browser/replEditor";
|
|
29
29
|
export interface InteractiveEditorViewState {
|
|
30
30
|
readonly notebook?: INotebookEditorViewState;
|
|
31
31
|
readonly input?: ICodeEditorViewState | null;
|
|
@@ -15,20 +15,20 @@ 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';
|
|
22
22
|
import { GroupsOrder } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService';
|
|
23
23
|
import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
24
|
-
import { ExecutionStateCellStatusBarContrib, TimerCellStatusBarContrib } from '@codingame/monaco-vscode-
|
|
24
|
+
import { ExecutionStateCellStatusBarContrib, TimerCellStatusBarContrib } from '@codingame/monaco-vscode-fc28fb90-97de-5e74-89a9-4cfe44128227-common/vscode/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController';
|
|
25
25
|
import { INotebookKernelService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookKernelService.service';
|
|
26
26
|
import { PLAINTEXT_LANGUAGE_ID } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/modesRegistry';
|
|
27
27
|
import { ILanguageService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language.service';
|
|
28
28
|
import { MenuId } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
29
29
|
import { IMenuService } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions.service';
|
|
30
30
|
import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
31
|
-
import { ReplEditorSettings, INTERACTIVE_INPUT_CURSOR_BOUNDARY } from '
|
|
31
|
+
import { ReplEditorSettings, INTERACTIVE_INPUT_CURSOR_BOUNDARY } from '@codingame/monaco-vscode-fc28fb90-97de-5e74-89a9-4cfe44128227-common/vscode/vs/workbench/contrib/interactive/browser/interactiveCommon';
|
|
32
32
|
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
33
33
|
import { NotebookOptions } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/notebookOptions';
|
|
34
34
|
import { ToolBar } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/toolbar/toolbar';
|
|
@@ -50,15 +50,15 @@ import { INotebookExecutionStateService } from '@codingame/monaco-vscode-api/vsc
|
|
|
50
50
|
import { NOTEBOOK_KERNEL } from '@codingame/monaco-vscode-eda30bac-0984-5b42-9362-c68996b85232-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
|
-
import { NotebookFindContrib } from '@codingame/monaco-vscode-
|
|
53
|
+
import { NotebookFindContrib } from '@codingame/monaco-vscode-fc28fb90-97de-5e74-89a9-4cfe44128227-common/vscode/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget';
|
|
54
54
|
import { INTERACTIVE_WINDOW_EDITOR_ID } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
55
55
|
import * as interactiveEditor from './interactiveEditor.css';
|
|
56
56
|
import { deepClone } from '@codingame/monaco-vscode-api/vscode/vs/base/common/objects';
|
|
57
57
|
import { ContentHoverController } from '@codingame/monaco-vscode-api/vscode/vs/editor/contrib/hover/browser/contentHoverController';
|
|
58
58
|
import { GlyphHoverController } from '@codingame/monaco-vscode-api/vscode/vs/editor/contrib/hover/browser/glyphHoverController';
|
|
59
|
-
import { ReplInputHintContentWidget } from '
|
|
59
|
+
import { ReplInputHintContentWidget } from '@codingame/monaco-vscode-fc28fb90-97de-5e74-89a9-4cfe44128227-common/vscode/vs/workbench/contrib/interactive/browser/replInputHintContentWidget';
|
|
60
60
|
import { ServiceCollection } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/serviceCollection';
|
|
61
|
-
import { INLINE_CHAT_ID } from '@codingame/monaco-vscode-
|
|
61
|
+
import { INLINE_CHAT_ID } from '@codingame/monaco-vscode-a793b3ee-7ba9-5176-a019-30ec806fdd95-common/vscode/vs/workbench/contrib/inlineChat/common/inlineChat';
|
|
62
62
|
|
|
63
63
|
registerCss(interactive);
|
|
64
64
|
registerCss(interactiveEditor);
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { RawContextKey } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey";
|
|
2
|
-
export declare const INTERACTIVE_INPUT_CURSOR_BOUNDARY: RawContextKey<"top" | "none" | "bottom" | "both">;
|
|
3
|
-
export declare const ReplEditorSettings: {
|
|
4
|
-
interactiveWindowAlwaysScrollOnNewCell: string;
|
|
5
|
-
executeWithShiftEnter: string;
|
|
6
|
-
showExecutionHint: string;
|
|
7
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { RawContextKey } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
3
|
-
|
|
4
|
-
const INTERACTIVE_INPUT_CURSOR_BOUNDARY = ( new RawContextKey('interactiveInputCursorAtBoundary', 'none'));
|
|
5
|
-
const ReplEditorSettings = {
|
|
6
|
-
interactiveWindowAlwaysScrollOnNewCell: 'interactiveWindow.alwaysScrollOnNewCell',
|
|
7
|
-
executeWithShiftEnter: 'interactiveWindow.executeWithShiftEnter',
|
|
8
|
-
showExecutionHint: 'interactiveWindow.showExecutionHint',
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export { INTERACTIVE_INPUT_CURSOR_BOUNDARY, ReplEditorSettings };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
|
-
import { ICodeEditor, IContentWidget, IContentWidgetPosition } from "@codingame/monaco-vscode-api/vscode/vs/editor/browser/editorBrowser";
|
|
3
|
-
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
4
|
-
import { IKeybindingService } from "@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service";
|
|
5
|
-
export declare class ReplInputHintContentWidget extends Disposable implements IContentWidget {
|
|
6
|
-
private readonly editor;
|
|
7
|
-
private readonly configurationService;
|
|
8
|
-
private readonly keybindingService;
|
|
9
|
-
private static readonly ID;
|
|
10
|
-
private domNode;
|
|
11
|
-
private ariaLabel;
|
|
12
|
-
private label;
|
|
13
|
-
constructor(editor: ICodeEditor, configurationService: IConfigurationService, keybindingService: IKeybindingService);
|
|
14
|
-
getId(): string;
|
|
15
|
-
getPosition(): IContentWidgetPosition | null;
|
|
16
|
-
getDomNode(): HTMLElement;
|
|
17
|
-
private setHint;
|
|
18
|
-
private getKeybinding;
|
|
19
|
-
dispose(): void;
|
|
20
|
-
}
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
-
import { $, addDisposableListener } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
4
|
-
import { status } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/aria/aria';
|
|
5
|
-
import { KeybindingLabel } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/keybindingLabel/keybindingLabel';
|
|
6
|
-
import { Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
7
|
-
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
8
|
-
import { OS } from '@codingame/monaco-vscode-api/vscode/vs/base/common/platform';
|
|
9
|
-
import { ContentWidgetPositionPreference } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/editorBrowser';
|
|
10
|
-
import { EditorOption } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/config/editorOptions';
|
|
11
|
-
import { Position } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/core/position';
|
|
12
|
-
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
13
|
-
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
14
|
-
import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
15
|
-
import { AccessibilityVerbositySettingId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration';
|
|
16
|
-
import { AccessibilityCommandId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/accessibility/common/accessibilityCommands';
|
|
17
|
-
import { ReplEditorSettings } from './interactiveCommon.js';
|
|
18
|
-
|
|
19
|
-
var ReplInputHintContentWidget_1;
|
|
20
|
-
let ReplInputHintContentWidget = class ReplInputHintContentWidget extends Disposable {
|
|
21
|
-
static { ReplInputHintContentWidget_1 = this; }
|
|
22
|
-
static { this.ID = 'replInput.widget.emptyHint'; }
|
|
23
|
-
constructor(editor, configurationService, keybindingService) {
|
|
24
|
-
super();
|
|
25
|
-
this.editor = editor;
|
|
26
|
-
this.configurationService = configurationService;
|
|
27
|
-
this.keybindingService = keybindingService;
|
|
28
|
-
this.ariaLabel = '';
|
|
29
|
-
this._register(this.editor.onDidChangeConfiguration((e) => {
|
|
30
|
-
if (this.domNode && e.hasChanged(EditorOption.fontInfo)) {
|
|
31
|
-
this.editor.applyFontInfo(this.domNode);
|
|
32
|
-
}
|
|
33
|
-
}));
|
|
34
|
-
const onDidFocusEditorText = Event.debounce(this.editor.onDidFocusEditorText, () => undefined, 500);
|
|
35
|
-
this._register(onDidFocusEditorText(() => {
|
|
36
|
-
if (this.editor.hasTextFocus() && this.ariaLabel && configurationService.getValue(AccessibilityVerbositySettingId.ReplEditor)) {
|
|
37
|
-
status(this.ariaLabel);
|
|
38
|
-
}
|
|
39
|
-
}));
|
|
40
|
-
this._register(configurationService.onDidChangeConfiguration(e => {
|
|
41
|
-
if (e.affectsConfiguration(ReplEditorSettings.executeWithShiftEnter)) {
|
|
42
|
-
this.setHint();
|
|
43
|
-
}
|
|
44
|
-
}));
|
|
45
|
-
this.editor.addContentWidget(this);
|
|
46
|
-
}
|
|
47
|
-
getId() {
|
|
48
|
-
return ReplInputHintContentWidget_1.ID;
|
|
49
|
-
}
|
|
50
|
-
getPosition() {
|
|
51
|
-
return {
|
|
52
|
-
position: { lineNumber: 1, column: 1 },
|
|
53
|
-
preference: [ContentWidgetPositionPreference.EXACT]
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
getDomNode() {
|
|
57
|
-
if (!this.domNode) {
|
|
58
|
-
this.domNode = $('.empty-editor-hint');
|
|
59
|
-
this.domNode.style.width = 'max-content';
|
|
60
|
-
this.domNode.style.paddingLeft = '4px';
|
|
61
|
-
this.setHint();
|
|
62
|
-
this._register(addDisposableListener(this.domNode, 'click', () => {
|
|
63
|
-
this.editor.focus();
|
|
64
|
-
}));
|
|
65
|
-
this.editor.applyFontInfo(this.domNode);
|
|
66
|
-
const lineHeight = this.editor.getLineHeightForPosition(( new Position(1, 1)));
|
|
67
|
-
this.domNode.style.lineHeight = lineHeight + 'px';
|
|
68
|
-
}
|
|
69
|
-
return this.domNode;
|
|
70
|
-
}
|
|
71
|
-
setHint() {
|
|
72
|
-
if (!this.domNode) {
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
while (this.domNode.firstChild) {
|
|
76
|
-
this.domNode.removeChild(this.domNode.firstChild);
|
|
77
|
-
}
|
|
78
|
-
const hintElement = $('div.empty-hint-text');
|
|
79
|
-
hintElement.style.cursor = 'text';
|
|
80
|
-
hintElement.style.whiteSpace = 'nowrap';
|
|
81
|
-
const keybinding = this.getKeybinding();
|
|
82
|
-
const keybindingHintLabel = keybinding?.getLabel();
|
|
83
|
-
if (keybinding && keybindingHintLabel) {
|
|
84
|
-
const actionPart = ( localize(7976, 'Press {0} to execute. ', keybindingHintLabel));
|
|
85
|
-
const [before, after] = ( actionPart.split(keybindingHintLabel).map((fragment) => {
|
|
86
|
-
const hintPart = $('span', undefined, fragment);
|
|
87
|
-
hintPart.style.fontStyle = 'italic';
|
|
88
|
-
return hintPart;
|
|
89
|
-
}));
|
|
90
|
-
hintElement.appendChild(before);
|
|
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';
|
|
98
|
-
hintElement.appendChild(after);
|
|
99
|
-
this.domNode.append(hintElement);
|
|
100
|
-
const helpKeybinding = this.keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibilityHelp)?.getLabel();
|
|
101
|
-
const helpInfo = helpKeybinding
|
|
102
|
-
? ( localize(7977, "Use {0} for accessibility help. ", helpKeybinding))
|
|
103
|
-
: ( localize(7978, "Run the Open Accessibility Help command for more information. "));
|
|
104
|
-
this.ariaLabel = actionPart.concat(helpInfo, ( localize(
|
|
105
|
-
7979,
|
|
106
|
-
' Toggle {0} in settings to disable this hint.',
|
|
107
|
-
AccessibilityVerbositySettingId.ReplEditor
|
|
108
|
-
)));
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
getKeybinding() {
|
|
112
|
-
const keybindings = this.keybindingService.lookupKeybindings('interactive.execute');
|
|
113
|
-
const shiftEnterConfig = this.configurationService.getValue(ReplEditorSettings.executeWithShiftEnter);
|
|
114
|
-
const hasEnterChord = (kb, modifier = '') => {
|
|
115
|
-
const chords = kb.getDispatchChords();
|
|
116
|
-
const chord = modifier + 'Enter';
|
|
117
|
-
const chordAlt = modifier + '[Enter]';
|
|
118
|
-
return chords.length === 1 && (chords[0] === chord || chords[0] === chordAlt);
|
|
119
|
-
};
|
|
120
|
-
if (shiftEnterConfig) {
|
|
121
|
-
const keybinding = keybindings.find(kb => hasEnterChord(kb, 'shift+'));
|
|
122
|
-
if (keybinding) {
|
|
123
|
-
return keybinding;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
else {
|
|
127
|
-
let keybinding = keybindings.find(kb => hasEnterChord(kb));
|
|
128
|
-
if (keybinding) {
|
|
129
|
-
return keybinding;
|
|
130
|
-
}
|
|
131
|
-
keybinding = this.keybindingService.lookupKeybindings('python.execInREPLEnter')
|
|
132
|
-
.find(kb => hasEnterChord(kb));
|
|
133
|
-
if (keybinding) {
|
|
134
|
-
return keybinding;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
return keybindings?.[0];
|
|
138
|
-
}
|
|
139
|
-
dispose() {
|
|
140
|
-
super.dispose();
|
|
141
|
-
this.editor.removeContentWidget(this);
|
|
142
|
-
this.label?.dispose();
|
|
143
|
-
}
|
|
144
|
-
};
|
|
145
|
-
ReplInputHintContentWidget = ReplInputHintContentWidget_1 = ( __decorate([
|
|
146
|
-
( __param(1, IConfigurationService)),
|
|
147
|
-
( __param(2, IKeybindingService))
|
|
148
|
-
], ReplInputHintContentWidget));
|
|
149
|
-
|
|
150
|
-
export { ReplInputHintContentWidget };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/*---------------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
-
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
|
|
6
|
-
.interactive-editor .input-cell-container:focus-within .input-editor-container>.monaco-editor {
|
|
7
|
-
outline: solid 1px var(--vscode-notebook-focusedCellBorder);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.interactive-editor .input-cell-container .input-editor-container>.monaco-editor {
|
|
11
|
-
outline: solid 1px var(--vscode-notebook-inactiveFocusedCellBorder);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.interactive-editor .input-cell-container .input-focus-indicator {
|
|
15
|
-
top: 8px;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.interactive-editor .input-cell-container .monaco-editor-background,
|
|
19
|
-
.interactive-editor .input-cell-container .margin-view-overlays {
|
|
20
|
-
background-color: var(--vscode-notebook-cellEditorBackground, var(--vscode-editor-background));
|
|
21
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/*---------------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
-
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
|
|
6
|
-
.interactive-editor .input-cell-container {
|
|
7
|
-
box-sizing: border-box;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.interactive-editor .input-cell-container .input-focus-indicator {
|
|
11
|
-
position: absolute;
|
|
12
|
-
left: 0px;
|
|
13
|
-
height: 19px;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.interactive-editor .input-cell-container .input-focus-indicator::before {
|
|
17
|
-
border-left: 3px solid transparent;
|
|
18
|
-
border-radius: 2px;
|
|
19
|
-
margin-left: 4px;
|
|
20
|
-
content: "";
|
|
21
|
-
position: absolute;
|
|
22
|
-
width: 0px;
|
|
23
|
-
height: 100%;
|
|
24
|
-
z-index: 10;
|
|
25
|
-
left: 0px;
|
|
26
|
-
top: 0px;
|
|
27
|
-
height: 100%;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.interactive-editor .input-cell-container .run-button-container {
|
|
31
|
-
position: absolute;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.interactive-editor .input-cell-container .run-button-container .monaco-toolbar .actions-container {
|
|
35
|
-
justify-content: center;
|
|
36
|
-
}
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import * as DOM from "@codingame/monaco-vscode-api/vscode/vs/base/browser/dom";
|
|
2
|
-
import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation";
|
|
3
|
-
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
4
|
-
import { ICodeEditorViewState, ICompositeCodeEditor } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/editorCommon";
|
|
5
|
-
import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
6
|
-
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
7
|
-
import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service";
|
|
8
|
-
import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
9
|
-
import { IThemeService } from "@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service";
|
|
10
|
-
import { EditorPane } from "@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common/vscode/vs/workbench/browser/parts/editor/editorPane";
|
|
11
|
-
import { IEditorOpenContext, IEditorPaneScrollPosition, IEditorPaneSelectionChangeEvent, IEditorPaneWithScrolling } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor";
|
|
12
|
-
import { INotebookEditorOptions, INotebookEditorViewState } from "@codingame/monaco-vscode-670aae94-7f88-54d7-90ea-6fcbef423557-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser";
|
|
13
|
-
import { INotebookEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service";
|
|
14
|
-
import { NotebookEditorWidget } from "@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditorWidget";
|
|
15
|
-
import { IEditorGroup } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService";
|
|
16
|
-
import { IEditorGroupsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service";
|
|
17
|
-
import { INotebookKernelService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookKernelService.service";
|
|
18
|
-
import { ILanguageService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language.service";
|
|
19
|
-
import { IMenuService } from "@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions.service";
|
|
20
|
-
import { IKeybindingService } from "@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service";
|
|
21
|
-
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
22
|
-
import { IContextMenuService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service";
|
|
23
|
-
import { ITextResourceConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/textResourceConfiguration.service";
|
|
24
|
-
import { ITextEditorOptions } from "@codingame/monaco-vscode-api/vscode/vs/platform/editor/common/editor";
|
|
25
|
-
import { INotebookExecutionStateService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service";
|
|
26
|
-
import { IExtensionService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service";
|
|
27
|
-
import { ReplEditorInput } from "./replEditorInput.js";
|
|
28
|
-
import { ICodeEditor } from "@codingame/monaco-vscode-api/vscode/vs/editor/browser/editorBrowser";
|
|
29
|
-
import { IAccessibilityService } from "@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/common/accessibility.service";
|
|
30
|
-
export interface InteractiveEditorViewState {
|
|
31
|
-
readonly notebook?: INotebookEditorViewState;
|
|
32
|
-
readonly input?: ICodeEditorViewState | null;
|
|
33
|
-
}
|
|
34
|
-
export interface InteractiveEditorOptions extends ITextEditorOptions {
|
|
35
|
-
readonly viewState?: InteractiveEditorViewState;
|
|
36
|
-
}
|
|
37
|
-
export declare class ReplEditor extends EditorPane implements IEditorPaneWithScrolling {
|
|
38
|
-
private readonly _accessibilityService;
|
|
39
|
-
private _rootElement;
|
|
40
|
-
private _styleElement;
|
|
41
|
-
private _notebookEditorContainer;
|
|
42
|
-
private _notebookWidget;
|
|
43
|
-
private _inputCellContainer;
|
|
44
|
-
private _inputFocusIndicator;
|
|
45
|
-
private _inputRunButtonContainer;
|
|
46
|
-
private _inputEditorContainer;
|
|
47
|
-
private _codeEditorWidget;
|
|
48
|
-
private _notebookWidgetService;
|
|
49
|
-
private _instantiationService;
|
|
50
|
-
private _languageService;
|
|
51
|
-
private _contextKeyService;
|
|
52
|
-
private _configurationService;
|
|
53
|
-
private _notebookKernelService;
|
|
54
|
-
private _keybindingService;
|
|
55
|
-
private _menuService;
|
|
56
|
-
private _contextMenuService;
|
|
57
|
-
private _editorGroupService;
|
|
58
|
-
private _extensionService;
|
|
59
|
-
private readonly _widgetDisposableStore;
|
|
60
|
-
private _lastLayoutDimensions?;
|
|
61
|
-
private _editorOptions;
|
|
62
|
-
private _notebookOptions;
|
|
63
|
-
private _editorMemento;
|
|
64
|
-
private readonly _groupListener;
|
|
65
|
-
private _runbuttonToolbar;
|
|
66
|
-
private _hintElement;
|
|
67
|
-
private _onDidFocusWidget;
|
|
68
|
-
get onDidFocus(): Event<void>;
|
|
69
|
-
private _onDidChangeSelection;
|
|
70
|
-
readonly onDidChangeSelection: Event<IEditorPaneSelectionChangeEvent>;
|
|
71
|
-
private _onDidChangeScroll;
|
|
72
|
-
readonly onDidChangeScroll: Event<void>;
|
|
73
|
-
constructor(group: IEditorGroup, telemetryService: ITelemetryService, themeService: IThemeService, storageService: IStorageService, instantiationService: IInstantiationService, notebookWidgetService: INotebookEditorService, contextKeyService: IContextKeyService, notebookKernelService: INotebookKernelService, languageService: ILanguageService, keybindingService: IKeybindingService, configurationService: IConfigurationService, menuService: IMenuService, contextMenuService: IContextMenuService, editorGroupService: IEditorGroupsService, textResourceConfigurationService: ITextResourceConfigurationService, notebookExecutionStateService: INotebookExecutionStateService, extensionService: IExtensionService, _accessibilityService: IAccessibilityService);
|
|
74
|
-
private get inputCellContainerHeight();
|
|
75
|
-
private get inputCellEditorHeight();
|
|
76
|
-
protected createEditor(parent: HTMLElement): void;
|
|
77
|
-
private _setupRunButtonToolbar;
|
|
78
|
-
private _createLayoutStyles;
|
|
79
|
-
private _computeEditorOptions;
|
|
80
|
-
protected saveState(): void;
|
|
81
|
-
getViewState(): InteractiveEditorViewState | undefined;
|
|
82
|
-
private _saveEditorViewState;
|
|
83
|
-
private _loadNotebookEditorViewState;
|
|
84
|
-
setInput(input: ReplEditorInput, options: InteractiveEditorOptions | undefined, context: IEditorOpenContext, token: CancellationToken): Promise<void>;
|
|
85
|
-
private handleViewCellChange;
|
|
86
|
-
private handleAppend;
|
|
87
|
-
setOptions(options: INotebookEditorOptions | undefined): void;
|
|
88
|
-
private _toEditorPaneSelectionChangeReason;
|
|
89
|
-
private _cellAtBottom;
|
|
90
|
-
private _scrollIfNecessary;
|
|
91
|
-
private _syncWithKernel;
|
|
92
|
-
layout(dimension: DOM.Dimension, position: DOM.IDomPosition): void;
|
|
93
|
-
private _layoutWidgets;
|
|
94
|
-
private _validateDimension;
|
|
95
|
-
private _hasConflictingDecoration;
|
|
96
|
-
private _updateInputHint;
|
|
97
|
-
getScrollPosition(): IEditorPaneScrollPosition;
|
|
98
|
-
setScrollPosition(position: IEditorPaneScrollPosition): void;
|
|
99
|
-
focus(): void;
|
|
100
|
-
focusHistory(): void;
|
|
101
|
-
protected setEditorVisible(visible: boolean): void;
|
|
102
|
-
clearInput(): void;
|
|
103
|
-
getControl(): ReplEditorControl & ICompositeCodeEditor;
|
|
104
|
-
private getActiveCodeEditor;
|
|
105
|
-
}
|
|
106
|
-
export type ReplEditorControl = {
|
|
107
|
-
activeCodeEditor: ICodeEditor | undefined;
|
|
108
|
-
notebookEditor: NotebookEditorWidget | undefined;
|
|
109
|
-
};
|
|
110
|
-
export declare function isReplEditorControl(control: unknown): control is ReplEditorControl;
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
3
|
-
import * as interactive from './media/interactive.css';
|
|
4
|
-
import '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
5
|
-
import '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
6
|
-
import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
|
|
7
|
-
import '@codingame/monaco-vscode-api/vscode/vs/base/browser/browser';
|
|
8
|
-
import '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
9
|
-
import { CodeEditorWidget } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/widget/codeEditor/codeEditorWidget';
|
|
10
|
-
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
11
|
-
import '@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common/vscode/vs/workbench/browser/parts/editor/editorPane';
|
|
12
|
-
import '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor';
|
|
13
|
-
import '@codingame/monaco-vscode-api/vscode/vs/editor/contrib/contextmenu/browser/contextmenu';
|
|
14
|
-
import '@codingame/monaco-vscode-api/vscode/vs/editor/contrib/snippet/browser/snippetController2';
|
|
15
|
-
import '@codingame/monaco-vscode-api/vscode/vs/editor/contrib/suggest/browser/suggestController';
|
|
16
|
-
import '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/codeEditor/browser/menuPreventer';
|
|
17
|
-
import '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/snippets/browser/tabCompletion';
|
|
18
|
-
import '@codingame/monaco-vscode-api/vscode/vs/editor/browser/editorExtensions';
|
|
19
|
-
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService';
|
|
20
|
-
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colorUtils';
|
|
21
|
-
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/baseColors';
|
|
22
|
-
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/chartsColors';
|
|
23
|
-
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/editorColors';
|
|
24
|
-
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/inputColors';
|
|
25
|
-
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/listColors';
|
|
26
|
-
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/menuColors';
|
|
27
|
-
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/minimapColors';
|
|
28
|
-
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/miscColors';
|
|
29
|
-
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/quickpickColors';
|
|
30
|
-
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/searchColors';
|
|
31
|
-
import '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditorExtensions';
|
|
32
|
-
import { NotebookEditorWidget } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditorWidget';
|
|
33
|
-
import '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService';
|
|
34
|
-
import '@codingame/monaco-vscode-a793b3ee-7ba9-5176-a019-30ec806fdd95-common/vscode/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController';
|
|
35
|
-
import '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
36
|
-
import '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
37
|
-
import '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/notebookOptions';
|
|
38
|
-
import '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/toolbar/toolbar';
|
|
39
|
-
import '@codingame/monaco-vscode-api/vscode/vs/platform/actions/browser/menuEntryActionViewItem';
|
|
40
|
-
import '@codingame/monaco-vscode-api/vscode/vs/editor/contrib/gotoError/browser/gotoError';
|
|
41
|
-
import '@codingame/monaco-vscode-api/vscode/vs/platform/editor/common/editor';
|
|
42
|
-
import '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService';
|
|
43
|
-
import '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
44
|
-
import '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
|
|
45
|
-
import '@codingame/monaco-vscode-a793b3ee-7ba9-5176-a019-30ec806fdd95-common/vscode/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget';
|
|
46
|
-
import * as interactiveEditor from './interactiveEditor.css';
|
|
47
|
-
import '@codingame/monaco-vscode-api/vscode/vs/base/common/errors';
|
|
48
|
-
import '@codingame/monaco-vscode-api/vscode/vs/editor/contrib/hover/browser/glyphHoverController';
|
|
49
|
-
import '@codingame/monaco-vscode-api/vscode/vs/editor/contrib/hover/browser/contentHoverController';
|
|
50
|
-
import './replEditorInput.js';
|
|
51
|
-
import '../../interactive/browser/replInputHintContentWidget.js';
|
|
52
|
-
import '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
53
|
-
|
|
54
|
-
registerCss(interactive);
|
|
55
|
-
registerCss(interactiveEditor);
|
|
56
|
-
function isReplEditorControl(control) {
|
|
57
|
-
const candidate = control;
|
|
58
|
-
return candidate?.activeCodeEditor instanceof CodeEditorWidget && candidate?.notebookEditor instanceof NotebookEditorWidget;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export { isReplEditorControl };
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
2
|
-
import { ITextModelService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/resolverService.service";
|
|
3
|
-
import { ITextResourceConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/textResourceConfiguration.service";
|
|
4
|
-
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
5
|
-
import { IFileDialogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service";
|
|
6
|
-
import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service";
|
|
7
|
-
import { ILabelService } from "@codingame/monaco-vscode-api/vscode/vs/platform/label/common/label.service";
|
|
8
|
-
import { IInteractiveHistoryService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/interactive/browser/interactiveHistoryService.service";
|
|
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-670aae94-7f88-54d7-90ea-6fcbef423557-common/vscode/vs/workbench/contrib/notebook/common/notebookEditorInput";
|
|
11
|
-
import { INotebookEditorModelResolverService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookEditorModelResolverService.service";
|
|
12
|
-
import { INotebookService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookService.service";
|
|
13
|
-
import { ICustomEditorLabelService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/customEditorLabelService.service";
|
|
14
|
-
import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
15
|
-
import { IExtensionService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service";
|
|
16
|
-
import { IFilesConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/filesConfiguration/common/filesConfigurationService.service";
|
|
17
|
-
import { ThemeIcon } from "@codingame/monaco-vscode-api/vscode/vs/base/common/themables";
|
|
18
|
-
export declare class ReplEditorInput extends NotebookEditorInput implements ICompositeNotebookEditorInput {
|
|
19
|
-
readonly historyService: IInteractiveHistoryService;
|
|
20
|
-
private readonly _textModelService;
|
|
21
|
-
static ID: string;
|
|
22
|
-
private inputModelRef;
|
|
23
|
-
private isScratchpad;
|
|
24
|
-
private label;
|
|
25
|
-
private isDisposing;
|
|
26
|
-
constructor(resource: URI, label: string | undefined, _notebookService: INotebookService, _notebookModelResolverService: INotebookEditorModelResolverService, _fileDialogService: IFileDialogService, labelService: ILabelService, fileService: IFileService, filesConfigurationService: IFilesConfigurationService, extensionService: IExtensionService, editorService: IEditorService, textResourceConfigurationService: ITextResourceConfigurationService, customEditorLabelService: ICustomEditorLabelService, historyService: IInteractiveHistoryService, _textModelService: ITextModelService, configurationService: IConfigurationService);
|
|
27
|
-
getIcon(): ThemeIcon | undefined;
|
|
28
|
-
private createEditorLabel;
|
|
29
|
-
get typeId(): string;
|
|
30
|
-
get editorId(): string | undefined;
|
|
31
|
-
getName(): string;
|
|
32
|
-
get editorInputs(): this[];
|
|
33
|
-
get capabilities(): number;
|
|
34
|
-
resolve(): Promise<import("@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon").IResolvedNotebookEditorModel | null>;
|
|
35
|
-
private ensureInputBoxCell;
|
|
36
|
-
resolveInput(notebook: NotebookTextModel): Promise<import("@codingame/monaco-vscode-api/vscode/vs/editor/common/model").ITextModel>;
|
|
37
|
-
dispose(): void;
|
|
38
|
-
}
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
-
import { ITextModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/resolverService.service';
|
|
4
|
-
import { ITextResourceConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/textResourceConfiguration.service';
|
|
5
|
-
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
6
|
-
import { IFileDialogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
7
|
-
import { IFileService } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service';
|
|
8
|
-
import { ILabelService } from '@codingame/monaco-vscode-api/vscode/vs/platform/label/common/label.service';
|
|
9
|
-
import { EditorInputCapabilities } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor';
|
|
10
|
-
import { IInteractiveHistoryService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/interactive/browser/interactiveHistoryService.service';
|
|
11
|
-
import { NotebookSetting, CellKind, CellEditType } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
12
|
-
import { NotebookEditorInput } from '@codingame/monaco-vscode-670aae94-7f88-54d7-90ea-6fcbef423557-common/vscode/vs/workbench/contrib/notebook/common/notebookEditorInput';
|
|
13
|
-
import { INotebookEditorModelResolverService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookEditorModelResolverService.service';
|
|
14
|
-
import { INotebookService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookService.service';
|
|
15
|
-
import { ICustomEditorLabelService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/customEditorLabelService.service';
|
|
16
|
-
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
17
|
-
import { IExtensionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
18
|
-
import { IFilesConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/filesConfiguration/common/filesConfigurationService.service';
|
|
19
|
-
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
20
|
-
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
21
|
-
import { registerIcon } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/iconRegistry';
|
|
22
|
-
|
|
23
|
-
var ReplEditorInput_1;
|
|
24
|
-
const replTabIcon = registerIcon('repl-editor-label-icon', Codicon.debugLineByLine, ( localize(9979, 'Icon of the REPL editor label.')));
|
|
25
|
-
let ReplEditorInput = class ReplEditorInput extends NotebookEditorInput {
|
|
26
|
-
static { ReplEditorInput_1 = this; }
|
|
27
|
-
static { this.ID = 'workbench.editorinputs.replEditorInput'; }
|
|
28
|
-
constructor(resource, label, _notebookService, _notebookModelResolverService, _fileDialogService, labelService, fileService, filesConfigurationService, extensionService, editorService, textResourceConfigurationService, customEditorLabelService, historyService, _textModelService, configurationService) {
|
|
29
|
-
super(resource, undefined, 'jupyter-notebook', {}, _notebookService, _notebookModelResolverService, _fileDialogService, labelService, fileService, filesConfigurationService, extensionService, editorService, textResourceConfigurationService, customEditorLabelService);
|
|
30
|
-
this.historyService = historyService;
|
|
31
|
-
this._textModelService = _textModelService;
|
|
32
|
-
this.isDisposing = false;
|
|
33
|
-
this.isScratchpad = resource.scheme === 'untitled' && configurationService.getValue(NotebookSetting.InteractiveWindowPromptToSave) !== true;
|
|
34
|
-
this.label = label ?? this.createEditorLabel(resource);
|
|
35
|
-
}
|
|
36
|
-
getIcon() {
|
|
37
|
-
return replTabIcon;
|
|
38
|
-
}
|
|
39
|
-
createEditorLabel(resource) {
|
|
40
|
-
if (!resource) {
|
|
41
|
-
return 'REPL';
|
|
42
|
-
}
|
|
43
|
-
if (resource.scheme === 'untitled') {
|
|
44
|
-
const match = ( new RegExp('Untitled-(\\d+)\.')).exec(resource.path);
|
|
45
|
-
if (match?.length === 2) {
|
|
46
|
-
return `REPL - ${match[1]}`;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
const filename = resource.path.split('/').pop();
|
|
50
|
-
return filename ? `REPL - ${filename}` : 'REPL';
|
|
51
|
-
}
|
|
52
|
-
get typeId() {
|
|
53
|
-
return ReplEditorInput_1.ID;
|
|
54
|
-
}
|
|
55
|
-
get editorId() {
|
|
56
|
-
return 'repl';
|
|
57
|
-
}
|
|
58
|
-
getName() {
|
|
59
|
-
return this.label;
|
|
60
|
-
}
|
|
61
|
-
get editorInputs() {
|
|
62
|
-
return [this];
|
|
63
|
-
}
|
|
64
|
-
get capabilities() {
|
|
65
|
-
const capabilities = super.capabilities;
|
|
66
|
-
const scratchPad = this.isScratchpad ? EditorInputCapabilities.Scratchpad : 0;
|
|
67
|
-
return capabilities
|
|
68
|
-
| EditorInputCapabilities.Readonly
|
|
69
|
-
| scratchPad;
|
|
70
|
-
}
|
|
71
|
-
async resolve() {
|
|
72
|
-
const model = await super.resolve();
|
|
73
|
-
if (model) {
|
|
74
|
-
this.ensureInputBoxCell(model.notebook);
|
|
75
|
-
}
|
|
76
|
-
return model;
|
|
77
|
-
}
|
|
78
|
-
ensureInputBoxCell(notebook) {
|
|
79
|
-
const lastCell = notebook.cells[notebook.cells.length - 1];
|
|
80
|
-
if (!lastCell || lastCell.cellKind === CellKind.Markup || lastCell.outputs.length > 0 || lastCell.internalMetadata.executionOrder !== undefined) {
|
|
81
|
-
notebook.applyEdits([
|
|
82
|
-
{
|
|
83
|
-
editType: CellEditType.Replace,
|
|
84
|
-
index: notebook.cells.length,
|
|
85
|
-
count: 0,
|
|
86
|
-
cells: [
|
|
87
|
-
{
|
|
88
|
-
cellKind: CellKind.Code,
|
|
89
|
-
language: 'python',
|
|
90
|
-
mime: undefined,
|
|
91
|
-
outputs: [],
|
|
92
|
-
source: ''
|
|
93
|
-
}
|
|
94
|
-
]
|
|
95
|
-
}
|
|
96
|
-
], true, undefined, () => undefined, undefined, false);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
async resolveInput(notebook) {
|
|
100
|
-
if (this.inputModelRef) {
|
|
101
|
-
return this.inputModelRef.object.textEditorModel;
|
|
102
|
-
}
|
|
103
|
-
const lastCell = notebook.cells[notebook.cells.length - 1];
|
|
104
|
-
if (!lastCell) {
|
|
105
|
-
throw ( new Error('The REPL editor requires at least one cell for the input box.'));
|
|
106
|
-
}
|
|
107
|
-
this.inputModelRef = await this._textModelService.createModelReference(lastCell.uri);
|
|
108
|
-
return this.inputModelRef.object.textEditorModel;
|
|
109
|
-
}
|
|
110
|
-
dispose() {
|
|
111
|
-
if (!this.isDisposing) {
|
|
112
|
-
this.isDisposing = true;
|
|
113
|
-
this.editorModelReference?.object.revert({ soft: true });
|
|
114
|
-
this.inputModelRef?.dispose();
|
|
115
|
-
super.dispose();
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
};
|
|
119
|
-
ReplEditorInput = ReplEditorInput_1 = ( __decorate([
|
|
120
|
-
( __param(2, INotebookService)),
|
|
121
|
-
( __param(3, INotebookEditorModelResolverService)),
|
|
122
|
-
( __param(4, IFileDialogService)),
|
|
123
|
-
( __param(5, ILabelService)),
|
|
124
|
-
( __param(6, IFileService)),
|
|
125
|
-
( __param(7, IFilesConfigurationService)),
|
|
126
|
-
( __param(8, IExtensionService)),
|
|
127
|
-
( __param(9, IEditorService)),
|
|
128
|
-
( __param(10, ITextResourceConfigurationService)),
|
|
129
|
-
( __param(11, ICustomEditorLabelService)),
|
|
130
|
-
( __param(12, IInteractiveHistoryService)),
|
|
131
|
-
( __param(13, ITextModelService)),
|
|
132
|
-
( __param(14, IConfigurationService))
|
|
133
|
-
], ReplEditorInput));
|
|
134
|
-
|
|
135
|
-
export { ReplEditorInput };
|