@codingame/monaco-vscode-notebook-service-override 19.1.4 → 20.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/index.js +1 -1
- package/package.json +23 -27
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +22 -52
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +24 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticEditorContrib.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticsActions.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/contributedStatusBarItemController.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/contributedStatusBarItemController.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookBreakpoints.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorHint/emptyCellEditorHint.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js +11 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/execute/executionEditorProgress.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/marker/markerProvider.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +16 -16
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookInlineVariables.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookInlineVariables.js +5 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesDataSource.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +13 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/profile/notebookProfile.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.js +13 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.d.ts +2 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.js +53 -33
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/undoRedo/notebookUndoRedo.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/viewportWarmup/viewportWarmup.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +31 -31
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +28 -28
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +26 -26
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +25 -25
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +19 -19
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.js +14 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/variablesActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +21 -21
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +72 -75
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.js +11 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibleView.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +33 -33
- package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditor.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditor.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js +0 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +12 -12
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopy.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopy.js +1 -1
|
@@ -7,7 +7,6 @@ import { isEqual, extname } from '@codingame/monaco-vscode-api/vscode/vs/base/co
|
|
|
7
7
|
import { assertType } from '@codingame/monaco-vscode-api/vscode/vs/base/common/types';
|
|
8
8
|
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
9
9
|
import { toFormattedString } from '@codingame/monaco-vscode-158b9837-fc78-5d9c-86f5-9134e4358643-common/vscode/vs/base/common/jsonFormatter';
|
|
10
|
-
import { DefaultEndOfLine } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/model';
|
|
11
10
|
import { IModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model.service';
|
|
12
11
|
import { ILanguageService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language.service';
|
|
13
12
|
import { ITextModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/resolverService.service';
|
|
@@ -21,8 +20,8 @@ import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/regist
|
|
|
21
20
|
import { EditorPaneDescriptor } from '@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common/vscode/vs/workbench/browser/editor';
|
|
22
21
|
import { Extensions as Extensions$1, registerWorkbenchContribution2, WorkbenchPhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
|
|
23
22
|
import { EditorExtensions } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor';
|
|
24
|
-
import { NotebookEditor } from '@codingame/monaco-vscode-
|
|
25
|
-
import { NotebookEditorInput } from '@codingame/monaco-vscode-
|
|
23
|
+
import { NotebookEditor } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditor';
|
|
24
|
+
import { NotebookEditorInput } from '@codingame/monaco-vscode-670aae94-7f88-54d7-90ea-6fcbef423557-common/vscode/vs/workbench/contrib/notebook/common/notebookEditorInput';
|
|
26
25
|
import { INotebookService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookService.service';
|
|
27
26
|
import './services/notebookServiceImpl.js';
|
|
28
27
|
import { NotebookSetting, CellUri, CellKind, NotebookCellsChangeType, NotebookMetadataUri, NotebookWorkingCopyTypeIdentifier } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
@@ -45,7 +44,7 @@ import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/pl
|
|
|
45
44
|
import { ILabelService } from '@codingame/monaco-vscode-api/vscode/vs/platform/label/common/label.service';
|
|
46
45
|
import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
47
46
|
import './services/notebookRendererMessagingServiceImpl.js';
|
|
48
|
-
import '@codingame/monaco-vscode-
|
|
47
|
+
import '@codingame/monaco-vscode-622c0cca-d5fa-59b6-b730-0715afcf93ee-common/vscode/vs/workbench/services/outline/browser/outline';
|
|
49
48
|
import '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
|
|
50
49
|
import './controller/insertCellActions.js';
|
|
51
50
|
import './controller/executeActions.js';
|
|
@@ -70,7 +69,7 @@ import './contrib/outline/notebookOutline.js';
|
|
|
70
69
|
import './contrib/profile/notebookProfile.js';
|
|
71
70
|
import './contrib/cellStatusBar/statusBarProviders.js';
|
|
72
71
|
import './contrib/cellStatusBar/contributedStatusBarItemController.js';
|
|
73
|
-
import '@codingame/monaco-vscode-
|
|
72
|
+
import '@codingame/monaco-vscode-a793b3ee-7ba9-5176-a019-30ec806fdd95-common/vscode/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController';
|
|
74
73
|
import './contrib/editorStatusBar/editorStatusBar.js';
|
|
75
74
|
import './contrib/undoRedo/notebookUndoRedo.js';
|
|
76
75
|
import './contrib/cellCommands/cellCommands.js';
|
|
@@ -296,8 +295,6 @@ let CellContentProvider = class CellContentProvider {
|
|
|
296
295
|
if (( cell.uri.toString()) === ( resource.toString())) {
|
|
297
296
|
const bufferFactory = {
|
|
298
297
|
create: (defaultEOL) => {
|
|
299
|
-
const newEOL = (defaultEOL === DefaultEndOfLine.CRLF ? '\r\n' : '\n');
|
|
300
|
-
cell.textBuffer.setEOL(newEOL);
|
|
301
298
|
return { textBuffer: cell.textBuffer, disposable: Disposable.None };
|
|
302
299
|
},
|
|
303
300
|
getFirstLineText: (limit) => {
|
|
@@ -743,7 +740,7 @@ for (const editorOption of editorOptionsRegistry) {
|
|
|
743
740
|
}
|
|
744
741
|
const editorOptionsCustomizationSchema = {
|
|
745
742
|
description: ( localize(
|
|
746
|
-
|
|
743
|
+
8822,
|
|
747
744
|
'Settings for code editors used in notebooks. This can be used to customize most editor.* settings.'
|
|
748
745
|
)),
|
|
749
746
|
default: {},
|
|
@@ -758,11 +755,11 @@ const configurationRegistry = ( Registry.as(Extensions$2.Configuration));
|
|
|
758
755
|
configurationRegistry.registerConfiguration({
|
|
759
756
|
id: 'notebook',
|
|
760
757
|
order: 100,
|
|
761
|
-
title: ( localize(
|
|
758
|
+
title: ( localize(8823, "Notebook")),
|
|
762
759
|
type: 'object',
|
|
763
760
|
properties: {
|
|
764
761
|
[NotebookSetting.displayOrder]: {
|
|
765
|
-
description: ( localize(
|
|
762
|
+
description: ( localize(8824, "Priority list for output mime types")),
|
|
766
763
|
type: 'array',
|
|
767
764
|
items: {
|
|
768
765
|
type: 'string'
|
|
@@ -771,12 +768,12 @@ configurationRegistry.registerConfiguration({
|
|
|
771
768
|
},
|
|
772
769
|
[NotebookSetting.cellToolbarLocation]: {
|
|
773
770
|
description: ( localize(
|
|
774
|
-
|
|
771
|
+
8825,
|
|
775
772
|
"Where the cell toolbar should be shown, or whether it should be hidden."
|
|
776
773
|
)),
|
|
777
774
|
type: 'object',
|
|
778
775
|
additionalProperties: {
|
|
779
|
-
markdownDescription: ( localize(
|
|
776
|
+
markdownDescription: ( localize(8826, "Configure the cell toolbar position for for specific file types")),
|
|
780
777
|
type: 'string',
|
|
781
778
|
enum: ['left', 'right', 'hidden']
|
|
782
779
|
},
|
|
@@ -786,14 +783,14 @@ configurationRegistry.registerConfiguration({
|
|
|
786
783
|
tags: ['notebookLayout']
|
|
787
784
|
},
|
|
788
785
|
[NotebookSetting.showCellStatusBar]: {
|
|
789
|
-
description: ( localize(
|
|
786
|
+
description: ( localize(8827, "Whether the cell status bar should be shown.")),
|
|
790
787
|
type: 'string',
|
|
791
788
|
enum: ['hidden', 'visible', 'visibleAfterExecute'],
|
|
792
789
|
enumDescriptions: [
|
|
793
|
-
( localize(
|
|
794
|
-
( localize(
|
|
790
|
+
( localize(8828, "The cell Status bar is always hidden.")),
|
|
791
|
+
( localize(8829, "The cell Status bar is always visible.")),
|
|
795
792
|
( localize(
|
|
796
|
-
|
|
793
|
+
8830,
|
|
797
794
|
"The cell Status bar is hidden until the cell has executed. Then it becomes visible to show the execution status."
|
|
798
795
|
))
|
|
799
796
|
],
|
|
@@ -802,18 +799,18 @@ configurationRegistry.registerConfiguration({
|
|
|
802
799
|
},
|
|
803
800
|
[NotebookSetting.cellExecutionTimeVerbosity]: {
|
|
804
801
|
description: ( localize(
|
|
805
|
-
|
|
802
|
+
8831,
|
|
806
803
|
"Controls the verbosity of the cell execution time in the cell status bar."
|
|
807
804
|
)),
|
|
808
805
|
type: 'string',
|
|
809
806
|
enum: ['default', 'verbose'],
|
|
810
807
|
enumDescriptions: [
|
|
811
808
|
( localize(
|
|
812
|
-
|
|
809
|
+
8832,
|
|
813
810
|
"The cell execution duration is visible, with advanced information in the hover tooltip."
|
|
814
811
|
)),
|
|
815
812
|
( localize(
|
|
816
|
-
|
|
813
|
+
8833,
|
|
817
814
|
"The cell last execution timestamp and duration are visible, with advanced information in the hover tooltip."
|
|
818
815
|
))
|
|
819
816
|
],
|
|
@@ -821,14 +818,14 @@ configurationRegistry.registerConfiguration({
|
|
|
821
818
|
tags: ['notebookLayout']
|
|
822
819
|
},
|
|
823
820
|
[NotebookSetting.textDiffEditorPreview]: {
|
|
824
|
-
description: ( localize(
|
|
821
|
+
description: ( localize(8834, "Whether to use the enhanced text diff editor for notebook.")),
|
|
825
822
|
type: 'boolean',
|
|
826
823
|
default: true,
|
|
827
824
|
tags: ['notebookLayout']
|
|
828
825
|
},
|
|
829
826
|
[NotebookSetting.diffOverviewRuler]: {
|
|
830
827
|
description: ( localize(
|
|
831
|
-
|
|
828
|
+
8835,
|
|
832
829
|
"Whether to render the overview ruler in the diff editor for notebook."
|
|
833
830
|
)),
|
|
834
831
|
type: 'boolean',
|
|
@@ -836,21 +833,21 @@ configurationRegistry.registerConfiguration({
|
|
|
836
833
|
tags: ['notebookLayout']
|
|
837
834
|
},
|
|
838
835
|
[NotebookSetting.cellToolbarVisibility]: {
|
|
839
|
-
markdownDescription: ( localize(
|
|
836
|
+
markdownDescription: ( localize(8836, "Whether the cell toolbar should appear on hover or click.")),
|
|
840
837
|
type: 'string',
|
|
841
838
|
enum: ['hover', 'click'],
|
|
842
839
|
default: 'click',
|
|
843
840
|
tags: ['notebookLayout']
|
|
844
841
|
},
|
|
845
842
|
[NotebookSetting.undoRedoPerCell]: {
|
|
846
|
-
description: ( localize(
|
|
843
|
+
description: ( localize(8837, "Whether to use separate undo/redo stack for each cell.")),
|
|
847
844
|
type: 'boolean',
|
|
848
845
|
default: true,
|
|
849
846
|
tags: ['notebookLayout']
|
|
850
847
|
},
|
|
851
848
|
[NotebookSetting.compactView]: {
|
|
852
849
|
description: ( localize(
|
|
853
|
-
|
|
850
|
+
8838,
|
|
854
851
|
"Control whether the notebook editor should be rendered in a compact form. For example, when turned on, it will decrease the left margin width."
|
|
855
852
|
)),
|
|
856
853
|
type: 'boolean',
|
|
@@ -859,7 +856,7 @@ configurationRegistry.registerConfiguration({
|
|
|
859
856
|
},
|
|
860
857
|
[NotebookSetting.focusIndicator]: {
|
|
861
858
|
description: ( localize(
|
|
862
|
-
|
|
859
|
+
8839,
|
|
863
860
|
"Controls where the focus indicator is rendered, either along the cell borders or on the left gutter."
|
|
864
861
|
)),
|
|
865
862
|
type: 'string',
|
|
@@ -868,21 +865,21 @@ configurationRegistry.registerConfiguration({
|
|
|
868
865
|
tags: ['notebookLayout']
|
|
869
866
|
},
|
|
870
867
|
[NotebookSetting.insertToolbarLocation]: {
|
|
871
|
-
description: ( localize(
|
|
868
|
+
description: ( localize(8840, "Control where the insert cell actions should appear.")),
|
|
872
869
|
type: 'string',
|
|
873
870
|
enum: ['betweenCells', 'notebookToolbar', 'both', 'hidden'],
|
|
874
871
|
enumDescriptions: [
|
|
875
|
-
( localize(
|
|
876
|
-
( localize(
|
|
877
|
-
( localize(
|
|
878
|
-
( localize(
|
|
872
|
+
( localize(8841, "A toolbar that appears on hover between cells.")),
|
|
873
|
+
( localize(8842, "The toolbar at the top of the notebook editor.")),
|
|
874
|
+
( localize(8843, "Both toolbars.")),
|
|
875
|
+
( localize(8844, "The insert actions don't appear anywhere.")),
|
|
879
876
|
],
|
|
880
877
|
default: 'both',
|
|
881
878
|
tags: ['notebookLayout']
|
|
882
879
|
},
|
|
883
880
|
[NotebookSetting.globalToolbar]: {
|
|
884
881
|
description: ( localize(
|
|
885
|
-
|
|
882
|
+
8845,
|
|
886
883
|
"Control whether to render a global toolbar inside the notebook editor."
|
|
887
884
|
)),
|
|
888
885
|
type: 'boolean',
|
|
@@ -891,7 +888,7 @@ configurationRegistry.registerConfiguration({
|
|
|
891
888
|
},
|
|
892
889
|
[NotebookSetting.stickyScrollEnabled]: {
|
|
893
890
|
description: ( localize(
|
|
894
|
-
|
|
891
|
+
8846,
|
|
895
892
|
"Experimental. Control whether to render notebook Sticky Scroll headers in the notebook editor."
|
|
896
893
|
)),
|
|
897
894
|
type: 'boolean',
|
|
@@ -900,21 +897,21 @@ configurationRegistry.registerConfiguration({
|
|
|
900
897
|
},
|
|
901
898
|
[NotebookSetting.stickyScrollMode]: {
|
|
902
899
|
description: ( localize(
|
|
903
|
-
|
|
900
|
+
8847,
|
|
904
901
|
"Control whether nested sticky lines appear to stack flat or indented."
|
|
905
902
|
)),
|
|
906
903
|
type: 'string',
|
|
907
904
|
enum: ['flat', 'indented'],
|
|
908
905
|
enumDescriptions: [
|
|
909
|
-
( localize(
|
|
910
|
-
( localize(
|
|
906
|
+
( localize(8848, "Nested sticky lines appear flat.")),
|
|
907
|
+
( localize(8849, "Nested sticky lines appear indented.")),
|
|
911
908
|
],
|
|
912
909
|
default: 'indented',
|
|
913
910
|
tags: ['notebookLayout']
|
|
914
911
|
},
|
|
915
912
|
[NotebookSetting.consolidatedOutputButton]: {
|
|
916
913
|
description: ( localize(
|
|
917
|
-
|
|
914
|
+
8850,
|
|
918
915
|
"Control whether outputs action should be rendered in the output toolbar."
|
|
919
916
|
)),
|
|
920
917
|
type: 'boolean',
|
|
@@ -922,20 +919,20 @@ configurationRegistry.registerConfiguration({
|
|
|
922
919
|
tags: ['notebookLayout']
|
|
923
920
|
},
|
|
924
921
|
[NotebookSetting.showFoldingControls]: {
|
|
925
|
-
description: ( localize(
|
|
922
|
+
description: ( localize(8851, "Controls when the Markdown header folding arrow is shown.")),
|
|
926
923
|
type: 'string',
|
|
927
924
|
enum: ['always', 'never', 'mouseover'],
|
|
928
925
|
enumDescriptions: [
|
|
929
|
-
( localize(
|
|
930
|
-
( localize(
|
|
931
|
-
( localize(
|
|
926
|
+
( localize(8852, "The folding controls are always visible.")),
|
|
927
|
+
( localize(8853, "Never show the folding controls and reduce the gutter size.")),
|
|
928
|
+
( localize(8854, "The folding controls are visible only on mouseover.")),
|
|
932
929
|
],
|
|
933
930
|
default: 'mouseover',
|
|
934
931
|
tags: ['notebookLayout']
|
|
935
932
|
},
|
|
936
933
|
[NotebookSetting.dragAndDropEnabled]: {
|
|
937
934
|
description: ( localize(
|
|
938
|
-
|
|
935
|
+
8855,
|
|
939
936
|
"Control whether the notebook editor should allow moving cells through drag and drop."
|
|
940
937
|
)),
|
|
941
938
|
type: 'boolean',
|
|
@@ -944,7 +941,7 @@ configurationRegistry.registerConfiguration({
|
|
|
944
941
|
},
|
|
945
942
|
[NotebookSetting.consolidatedRunButton]: {
|
|
946
943
|
description: ( localize(
|
|
947
|
-
|
|
944
|
+
8856,
|
|
948
945
|
"Control whether extra actions are shown in a dropdown next to the run button."
|
|
949
946
|
)),
|
|
950
947
|
type: 'boolean',
|
|
@@ -953,7 +950,7 @@ configurationRegistry.registerConfiguration({
|
|
|
953
950
|
},
|
|
954
951
|
[NotebookSetting.globalToolbarShowLabel]: {
|
|
955
952
|
description: ( localize(
|
|
956
|
-
|
|
953
|
+
8857,
|
|
957
954
|
"Control whether the actions on the notebook toolbar should render label or not."
|
|
958
955
|
)),
|
|
959
956
|
type: 'string',
|
|
@@ -963,7 +960,7 @@ configurationRegistry.registerConfiguration({
|
|
|
963
960
|
},
|
|
964
961
|
[NotebookSetting.textOutputLineLimit]: {
|
|
965
962
|
markdownDescription: ( localize(
|
|
966
|
-
|
|
963
|
+
8858,
|
|
967
964
|
"Controls how many lines of text are displayed in a text output. If {0} is enabled, this setting is used to determine the scroll height of the output.",
|
|
968
965
|
'`#notebook.output.scrolling#`'
|
|
969
966
|
)),
|
|
@@ -974,7 +971,7 @@ configurationRegistry.registerConfiguration({
|
|
|
974
971
|
},
|
|
975
972
|
[NotebookSetting.LinkifyOutputFilePaths]: {
|
|
976
973
|
description: ( localize(
|
|
977
|
-
|
|
974
|
+
8859,
|
|
978
975
|
"Control whether to disable filepath links in the output of notebook cells."
|
|
979
976
|
)),
|
|
980
977
|
type: 'boolean',
|
|
@@ -982,14 +979,14 @@ configurationRegistry.registerConfiguration({
|
|
|
982
979
|
tags: ['notebookOutputLayout']
|
|
983
980
|
},
|
|
984
981
|
[NotebookSetting.minimalErrorRendering]: {
|
|
985
|
-
description: ( localize(
|
|
982
|
+
description: ( localize(8860, "Control whether to render error output in a minimal style.")),
|
|
986
983
|
type: 'boolean',
|
|
987
984
|
default: false,
|
|
988
985
|
tags: ['notebookOutputLayout']
|
|
989
986
|
},
|
|
990
987
|
[NotebookSetting.markupFontSize]: {
|
|
991
988
|
markdownDescription: ( localize(
|
|
992
|
-
|
|
989
|
+
8861,
|
|
993
990
|
"Controls the font size in pixels of rendered markup in notebooks. When set to {0}, 120% of {1} is used.",
|
|
994
991
|
'`0`',
|
|
995
992
|
'`#editor.fontSize#`'
|
|
@@ -1000,7 +997,7 @@ configurationRegistry.registerConfiguration({
|
|
|
1000
997
|
},
|
|
1001
998
|
[NotebookSetting.markdownLineHeight]: {
|
|
1002
999
|
markdownDescription: ( localize(
|
|
1003
|
-
|
|
1000
|
+
8862,
|
|
1004
1001
|
"Controls the line height in pixels of markdown cells in notebooks. When set to {0}, {1} will be used",
|
|
1005
1002
|
'`0`',
|
|
1006
1003
|
'`normal`'
|
|
@@ -1012,7 +1009,7 @@ configurationRegistry.registerConfiguration({
|
|
|
1012
1009
|
[NotebookSetting.cellEditorOptionsCustomizations]: editorOptionsCustomizationSchema,
|
|
1013
1010
|
[NotebookSetting.interactiveWindowCollapseCodeCells]: {
|
|
1014
1011
|
markdownDescription: ( localize(
|
|
1015
|
-
|
|
1012
|
+
8863,
|
|
1016
1013
|
"Controls whether code cells in the interactive window are collapsed by default."
|
|
1017
1014
|
)),
|
|
1018
1015
|
type: 'string',
|
|
@@ -1021,7 +1018,7 @@ configurationRegistry.registerConfiguration({
|
|
|
1021
1018
|
},
|
|
1022
1019
|
[NotebookSetting.outputLineHeight]: {
|
|
1023
1020
|
markdownDescription: ( localize(
|
|
1024
|
-
|
|
1021
|
+
8864,
|
|
1025
1022
|
"Line height of the output text within notebook cells.\n - When set to 0, editor line height is used.\n - Values between 0 and 8 will be used as a multiplier with the font size.\n - Values greater than or equal to 8 will be used as effective values."
|
|
1026
1023
|
)),
|
|
1027
1024
|
type: 'number',
|
|
@@ -1030,7 +1027,7 @@ configurationRegistry.registerConfiguration({
|
|
|
1030
1027
|
},
|
|
1031
1028
|
[NotebookSetting.outputFontSize]: {
|
|
1032
1029
|
markdownDescription: ( localize(
|
|
1033
|
-
|
|
1030
|
+
8865,
|
|
1034
1031
|
"Font size for the output text within notebook cells. When set to 0, {0} is used.",
|
|
1035
1032
|
'`#editor.fontSize#`'
|
|
1036
1033
|
)),
|
|
@@ -1040,7 +1037,7 @@ configurationRegistry.registerConfiguration({
|
|
|
1040
1037
|
},
|
|
1041
1038
|
[NotebookSetting.outputFontFamily]: {
|
|
1042
1039
|
markdownDescription: ( localize(
|
|
1043
|
-
|
|
1040
|
+
8866,
|
|
1044
1041
|
"The font family of the output text within notebook cells. When set to empty, the {0} is used.",
|
|
1045
1042
|
'`#editor.fontFamily#`'
|
|
1046
1043
|
)),
|
|
@@ -1049,7 +1046,7 @@ configurationRegistry.registerConfiguration({
|
|
|
1049
1046
|
},
|
|
1050
1047
|
[NotebookSetting.outputScrolling]: {
|
|
1051
1048
|
markdownDescription: ( localize(
|
|
1052
|
-
|
|
1049
|
+
8867,
|
|
1053
1050
|
"Initially render notebook outputs in a scrollable region when longer than the limit."
|
|
1054
1051
|
)),
|
|
1055
1052
|
type: 'boolean',
|
|
@@ -1057,14 +1054,14 @@ configurationRegistry.registerConfiguration({
|
|
|
1057
1054
|
default: typeof product.quality === 'string' && product.quality !== 'stable'
|
|
1058
1055
|
},
|
|
1059
1056
|
[NotebookSetting.outputWordWrap]: {
|
|
1060
|
-
markdownDescription: ( localize(
|
|
1057
|
+
markdownDescription: ( localize(8868, "Controls whether the lines in output should wrap.")),
|
|
1061
1058
|
type: 'boolean',
|
|
1062
1059
|
tags: ['notebookLayout', 'notebookOutputLayout'],
|
|
1063
1060
|
default: false
|
|
1064
1061
|
},
|
|
1065
1062
|
[NotebookSetting.defaultFormatter]: {
|
|
1066
1063
|
description: ( localize(
|
|
1067
|
-
|
|
1064
|
+
8869,
|
|
1068
1065
|
"Defines a default notebook formatter which takes precedence over all other formatter settings. Must be the identifier of an extension contributing a formatter."
|
|
1069
1066
|
)),
|
|
1070
1067
|
type: ['string', 'null'],
|
|
@@ -1075,7 +1072,7 @@ configurationRegistry.registerConfiguration({
|
|
|
1075
1072
|
},
|
|
1076
1073
|
[NotebookSetting.formatOnSave]: {
|
|
1077
1074
|
markdownDescription: ( localize(
|
|
1078
|
-
|
|
1075
|
+
8870,
|
|
1079
1076
|
"Format a notebook on save. A formatter must be available and the editor must not be shutting down. When {0} is set to `afterDelay`, the file will only be formatted when saved explicitly.",
|
|
1080
1077
|
'`#files.autoSave#`'
|
|
1081
1078
|
)),
|
|
@@ -1085,7 +1082,7 @@ configurationRegistry.registerConfiguration({
|
|
|
1085
1082
|
},
|
|
1086
1083
|
[NotebookSetting.insertFinalNewline]: {
|
|
1087
1084
|
markdownDescription: ( localize(
|
|
1088
|
-
|
|
1085
|
+
8871,
|
|
1089
1086
|
"When enabled, insert a final new line into the end of code cells when saving a notebook."
|
|
1090
1087
|
)),
|
|
1091
1088
|
type: 'boolean',
|
|
@@ -1094,7 +1091,7 @@ configurationRegistry.registerConfiguration({
|
|
|
1094
1091
|
},
|
|
1095
1092
|
[NotebookSetting.formatOnCellExecution]: {
|
|
1096
1093
|
markdownDescription: ( localize(
|
|
1097
|
-
|
|
1094
|
+
8872,
|
|
1098
1095
|
"Format a notebook cell upon execution. A formatter must be available."
|
|
1099
1096
|
)),
|
|
1100
1097
|
type: 'boolean',
|
|
@@ -1102,7 +1099,7 @@ configurationRegistry.registerConfiguration({
|
|
|
1102
1099
|
},
|
|
1103
1100
|
[NotebookSetting.confirmDeleteRunningCell]: {
|
|
1104
1101
|
markdownDescription: ( localize(
|
|
1105
|
-
|
|
1102
|
+
8873,
|
|
1106
1103
|
"Control whether a confirmation prompt is required to delete a running cell."
|
|
1107
1104
|
)),
|
|
1108
1105
|
type: 'boolean',
|
|
@@ -1110,7 +1107,7 @@ configurationRegistry.registerConfiguration({
|
|
|
1110
1107
|
},
|
|
1111
1108
|
[NotebookSetting.findFilters]: {
|
|
1112
1109
|
markdownDescription: ( localize(
|
|
1113
|
-
|
|
1110
|
+
8874,
|
|
1114
1111
|
"Customize the Find Widget behavior for searching within notebook cells. When both markup source and markup preview are enabled, the Find Widget will search either the source code or preview based on the current state of the cell."
|
|
1115
1112
|
)),
|
|
1116
1113
|
type: 'object',
|
|
@@ -1142,7 +1139,7 @@ configurationRegistry.registerConfiguration({
|
|
|
1142
1139
|
},
|
|
1143
1140
|
[NotebookSetting.remoteSaving]: {
|
|
1144
1141
|
markdownDescription: ( localize(
|
|
1145
|
-
|
|
1142
|
+
8875,
|
|
1146
1143
|
"Enables the incremental saving of notebooks between processes and across Remote connections. When enabled, only the changes to the notebook are sent to the extension host, improving performance for large notebooks and slow network connections."
|
|
1147
1144
|
)),
|
|
1148
1145
|
type: 'boolean',
|
|
@@ -1151,22 +1148,22 @@ configurationRegistry.registerConfiguration({
|
|
|
1151
1148
|
},
|
|
1152
1149
|
[NotebookSetting.scrollToRevealCell]: {
|
|
1153
1150
|
markdownDescription: ( localize(
|
|
1154
|
-
|
|
1151
|
+
8876,
|
|
1155
1152
|
"How far to scroll when revealing the next cell upon running {0}.",
|
|
1156
1153
|
'notebook.cell.executeAndSelectBelow'
|
|
1157
1154
|
)),
|
|
1158
1155
|
type: 'string',
|
|
1159
1156
|
enum: ['fullCell', 'firstLine', 'none'],
|
|
1160
1157
|
markdownEnumDescriptions: [
|
|
1161
|
-
( localize(
|
|
1162
|
-
( localize(
|
|
1163
|
-
( localize(
|
|
1158
|
+
( localize(8877, 'Scroll to fully reveal the next cell.')),
|
|
1159
|
+
( localize(8878, 'Scroll to reveal the first line of the next cell.')),
|
|
1160
|
+
( localize(8879, 'Do not scroll.')),
|
|
1164
1161
|
],
|
|
1165
1162
|
default: 'fullCell'
|
|
1166
1163
|
},
|
|
1167
1164
|
[NotebookSetting.cellGenerate]: {
|
|
1168
1165
|
markdownDescription: ( localize(
|
|
1169
|
-
|
|
1166
|
+
8880,
|
|
1170
1167
|
"Enable experimental generate action to create code cell with inline chat enabled."
|
|
1171
1168
|
)),
|
|
1172
1169
|
type: 'boolean',
|
|
@@ -1174,7 +1171,7 @@ configurationRegistry.registerConfiguration({
|
|
|
1174
1171
|
},
|
|
1175
1172
|
[NotebookSetting.notebookVariablesView]: {
|
|
1176
1173
|
markdownDescription: ( localize(
|
|
1177
|
-
|
|
1174
|
+
8881,
|
|
1178
1175
|
"Enable the experimental notebook variables view within the debug panel."
|
|
1179
1176
|
)),
|
|
1180
1177
|
type: 'boolean',
|
|
@@ -1182,32 +1179,32 @@ configurationRegistry.registerConfiguration({
|
|
|
1182
1179
|
},
|
|
1183
1180
|
[NotebookSetting.notebookInlineValues]: {
|
|
1184
1181
|
markdownDescription: ( localize(
|
|
1185
|
-
|
|
1182
|
+
8882,
|
|
1186
1183
|
"Control whether to show inline values within notebook code cells after cell execution. Values will remain until the cell is edited, re-executed, or explicitly cleared via the Clear All Outputs toolbar button or the `Notebook: Clear Inline Values` command."
|
|
1187
1184
|
)),
|
|
1188
1185
|
type: 'string',
|
|
1189
1186
|
enum: ['on', 'auto', 'off'],
|
|
1190
1187
|
enumDescriptions: [
|
|
1191
1188
|
( localize(
|
|
1192
|
-
|
|
1189
|
+
8883,
|
|
1193
1190
|
"Always show inline values, with a regex fallback if no inline value provider is registered. Note: There may be a performance impact in larger cells if the fallback is used."
|
|
1194
1191
|
)),
|
|
1195
1192
|
( localize(
|
|
1196
|
-
|
|
1193
|
+
8884,
|
|
1197
1194
|
"Show inline values only when an inline value provider is registered."
|
|
1198
1195
|
)),
|
|
1199
|
-
( localize(
|
|
1196
|
+
( localize(8885, "Never show inline values.")),
|
|
1200
1197
|
],
|
|
1201
1198
|
default: 'off'
|
|
1202
1199
|
},
|
|
1203
1200
|
[NotebookSetting.cellFailureDiagnostics]: {
|
|
1204
|
-
markdownDescription: ( localize(
|
|
1201
|
+
markdownDescription: ( localize(8886, "Show available diagnostics for cell failures.")),
|
|
1205
1202
|
type: 'boolean',
|
|
1206
1203
|
default: true
|
|
1207
1204
|
},
|
|
1208
1205
|
[NotebookSetting.outputBackupSizeLimit]: {
|
|
1209
1206
|
markdownDescription: ( localize(
|
|
1210
|
-
|
|
1207
|
+
8887,
|
|
1211
1208
|
"The limit of notebook output size in kilobytes (KB) where notebook files will no longer be backed up for hot reload. Use 0 for unlimited."
|
|
1212
1209
|
)),
|
|
1213
1210
|
type: 'number',
|
|
@@ -1215,7 +1212,7 @@ configurationRegistry.registerConfiguration({
|
|
|
1215
1212
|
},
|
|
1216
1213
|
[NotebookSetting.multiCursor]: {
|
|
1217
1214
|
markdownDescription: ( localize(
|
|
1218
|
-
|
|
1215
|
+
8888,
|
|
1219
1216
|
"Experimental. Enables a limited set of multi cursor controls across multiple cells in the notebook editor. Currently supported are core editor actions (typing/cut/copy/paste/composition) and a limited subset of editor commands."
|
|
1220
1217
|
)),
|
|
1221
1218
|
type: 'boolean',
|
|
@@ -1223,7 +1220,7 @@ configurationRegistry.registerConfiguration({
|
|
|
1223
1220
|
},
|
|
1224
1221
|
[NotebookSetting.markupFontFamily]: {
|
|
1225
1222
|
markdownDescription: ( localize(
|
|
1226
|
-
|
|
1223
|
+
8889,
|
|
1227
1224
|
"Controls the font family of rendered markup in notebooks. When left blank, this will fall back to the default workbench font family."
|
|
1228
1225
|
)),
|
|
1229
1226
|
type: 'string',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { NOTEBOOK_EDITOR_FOCUSED, IS_COMPOSITE_NOTEBOOK } from '@codingame/monaco-vscode-
|
|
2
|
+
import { NOTEBOOK_EDITOR_FOCUSED, IS_COMPOSITE_NOTEBOOK } from '@codingame/monaco-vscode-eda30bac-0984-5b42-9362-c68996b85232-common/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
3
3
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
4
4
|
import { AccessibleViewType, AccessibleContentProvider, AccessibleViewProviderId } from '@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/browser/accessibleView';
|
|
5
5
|
import { AccessibilityVerbositySettingId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration';
|
|
@@ -27,51 +27,51 @@ class NotebookAccessibilityHelp {
|
|
|
27
27
|
function getAccessibilityHelpText() {
|
|
28
28
|
return [
|
|
29
29
|
( localize(
|
|
30
|
-
|
|
30
|
+
8890,
|
|
31
31
|
'The notebook view is a collection of code and markdown cells. Code cells can be executed and will produce output directly below the cell.'
|
|
32
32
|
)),
|
|
33
33
|
( localize(
|
|
34
|
-
|
|
34
|
+
8891,
|
|
35
35
|
'The Edit Cell command{0} will focus on the cell input.',
|
|
36
36
|
'<keybinding:notebook.cell.edit>'
|
|
37
37
|
)),
|
|
38
38
|
( localize(
|
|
39
|
-
|
|
39
|
+
8892,
|
|
40
40
|
'The Quit Edit command{0} will set focus on the cell container. The default (Escape) key may need to be pressed twice first exit the virtual cursor if active.',
|
|
41
41
|
'<keybinding:notebook.cell.quitEdit>'
|
|
42
42
|
)),
|
|
43
43
|
( localize(
|
|
44
|
-
|
|
44
|
+
8893,
|
|
45
45
|
'The Focus Output command{0} will set focus in the cell\'s output.',
|
|
46
46
|
'<keybinding:notebook.cell.focusInOutput>'
|
|
47
47
|
)),
|
|
48
48
|
( localize(
|
|
49
|
-
|
|
49
|
+
8894,
|
|
50
50
|
'The Focus Next Cell Editor command{0} will set focus in the next cell\'s editor.',
|
|
51
51
|
'<keybinding:notebook.focusNextEditor>'
|
|
52
52
|
)),
|
|
53
53
|
( localize(
|
|
54
|
-
|
|
54
|
+
8895,
|
|
55
55
|
'The Focus Previous Cell Editor command{0} will set focus in the previous cell\'s editor.',
|
|
56
56
|
'<keybinding:notebook.focusPreviousEditor>'
|
|
57
57
|
)),
|
|
58
58
|
( localize(
|
|
59
|
-
|
|
59
|
+
8896,
|
|
60
60
|
'The up and down arrows will also move focus between cells while focused on the outer cell container.'
|
|
61
61
|
)),
|
|
62
62
|
( localize(
|
|
63
|
-
|
|
63
|
+
8897,
|
|
64
64
|
'The Execute Cell command{0} executes the cell that currently has focus.',
|
|
65
65
|
'<keybinding:notebook.cell.executeAndFocusContainer>'
|
|
66
66
|
)),
|
|
67
67
|
( localize(
|
|
68
|
-
|
|
68
|
+
8898,
|
|
69
69
|
'The Insert Cell Above{0} and Below{1} commands will create new empty code cells.',
|
|
70
70
|
'<keybinding:notebook.cell.insertCodeCellAbove>',
|
|
71
71
|
'<keybinding:notebook.cell.insertCodeCellBelow>'
|
|
72
72
|
)),
|
|
73
73
|
( localize(
|
|
74
|
-
|
|
74
|
+
8899,
|
|
75
75
|
'The Change Cell to Code/Markdown commands are used to switch between cell types.'
|
|
76
76
|
))
|
|
77
77
|
].join('\n');
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { AccessibleViewType, AccessibleContentProvider, AccessibleViewProviderId } from '@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/browser/accessibleView';
|
|
3
3
|
import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
4
4
|
import { AccessibilityVerbositySettingId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration';
|
|
5
|
-
import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-
|
|
6
|
-
import { NOTEBOOK_CELL_LIST_FOCUSED } from '@codingame/monaco-vscode-
|
|
5
|
+
import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-670aae94-7f88-54d7-90ea-6fcbef423557-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
6
|
+
import { NOTEBOOK_CELL_LIST_FOCUSED } from '@codingame/monaco-vscode-eda30bac-0984-5b42-9362-c68996b85232-common/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
7
7
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
8
8
|
import { InputFocusedContext } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkeys';
|
|
9
9
|
import { getAllOutputsText } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/viewModel/cellOutputTextHelper';
|