@codingame/monaco-vscode-notebook-service-override 11.1.2 → 12.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.d.ts +2 -1
- package/index.js +64 -1
- package/package.json +47 -15
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.d.ts +38 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +43 -41
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +109 -130
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticEditorContrib.d.ts +25 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticEditorContrib.js +13 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticsActions.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticsActions.js +72 -19
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.js +23 -17
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/contributedStatusBarItemController.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/contributedStatusBarItemController.js +4 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js +30 -28
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookSynchronizerService.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookSynchronizerService.js +76 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js +61 -58
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookBreakpoints.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookBreakpoints.js +5 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookCellPausing.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookCellPausing.js +4 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.d.ts +28 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.js +8 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorHint/emptyCellEditorHint.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorHint/emptyCellEditorHint.js +10 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js +52 -50
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/execute/executionEditorProgress.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/execute/executionEditorProgress.js +3 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/media/notebookFind.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.js +28 -28
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.js +51 -50
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.js +21 -18
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/kernelDetection/notebookKernelDetection.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/kernelDetection/notebookKernelDetection.js +4 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.js +3 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/marker/markerProvider.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/marker/markerProvider.js +6 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.d.ts +69 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.js +460 -382
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookSelectionHighlight.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookSelectionHighlight.js +124 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +87 -145
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableContextKeys.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableContextKeys.js +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.js +16 -15
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesDataSource.d.ts +38 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesDataSource.js +8 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.d.ts +34 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.js +9 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.d.ts +53 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.js +40 -36
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.d.ts +112 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +115 -116
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/profile/notebookProfile.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/profile/notebookProfile.js +4 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.d.ts +32 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.js +111 -117
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.js +11 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/undoRedo/notebookUndoRedo.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/undoRedo/notebookUndoRedo.js +5 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/viewportWarmup/viewportWarmup.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/viewportWarmup/viewportWarmup.js +7 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/apiActions.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/apiActions.js +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +113 -198
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +25 -23
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +115 -145
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +76 -147
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +45 -77
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +30 -35
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js +19 -18
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.d.ts +30 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.js +59 -52
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/variablesActions.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/variablesActions.js +11 -21
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +69 -113
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +194 -184
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.js +51 -51
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibleView.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibleView.js +14 -36
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.d.ts +48 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +57 -56
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookCellStatusBarServiceImpl.d.ts +16 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookCellStatusBarServiceImpl.js +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.d.ts +43 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.js +29 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.d.ts +30 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js +17 -16
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionStateServiceImpl.d.ts +46 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionStateServiceImpl.js +14 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.d.ts +25 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.js +21 -19
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelServiceImpl.d.ts +57 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelServiceImpl.js +7 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js +30 -26
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js +6 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookRendererMessagingServiceImpl.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookRendererMessagingServiceImpl.js +2 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.d.ts +134 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +164 -121
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookWorkerServiceImpl.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookWorkerServiceImpl.js +2 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js +37 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/model/cellEdit.d.ts +56 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/model/cellEdit.js +6 -3
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.d.ts +101 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.js +131 -55
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverServiceImpl.d.ts +29 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverServiceImpl.js +4 -3
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookOutputRenderer.d.ts +48 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookOutputRenderer.js +12 -10
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookProvider.d.ts +38 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookProvider.js +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookSimpleWorker.d.ts +50 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookSimpleWorker.js +75 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookSimpleWorkerMain.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookSimpleWorkerMain.js +2 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/abstractFileWorkingCopyManager.d.ts +31 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/abstractFileWorkingCopyManager.js +2 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.d.ts +78 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +45 -42
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.d.ts +96 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +57 -54
- package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopy.d.ts +74 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopy.js +6 -3
- package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopyManager.d.ts +53 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopyManager.js +2 -1
- package/worker.js +2 -1
- package/workers/notebook.worker.d.ts +1 -0
- package/notebook.js +0 -50
- package/workers/notebook.worker.js +0 -1
|
@@ -1,37 +1,41 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
3
4
|
import { Disposable, dispose, DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
5
|
import { parse } from 'vscode/vscode/vs/base/common/marshalling';
|
|
5
6
|
import { isEqual, extname } from 'vscode/vscode/vs/base/common/resources';
|
|
6
7
|
import { assertType } from 'vscode/vscode/vs/base/common/types';
|
|
7
8
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
8
|
-
import { toFormattedString } from 'vscode/vscode/vs/base/common/jsonFormatter';
|
|
9
|
+
import { toFormattedString } from '@codingame/monaco-vscode-56402b83-4a60-5b15-86f9-71fe99c32744-common/vscode/vs/base/common/jsonFormatter';
|
|
10
|
+
import { DefaultEndOfLine } from 'vscode/vscode/vs/editor/common/model';
|
|
9
11
|
import { IModelService } from 'vscode/vscode/vs/editor/common/services/model';
|
|
10
12
|
import { ILanguageService } from 'vscode/vscode/vs/editor/common/languages/language';
|
|
11
13
|
import { ITextModelService } from 'vscode/vscode/vs/editor/common/services/resolverService';
|
|
12
14
|
import { localize } from 'vscode/vscode/vs/nls';
|
|
13
15
|
import { Extensions as Extensions$2 } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
14
16
|
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
17
|
+
import 'vscode/vscode/vs/platform/instantiation/common/extensions';
|
|
15
18
|
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
19
|
+
import { LifecyclePhase } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
|
|
16
20
|
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
17
|
-
import { EditorPaneDescriptor } from 'vscode/vscode/vs/workbench/browser/editor';
|
|
18
|
-
import { Extensions as Extensions$1, registerWorkbenchContribution2 } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
21
|
+
import { EditorPaneDescriptor } from '@codingame/monaco-vscode-9e888134-1a6f-58d9-b0e6-0fc047448366-common/vscode/vs/workbench/browser/editor';
|
|
22
|
+
import { Extensions as Extensions$1, registerWorkbenchContribution2, WorkbenchPhase } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
19
23
|
import { EditorExtensions } from 'vscode/vscode/vs/workbench/common/editor';
|
|
20
|
-
import { NotebookEditor } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookEditor';
|
|
21
|
-
import { NotebookEditorInput } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookEditorInput';
|
|
24
|
+
import { NotebookEditor } from '@codingame/monaco-vscode-6f9bc782-77e0-5716-93bd-b05210c768c5-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditor';
|
|
25
|
+
import { NotebookEditorInput } from '@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/common/notebookEditorInput';
|
|
22
26
|
import { INotebookService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookService.service';
|
|
23
27
|
import './services/notebookServiceImpl.js';
|
|
24
28
|
import { NotebookSetting, CellUri, CellKind, NotebookCellsChangeType, NotebookMetadataUri, NotebookWorkingCopyTypeIdentifier } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
25
29
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
26
30
|
import { IUndoRedoService } from 'vscode/vscode/vs/platform/undoRedo/common/undoRedo.service';
|
|
27
31
|
import { INotebookEditorModelResolverService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookEditorModelResolverService.service';
|
|
28
|
-
import { NotebookDiffEditorInput } from '@codingame/monaco-vscode-
|
|
29
|
-
import { NotebookTextDiffEditor } from '@codingame/monaco-vscode-
|
|
32
|
+
import { NotebookDiffEditorInput } from '@codingame/monaco-vscode-e4d0fd26-1b26-5583-b3f7-582e08d7b389-common/vscode/vs/workbench/contrib/notebook/common/notebookDiffEditorInput';
|
|
33
|
+
import { NotebookTextDiffEditor } from '@codingame/monaco-vscode-e4d0fd26-1b26-5583-b3f7-582e08d7b389-common/vscode/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor';
|
|
30
34
|
import './services/notebookWorkerServiceImpl.js';
|
|
31
35
|
import { Event } from 'vscode/vscode/vs/base/common/event';
|
|
32
36
|
import './services/notebookEditorServiceImpl.js';
|
|
33
37
|
import { Extensions } from 'vscode/vscode/vs/platform/jsonschemas/common/jsonContributionRegistry';
|
|
34
|
-
import { getStreamOutputData, getFormattedOutputJSON } from '@codingame/monaco-vscode-
|
|
38
|
+
import { getStreamOutputData, getFormattedOutputJSON } from '@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common/vscode/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel';
|
|
35
39
|
import '../common/notebookEditorModelResolverServiceImpl.js';
|
|
36
40
|
import './services/notebookKernelServiceImpl.js';
|
|
37
41
|
import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
@@ -40,15 +44,16 @@ import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/c
|
|
|
40
44
|
import { ILabelService } from 'vscode/vscode/vs/platform/label/common/label.service';
|
|
41
45
|
import { IEditorGroupsService } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
42
46
|
import './services/notebookRendererMessagingServiceImpl.js';
|
|
43
|
-
import '@codingame/monaco-vscode-
|
|
47
|
+
import '@codingame/monaco-vscode-d6e33d82-c101-549d-a885-0807ab3e0cfb-common/vscode/vs/workbench/services/outline/browser/outline';
|
|
48
|
+
import '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
|
|
44
49
|
import './controller/insertCellActions.js';
|
|
45
50
|
import './controller/executeActions.js';
|
|
46
51
|
import './controller/sectionActions.js';
|
|
47
52
|
import './controller/layoutActions.js';
|
|
48
53
|
import './controller/editActions.js';
|
|
49
|
-
import '@codingame/monaco-vscode-
|
|
54
|
+
import '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/controller/cellOutputActions';
|
|
50
55
|
import './controller/apiActions.js';
|
|
51
|
-
import '@codingame/monaco-vscode-
|
|
56
|
+
import '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/controller/foldingController';
|
|
52
57
|
import './controller/chat/notebook.chat.contribution.js';
|
|
53
58
|
import './controller/variablesActions.js';
|
|
54
59
|
import './contrib/editorHint/emptyCellEditorHint.js';
|
|
@@ -64,7 +69,7 @@ import './contrib/outline/notebookOutline.js';
|
|
|
64
69
|
import './contrib/profile/notebookProfile.js';
|
|
65
70
|
import './contrib/cellStatusBar/statusBarProviders.js';
|
|
66
71
|
import './contrib/cellStatusBar/contributedStatusBarItemController.js';
|
|
67
|
-
import 'vscode/vscode/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController';
|
|
72
|
+
import '@codingame/monaco-vscode-1ae7d696-d960-5ac6-97a3-9fe7c8c3a793-common/vscode/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController';
|
|
68
73
|
import './contrib/editorStatusBar/editorStatusBar.js';
|
|
69
74
|
import './contrib/undoRedo/notebookUndoRedo.js';
|
|
70
75
|
import './contrib/cellCommands/cellCommands.js';
|
|
@@ -79,50 +84,41 @@ import './contrib/cellDiagnostics/cellDiagnosticEditorContrib.js';
|
|
|
79
84
|
import './contrib/cellDiagnostics/cellDiagnosticsActions.js';
|
|
80
85
|
import './contrib/cellDiagnostics/diagnosticCellStatusBarContrib.js';
|
|
81
86
|
import './contrib/multicursor/notebookMulticursor.js';
|
|
87
|
+
import './contrib/multicursor/notebookSelectionHighlight.js';
|
|
82
88
|
import './diff/notebookDiffActions.js';
|
|
89
|
+
import '@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common/vscode/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookChatEditController';
|
|
83
90
|
import { editorOptionsRegistry } from 'vscode/vscode/vs/editor/common/config/editorOptions';
|
|
84
91
|
import './services/notebookExecutionStateServiceImpl.js';
|
|
85
92
|
import './services/notebookExecutionServiceImpl.js';
|
|
86
93
|
import './services/notebookKeymapServiceImpl.js';
|
|
87
94
|
import { PLAINTEXT_LANGUAGE_ID } from 'vscode/vscode/vs/editor/common/languages/modesRegistry';
|
|
88
95
|
import { ILanguageFeaturesService } from 'vscode/vscode/vs/editor/common/services/languageFeatures';
|
|
89
|
-
import { COMMENTEDITOR_DECORATION_KEY } from '@codingame/monaco-vscode-
|
|
96
|
+
import { COMMENTEDITOR_DECORATION_KEY } from '@codingame/monaco-vscode-9ee79c1a-3f03-568b-8eac-b02513a98b68-common/vscode/vs/workbench/contrib/comments/browser/commentReply';
|
|
90
97
|
import { ICodeEditorService } from 'vscode/vscode/vs/editor/browser/services/codeEditorService';
|
|
91
98
|
import './services/notebookKernelHistoryServiceImpl.js';
|
|
92
99
|
import './services/notebookLoggingServiceImpl.js';
|
|
93
|
-
import product
|
|
100
|
+
import product from 'vscode/vscode/vs/platform/product/common/product';
|
|
94
101
|
import { NotebookVariables } from './contrib/notebookVariables/notebookVariables.js';
|
|
95
102
|
import { AccessibleViewRegistry } from 'vscode/vscode/vs/platform/accessibility/browser/accessibleViewRegistry';
|
|
96
103
|
import { NotebookAccessibilityHelp } from './notebookAccessibilityHelp.js';
|
|
97
104
|
import { NotebookAccessibleView } from './notebookAccessibleView.js';
|
|
98
105
|
import { DefaultFormatter } from 'vscode/vscode/vs/workbench/contrib/format/browser/formatActionsMultiple';
|
|
99
|
-
import { NotebookMultiTextDiffEditor } from '@codingame/monaco-vscode-
|
|
100
|
-
import { NotebookMultiDiffEditorInput } from '@codingame/monaco-vscode-
|
|
101
|
-
import { getFormattedMetadataJSON } from '@codingame/monaco-vscode-
|
|
102
|
-
import '
|
|
103
|
-
import 'vscode/vscode/vs/
|
|
104
|
-
import '
|
|
105
|
-
import 'vscode/vscode/vs/base/browser/dom';
|
|
106
|
-
import 'vscode/vscode/vs/base/browser/dompurify/dompurify';
|
|
107
|
-
import 'vscode/vscode/vs/base/browser/browser';
|
|
108
|
-
import 'vscode/vscode/vs/base/common/keyCodes';
|
|
109
|
-
import 'vscode/vscode/vs/base/common/platform';
|
|
110
|
-
import 'vscode/vscode/vs/editor/contrib/documentSymbols/browser/outlineModel';
|
|
111
|
-
import 'vscode/vscode/vs/base/common/codicons';
|
|
112
|
-
import 'vscode/vscode/vs/platform/markers/common/markers';
|
|
113
|
-
import '@codingame/monaco-vscode-chat-interactive-notebook-search-common/vscode/vs/workbench/contrib/notebook/browser/notebookIcons';
|
|
114
|
-
import 'vscode/vscode/vs/editor/common/languages';
|
|
115
|
-
import { getFormattedNotebookMetadataJSON } from '@codingame/monaco-vscode-chat-notebook-common/vscode/vs/workbench/contrib/notebook/common/model/notebookMetadataTextModel';
|
|
106
|
+
import { NotebookMultiTextDiffEditor } from '@codingame/monaco-vscode-e4d0fd26-1b26-5583-b3f7-582e08d7b389-common/vscode/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor';
|
|
107
|
+
import { NotebookMultiDiffEditorInput } from '@codingame/monaco-vscode-e4d0fd26-1b26-5583-b3f7-582e08d7b389-common/vscode/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditorInput';
|
|
108
|
+
import { getFormattedMetadataJSON } from '@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common/vscode/vs/workbench/contrib/notebook/common/model/notebookCellTextModel';
|
|
109
|
+
import './viewModel/notebookOutlineEntryFactory.js';
|
|
110
|
+
import { getFormattedNotebookMetadataJSON } from '@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common/vscode/vs/workbench/contrib/notebook/common/model/notebookMetadataTextModel';
|
|
111
|
+
import './contrib/chatEdit/notebookSynchronizerService.js';
|
|
116
112
|
|
|
117
113
|
var NotebookContribution_1;
|
|
118
|
-
(
|
|
119
|
-
(
|
|
114
|
+
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(NotebookEditor, NotebookEditor.ID, 'Notebook Editor'), [
|
|
115
|
+
( new SyncDescriptor(NotebookEditorInput))
|
|
120
116
|
]);
|
|
121
|
-
(
|
|
122
|
-
(
|
|
117
|
+
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(NotebookTextDiffEditor, NotebookTextDiffEditor.ID, 'Notebook Diff Editor'), [
|
|
118
|
+
( new SyncDescriptor(NotebookDiffEditorInput))
|
|
123
119
|
]);
|
|
124
|
-
(
|
|
125
|
-
(
|
|
120
|
+
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(NotebookMultiTextDiffEditor, NotebookMultiTextDiffEditor.ID, 'Notebook Diff Editor'), [
|
|
121
|
+
( new SyncDescriptor(NotebookMultiDiffEditorInput))
|
|
126
122
|
]);
|
|
127
123
|
let NotebookDiffEditorSerializer = class NotebookDiffEditorSerializer {
|
|
128
124
|
constructor(_configurationService) {
|
|
@@ -162,9 +158,9 @@ let NotebookDiffEditorSerializer = class NotebookDiffEditorSerializer {
|
|
|
162
158
|
return false;
|
|
163
159
|
}
|
|
164
160
|
};
|
|
165
|
-
NotebookDiffEditorSerializer = (
|
|
166
|
-
(
|
|
167
|
-
], NotebookDiffEditorSerializer))
|
|
161
|
+
NotebookDiffEditorSerializer = ( __decorate([
|
|
162
|
+
( __param(0, IConfigurationService))
|
|
163
|
+
], NotebookDiffEditorSerializer));
|
|
168
164
|
class NotebookEditorSerializer {
|
|
169
165
|
canSerialize(input) {
|
|
170
166
|
return input.typeId === NotebookEditorInput.ID;
|
|
@@ -192,8 +188,8 @@ class NotebookEditorSerializer {
|
|
|
192
188
|
return input;
|
|
193
189
|
}
|
|
194
190
|
}
|
|
195
|
-
(
|
|
196
|
-
(
|
|
191
|
+
( Registry.as(EditorExtensions.EditorFactory)).registerEditorSerializer(NotebookEditorInput.ID, NotebookEditorSerializer);
|
|
192
|
+
( Registry.as(EditorExtensions.EditorFactory)).registerEditorSerializer(NotebookDiffEditorInput.ID, NotebookDiffEditorSerializer);
|
|
197
193
|
let NotebookContribution = class NotebookContribution extends Disposable {
|
|
198
194
|
static { NotebookContribution_1 = this; }
|
|
199
195
|
static { this.ID = 'workbench.contrib.notebook'; }
|
|
@@ -215,9 +211,7 @@ let NotebookContribution = class NotebookContribution extends Disposable {
|
|
|
215
211
|
this._uriComparisonKeyComputer = undoRedoService.registerUriComparisonKeyComputer(CellUri.scheme, {
|
|
216
212
|
getComparisonKey: (uri) => {
|
|
217
213
|
if (undoRedoPerCell) {
|
|
218
|
-
return (
|
|
219
|
-
(uri.toString())
|
|
220
|
-
);
|
|
214
|
+
return ( uri.toString());
|
|
221
215
|
}
|
|
222
216
|
return NotebookContribution_1._getCellUndoRedoComparisonKey(uri);
|
|
223
217
|
}
|
|
@@ -232,24 +226,20 @@ let NotebookContribution = class NotebookContribution extends Disposable {
|
|
|
232
226
|
static _getCellUndoRedoComparisonKey(uri) {
|
|
233
227
|
const data = CellUri.parse(uri);
|
|
234
228
|
if (!data) {
|
|
235
|
-
return (
|
|
236
|
-
(uri.toString())
|
|
237
|
-
);
|
|
229
|
+
return ( uri.toString());
|
|
238
230
|
}
|
|
239
|
-
return (
|
|
240
|
-
(data.notebook.toString())
|
|
241
|
-
);
|
|
231
|
+
return ( data.notebook.toString());
|
|
242
232
|
}
|
|
243
233
|
dispose() {
|
|
244
234
|
super.dispose();
|
|
245
235
|
this._uriComparisonKeyComputer?.dispose();
|
|
246
236
|
}
|
|
247
237
|
};
|
|
248
|
-
NotebookContribution = NotebookContribution_1 = (
|
|
249
|
-
(
|
|
250
|
-
(
|
|
251
|
-
(
|
|
252
|
-
], NotebookContribution))
|
|
238
|
+
NotebookContribution = NotebookContribution_1 = ( __decorate([
|
|
239
|
+
( __param(0, IUndoRedoService)),
|
|
240
|
+
( __param(1, IConfigurationService)),
|
|
241
|
+
( __param(2, ICodeEditorService))
|
|
242
|
+
], NotebookContribution));
|
|
253
243
|
let CellContentProvider = class CellContentProvider {
|
|
254
244
|
static { this.ID = 'workbench.contrib.cellContentProvider'; }
|
|
255
245
|
constructor(textModelService, _modelService, _languageService, _notebookModelResolverService) {
|
|
@@ -276,10 +266,10 @@ let CellContentProvider = class CellContentProvider {
|
|
|
276
266
|
return null;
|
|
277
267
|
}
|
|
278
268
|
for (const cell of ref.object.notebook.cells) {
|
|
279
|
-
if ((
|
|
269
|
+
if (( cell.uri.toString()) === ( resource.toString())) {
|
|
280
270
|
const bufferFactory = {
|
|
281
271
|
create: (defaultEOL) => {
|
|
282
|
-
const newEOL = (defaultEOL ===
|
|
272
|
+
const newEOL = (defaultEOL === DefaultEndOfLine.CRLF ? '\r\n' : '\n');
|
|
283
273
|
cell.textBuffer.setEOL(newEOL);
|
|
284
274
|
return { textBuffer: cell.textBuffer, disposable: Disposable.None };
|
|
285
275
|
},
|
|
@@ -304,12 +294,12 @@ let CellContentProvider = class CellContentProvider {
|
|
|
304
294
|
return result;
|
|
305
295
|
}
|
|
306
296
|
};
|
|
307
|
-
CellContentProvider = (
|
|
308
|
-
(
|
|
309
|
-
(
|
|
310
|
-
(
|
|
311
|
-
(
|
|
312
|
-
], CellContentProvider))
|
|
297
|
+
CellContentProvider = ( __decorate([
|
|
298
|
+
( __param(0, ITextModelService)),
|
|
299
|
+
( __param(1, IModelService)),
|
|
300
|
+
( __param(2, ILanguageService)),
|
|
301
|
+
( __param(3, INotebookEditorModelResolverService))
|
|
302
|
+
], CellContentProvider));
|
|
313
303
|
let CellInfoContentProvider = class CellInfoContentProvider {
|
|
314
304
|
static { this.ID = 'workbench.contrib.cellInfoContentProvider'; }
|
|
315
305
|
constructor(textModelService, _modelService, _languageService, _labelService, _notebookModelResolverService) {
|
|
@@ -354,16 +344,16 @@ let CellInfoContentProvider = class CellInfoContentProvider {
|
|
|
354
344
|
const ref = await this._notebookModelResolverService.resolve(data.notebook);
|
|
355
345
|
let result = null;
|
|
356
346
|
const mode = this._languageService.createById('json');
|
|
357
|
-
const disposables = (
|
|
347
|
+
const disposables = ( new DisposableStore());
|
|
358
348
|
for (const cell of ref.object.notebook.cells) {
|
|
359
349
|
if (cell.handle === data.handle) {
|
|
360
350
|
const cellIndex = ref.object.notebook.cells.indexOf(cell);
|
|
361
351
|
const metadataSource = getFormattedMetadataJSON(ref.object.notebook.transientOptions.transientCellMetadata, cell.metadata, cell.language);
|
|
362
352
|
result = this._modelService.createModel(metadataSource, mode, resource);
|
|
363
353
|
this._disposables.push(disposables.add(ref.object.notebook.onDidChangeContent(e => {
|
|
364
|
-
if (result && (
|
|
354
|
+
if (result && ( e.rawEvents.some(
|
|
365
355
|
event => (event.kind === NotebookCellsChangeType.ChangeCellMetadata || event.kind === NotebookCellsChangeType.ChangeCellLanguage) && event.index === cellIndex
|
|
366
|
-
)))
|
|
356
|
+
))) {
|
|
367
357
|
const value = getFormattedMetadataJSON(ref.object.notebook.transientOptions.transientCellMetadata, cell.metadata, cell.language);
|
|
368
358
|
if (result.getValue() !== value) {
|
|
369
359
|
result.setValue(getFormattedMetadataJSON(ref.object.notebook.transientOptions.transientCellMetadata, cell.metadata, cell.language));
|
|
@@ -406,13 +396,13 @@ let CellInfoContentProvider = class CellInfoContentProvider {
|
|
|
406
396
|
result = streamOutputData;
|
|
407
397
|
return result;
|
|
408
398
|
}
|
|
409
|
-
const obj = (
|
|
399
|
+
const obj = ( cell.outputs.map(output => ({
|
|
410
400
|
metadata: output.metadata,
|
|
411
|
-
outputItems: (
|
|
401
|
+
outputItems: ( output.outputs.map(opit => ({
|
|
412
402
|
mimeType: opit.mime,
|
|
413
|
-
data: (
|
|
414
|
-
})))
|
|
415
|
-
})))
|
|
403
|
+
data: ( opit.data.toString())
|
|
404
|
+
})))
|
|
405
|
+
})));
|
|
416
406
|
const outputSource = toFormattedString(obj, {});
|
|
417
407
|
result = {
|
|
418
408
|
content: outputSource,
|
|
@@ -484,13 +474,13 @@ let CellInfoContentProvider = class CellInfoContentProvider {
|
|
|
484
474
|
return model;
|
|
485
475
|
}
|
|
486
476
|
};
|
|
487
|
-
CellInfoContentProvider = (
|
|
488
|
-
(
|
|
489
|
-
(
|
|
490
|
-
(
|
|
491
|
-
(
|
|
492
|
-
(
|
|
493
|
-
], CellInfoContentProvider))
|
|
477
|
+
CellInfoContentProvider = ( __decorate([
|
|
478
|
+
( __param(0, ITextModelService)),
|
|
479
|
+
( __param(1, IModelService)),
|
|
480
|
+
( __param(2, ILanguageService)),
|
|
481
|
+
( __param(3, ILabelService)),
|
|
482
|
+
( __param(4, INotebookEditorModelResolverService))
|
|
483
|
+
], CellInfoContentProvider));
|
|
494
484
|
let NotebookMetadataContentProvider = class NotebookMetadataContentProvider {
|
|
495
485
|
static { this.ID = 'workbench.contrib.notebookMetadataContentProvider'; }
|
|
496
486
|
constructor(textModelService, _modelService, _languageService, _labelService, _notebookModelResolverService) {
|
|
@@ -525,7 +515,7 @@ let NotebookMetadataContentProvider = class NotebookMetadataContentProvider {
|
|
|
525
515
|
const ref = await this._notebookModelResolverService.resolve(data);
|
|
526
516
|
let result = null;
|
|
527
517
|
const mode = this._languageService.createById('json');
|
|
528
|
-
const disposables = (
|
|
518
|
+
const disposables = ( new DisposableStore());
|
|
529
519
|
const metadataSource = getFormattedNotebookMetadataJSON(ref.object.notebook.transientOptions.transientDocumentMetadata, ref.object.notebook.metadata);
|
|
530
520
|
result = this._modelService.createModel(metadataSource, mode, resource);
|
|
531
521
|
if (!result) {
|
|
@@ -533,9 +523,9 @@ let NotebookMetadataContentProvider = class NotebookMetadataContentProvider {
|
|
|
533
523
|
return null;
|
|
534
524
|
}
|
|
535
525
|
this._disposables.push(disposables.add(ref.object.notebook.onDidChangeContent(e => {
|
|
536
|
-
if (result && (
|
|
526
|
+
if (result && ( e.rawEvents.some(
|
|
537
527
|
event => (event.kind === NotebookCellsChangeType.ChangeCellContent || event.kind === NotebookCellsChangeType.ChangeDocumentMetadata || event.kind === NotebookCellsChangeType.ModelChange)
|
|
538
|
-
)))
|
|
528
|
+
))) {
|
|
539
529
|
const value = getFormattedNotebookMetadataJSON(ref.object.notebook.transientOptions.transientDocumentMetadata, ref.object.notebook.metadata);
|
|
540
530
|
if (result.getValue() !== value) {
|
|
541
531
|
result.setValue(value);
|
|
@@ -550,13 +540,13 @@ let NotebookMetadataContentProvider = class NotebookMetadataContentProvider {
|
|
|
550
540
|
return result;
|
|
551
541
|
}
|
|
552
542
|
};
|
|
553
|
-
NotebookMetadataContentProvider = (
|
|
554
|
-
(
|
|
555
|
-
(
|
|
556
|
-
(
|
|
557
|
-
(
|
|
558
|
-
(
|
|
559
|
-
], NotebookMetadataContentProvider))
|
|
543
|
+
NotebookMetadataContentProvider = ( __decorate([
|
|
544
|
+
( __param(0, ITextModelService)),
|
|
545
|
+
( __param(1, IModelService)),
|
|
546
|
+
( __param(2, ILanguageService)),
|
|
547
|
+
( __param(3, ILabelService)),
|
|
548
|
+
( __param(4, INotebookEditorModelResolverService))
|
|
549
|
+
], NotebookMetadataContentProvider));
|
|
560
550
|
class RegisterSchemasContribution extends Disposable {
|
|
561
551
|
static { this.ID = 'workbench.contrib.registerCellSchemas'; }
|
|
562
552
|
constructor() {
|
|
@@ -564,7 +554,7 @@ class RegisterSchemasContribution extends Disposable {
|
|
|
564
554
|
this.registerMetadataSchemas();
|
|
565
555
|
}
|
|
566
556
|
registerMetadataSchemas() {
|
|
567
|
-
const jsonRegistry = (
|
|
557
|
+
const jsonRegistry = ( Registry.as(Extensions.JSONContribution));
|
|
568
558
|
const metadataSchema = {
|
|
569
559
|
properties: {
|
|
570
560
|
['language']: {
|
|
@@ -584,7 +574,7 @@ let NotebookEditorManager = class NotebookEditorManager {
|
|
|
584
574
|
constructor(_editorService, _notebookEditorModelService, editorGroups) {
|
|
585
575
|
this._editorService = _editorService;
|
|
586
576
|
this._notebookEditorModelService = _notebookEditorModelService;
|
|
587
|
-
this._disposables = (
|
|
577
|
+
this._disposables = ( new DisposableStore());
|
|
588
578
|
this._disposables.add(Event.debounce(this._notebookEditorModelService.onDidChangeDirty, (last, current) => !last ? [current] : [...last, current], 100)(this._openMissingDirtyNotebookEditors, this));
|
|
589
579
|
this._disposables.add(_notebookEditorModelService.onWillFailWithConflict(e => {
|
|
590
580
|
for (const group of editorGroups.groups) {
|
|
@@ -612,11 +602,11 @@ let NotebookEditorManager = class NotebookEditorManager {
|
|
|
612
602
|
}
|
|
613
603
|
}
|
|
614
604
|
};
|
|
615
|
-
NotebookEditorManager = (
|
|
616
|
-
(
|
|
617
|
-
(
|
|
618
|
-
(
|
|
619
|
-
], NotebookEditorManager))
|
|
605
|
+
NotebookEditorManager = ( __decorate([
|
|
606
|
+
( __param(0, IEditorService)),
|
|
607
|
+
( __param(1, INotebookEditorModelResolverService)),
|
|
608
|
+
( __param(2, IEditorGroupsService))
|
|
609
|
+
], NotebookEditorManager));
|
|
620
610
|
let SimpleNotebookWorkingCopyEditorHandler = class SimpleNotebookWorkingCopyEditorHandler extends Disposable {
|
|
621
611
|
static { this.ID = 'workbench.contrib.simpleNotebookWorkingCopyEditorHandler'; }
|
|
622
612
|
constructor(_instantiationService, _workingCopyEditorService, _extensionService, _notebookService) {
|
|
@@ -662,12 +652,12 @@ let SimpleNotebookWorkingCopyEditorHandler = class SimpleNotebookWorkingCopyEdit
|
|
|
662
652
|
return undefined;
|
|
663
653
|
}
|
|
664
654
|
};
|
|
665
|
-
SimpleNotebookWorkingCopyEditorHandler = (
|
|
666
|
-
(
|
|
667
|
-
(
|
|
668
|
-
(
|
|
669
|
-
(
|
|
670
|
-
], SimpleNotebookWorkingCopyEditorHandler))
|
|
655
|
+
SimpleNotebookWorkingCopyEditorHandler = ( __decorate([
|
|
656
|
+
( __param(0, IInstantiationService)),
|
|
657
|
+
( __param(1, IWorkingCopyEditorService)),
|
|
658
|
+
( __param(2, IExtensionService)),
|
|
659
|
+
( __param(3, INotebookService))
|
|
660
|
+
], SimpleNotebookWorkingCopyEditorHandler));
|
|
671
661
|
let NotebookLanguageSelectorScoreRefine = class NotebookLanguageSelectorScoreRefine {
|
|
672
662
|
static { this.ID = 'workbench.contrib.notebookLanguageSelectorScoreRefine'; }
|
|
673
663
|
constructor(_notebookService, languageFeaturesService) {
|
|
@@ -689,22 +679,22 @@ let NotebookLanguageSelectorScoreRefine = class NotebookLanguageSelectorScoreRef
|
|
|
689
679
|
};
|
|
690
680
|
}
|
|
691
681
|
};
|
|
692
|
-
NotebookLanguageSelectorScoreRefine = (
|
|
693
|
-
(
|
|
694
|
-
(
|
|
695
|
-
], NotebookLanguageSelectorScoreRefine))
|
|
696
|
-
const workbenchContributionsRegistry = (
|
|
697
|
-
registerWorkbenchContribution2(NotebookContribution.ID, NotebookContribution,
|
|
698
|
-
registerWorkbenchContribution2(CellContentProvider.ID, CellContentProvider,
|
|
699
|
-
registerWorkbenchContribution2(CellInfoContentProvider.ID, CellInfoContentProvider,
|
|
700
|
-
registerWorkbenchContribution2(NotebookMetadataContentProvider.ID, NotebookMetadataContentProvider,
|
|
701
|
-
registerWorkbenchContribution2(RegisterSchemasContribution.ID, RegisterSchemasContribution,
|
|
702
|
-
registerWorkbenchContribution2(NotebookEditorManager.ID, NotebookEditorManager,
|
|
703
|
-
registerWorkbenchContribution2(NotebookLanguageSelectorScoreRefine.ID, NotebookLanguageSelectorScoreRefine,
|
|
704
|
-
registerWorkbenchContribution2(SimpleNotebookWorkingCopyEditorHandler.ID, SimpleNotebookWorkingCopyEditorHandler,
|
|
705
|
-
workbenchContributionsRegistry.registerWorkbenchContribution(NotebookVariables,
|
|
706
|
-
AccessibleViewRegistry.register((
|
|
707
|
-
AccessibleViewRegistry.register((
|
|
682
|
+
NotebookLanguageSelectorScoreRefine = ( __decorate([
|
|
683
|
+
( __param(0, INotebookService)),
|
|
684
|
+
( __param(1, ILanguageFeaturesService))
|
|
685
|
+
], NotebookLanguageSelectorScoreRefine));
|
|
686
|
+
const workbenchContributionsRegistry = ( Registry.as(Extensions$1.Workbench));
|
|
687
|
+
registerWorkbenchContribution2(NotebookContribution.ID, NotebookContribution, WorkbenchPhase.BlockStartup);
|
|
688
|
+
registerWorkbenchContribution2(CellContentProvider.ID, CellContentProvider, WorkbenchPhase.BlockStartup);
|
|
689
|
+
registerWorkbenchContribution2(CellInfoContentProvider.ID, CellInfoContentProvider, WorkbenchPhase.BlockStartup);
|
|
690
|
+
registerWorkbenchContribution2(NotebookMetadataContentProvider.ID, NotebookMetadataContentProvider, WorkbenchPhase.BlockStartup);
|
|
691
|
+
registerWorkbenchContribution2(RegisterSchemasContribution.ID, RegisterSchemasContribution, WorkbenchPhase.BlockStartup);
|
|
692
|
+
registerWorkbenchContribution2(NotebookEditorManager.ID, NotebookEditorManager, WorkbenchPhase.BlockRestore);
|
|
693
|
+
registerWorkbenchContribution2(NotebookLanguageSelectorScoreRefine.ID, NotebookLanguageSelectorScoreRefine, WorkbenchPhase.BlockRestore);
|
|
694
|
+
registerWorkbenchContribution2(SimpleNotebookWorkingCopyEditorHandler.ID, SimpleNotebookWorkingCopyEditorHandler, WorkbenchPhase.BlockRestore);
|
|
695
|
+
workbenchContributionsRegistry.registerWorkbenchContribution(NotebookVariables, LifecyclePhase.Eventually);
|
|
696
|
+
AccessibleViewRegistry.register(( new NotebookAccessibleView()));
|
|
697
|
+
AccessibleViewRegistry.register(( new NotebookAccessibilityHelp()));
|
|
708
698
|
const schemas = {};
|
|
709
699
|
function isConfigurationPropertySchema(x) {
|
|
710
700
|
return (typeof x.type !== 'undefined' || typeof x.anyOf !== 'undefined');
|
|
@@ -726,7 +716,7 @@ for (const editorOption of editorOptionsRegistry) {
|
|
|
726
716
|
}
|
|
727
717
|
const editorOptionsCustomizationSchema = {
|
|
728
718
|
description: ( localize(
|
|
729
|
-
|
|
719
|
+
7574,
|
|
730
720
|
'Settings for code editors used in notebooks. This can be used to customize most editor.* settings.'
|
|
731
721
|
)),
|
|
732
722
|
default: {},
|
|
@@ -737,15 +727,15 @@ const editorOptionsCustomizationSchema = {
|
|
|
737
727
|
],
|
|
738
728
|
tags: ['notebookLayout']
|
|
739
729
|
};
|
|
740
|
-
const configurationRegistry = (
|
|
730
|
+
const configurationRegistry = ( Registry.as(Extensions$2.Configuration));
|
|
741
731
|
configurationRegistry.registerConfiguration({
|
|
742
732
|
id: 'notebook',
|
|
743
733
|
order: 100,
|
|
744
|
-
title: ( localize(
|
|
734
|
+
title: ( localize(7575, "Notebook")),
|
|
745
735
|
type: 'object',
|
|
746
736
|
properties: {
|
|
747
737
|
[NotebookSetting.displayOrder]: {
|
|
748
|
-
description: ( localize(
|
|
738
|
+
description: ( localize(7576, "Priority list for output mime types")),
|
|
749
739
|
type: 'array',
|
|
750
740
|
items: {
|
|
751
741
|
type: 'string'
|
|
@@ -754,12 +744,12 @@ configurationRegistry.registerConfiguration({
|
|
|
754
744
|
},
|
|
755
745
|
[NotebookSetting.cellToolbarLocation]: {
|
|
756
746
|
description: ( localize(
|
|
757
|
-
|
|
747
|
+
7577,
|
|
758
748
|
"Where the cell toolbar should be shown, or whether it should be hidden."
|
|
759
749
|
)),
|
|
760
750
|
type: 'object',
|
|
761
751
|
additionalProperties: {
|
|
762
|
-
markdownDescription: ( localize(
|
|
752
|
+
markdownDescription: ( localize(7578, "Configure the cell toolbar position for for specific file types")),
|
|
763
753
|
type: 'string',
|
|
764
754
|
enum: ['left', 'right', 'hidden']
|
|
765
755
|
},
|
|
@@ -769,29 +759,49 @@ configurationRegistry.registerConfiguration({
|
|
|
769
759
|
tags: ['notebookLayout']
|
|
770
760
|
},
|
|
771
761
|
[NotebookSetting.showCellStatusBar]: {
|
|
772
|
-
description: ( localize(
|
|
762
|
+
description: ( localize(7579, "Whether the cell status bar should be shown.")),
|
|
773
763
|
type: 'string',
|
|
774
764
|
enum: ['hidden', 'visible', 'visibleAfterExecute'],
|
|
775
765
|
enumDescriptions: [
|
|
776
|
-
( localize(
|
|
777
|
-
( localize(
|
|
766
|
+
( localize(7580, "The cell Status bar is always hidden.")),
|
|
767
|
+
( localize(7581, "The cell Status bar is always visible.")),
|
|
778
768
|
( localize(
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
769
|
+
7582,
|
|
770
|
+
"The cell Status bar is hidden until the cell has executed. Then it becomes visible to show the execution status."
|
|
771
|
+
))
|
|
782
772
|
],
|
|
783
773
|
default: 'visible',
|
|
784
774
|
tags: ['notebookLayout']
|
|
785
775
|
},
|
|
776
|
+
[NotebookSetting.cellExecutionTimeVerbosity]: {
|
|
777
|
+
description: ( localize(
|
|
778
|
+
7583,
|
|
779
|
+
"Controls the verbosity of the cell execution time in the cell status bar."
|
|
780
|
+
)),
|
|
781
|
+
type: 'string',
|
|
782
|
+
enum: ['default', 'verbose'],
|
|
783
|
+
enumDescriptions: [
|
|
784
|
+
( localize(
|
|
785
|
+
7584,
|
|
786
|
+
"The cell execution duration is visible, with advanced information in the hover tooltip."
|
|
787
|
+
)),
|
|
788
|
+
( localize(
|
|
789
|
+
7585,
|
|
790
|
+
"The cell last execution timestamp and duration are visible, with advanced information in the hover tooltip."
|
|
791
|
+
))
|
|
792
|
+
],
|
|
793
|
+
default: 'default',
|
|
794
|
+
tags: ['notebookLayout']
|
|
795
|
+
},
|
|
786
796
|
[NotebookSetting.textDiffEditorPreview]: {
|
|
787
|
-
description: ( localize(
|
|
797
|
+
description: ( localize(7586, "Whether to use the enhanced text diff editor for notebook.")),
|
|
788
798
|
type: 'boolean',
|
|
789
799
|
default: true,
|
|
790
800
|
tags: ['notebookLayout']
|
|
791
801
|
},
|
|
792
802
|
[NotebookSetting.diffOverviewRuler]: {
|
|
793
803
|
description: ( localize(
|
|
794
|
-
|
|
804
|
+
7587,
|
|
795
805
|
"Whether to render the overview ruler in the diff editor for notebook."
|
|
796
806
|
)),
|
|
797
807
|
type: 'boolean',
|
|
@@ -799,21 +809,21 @@ configurationRegistry.registerConfiguration({
|
|
|
799
809
|
tags: ['notebookLayout']
|
|
800
810
|
},
|
|
801
811
|
[NotebookSetting.cellToolbarVisibility]: {
|
|
802
|
-
markdownDescription: ( localize(
|
|
812
|
+
markdownDescription: ( localize(7588, "Whether the cell toolbar should appear on hover or click.")),
|
|
803
813
|
type: 'string',
|
|
804
814
|
enum: ['hover', 'click'],
|
|
805
815
|
default: 'click',
|
|
806
816
|
tags: ['notebookLayout']
|
|
807
817
|
},
|
|
808
818
|
[NotebookSetting.undoRedoPerCell]: {
|
|
809
|
-
description: ( localize(
|
|
819
|
+
description: ( localize(7589, "Whether to use separate undo/redo stack for each cell.")),
|
|
810
820
|
type: 'boolean',
|
|
811
821
|
default: true,
|
|
812
822
|
tags: ['notebookLayout']
|
|
813
823
|
},
|
|
814
824
|
[NotebookSetting.compactView]: {
|
|
815
825
|
description: ( localize(
|
|
816
|
-
|
|
826
|
+
7590,
|
|
817
827
|
"Control whether the notebook editor should be rendered in a compact form. For example, when turned on, it will decrease the left margin width."
|
|
818
828
|
)),
|
|
819
829
|
type: 'boolean',
|
|
@@ -822,7 +832,7 @@ configurationRegistry.registerConfiguration({
|
|
|
822
832
|
},
|
|
823
833
|
[NotebookSetting.focusIndicator]: {
|
|
824
834
|
description: ( localize(
|
|
825
|
-
|
|
835
|
+
7591,
|
|
826
836
|
"Controls where the focus indicator is rendered, either along the cell borders or on the left gutter."
|
|
827
837
|
)),
|
|
828
838
|
type: 'string',
|
|
@@ -831,21 +841,21 @@ configurationRegistry.registerConfiguration({
|
|
|
831
841
|
tags: ['notebookLayout']
|
|
832
842
|
},
|
|
833
843
|
[NotebookSetting.insertToolbarLocation]: {
|
|
834
|
-
description: ( localize(
|
|
844
|
+
description: ( localize(7592, "Control where the insert cell actions should appear.")),
|
|
835
845
|
type: 'string',
|
|
836
846
|
enum: ['betweenCells', 'notebookToolbar', 'both', 'hidden'],
|
|
837
847
|
enumDescriptions: [
|
|
838
|
-
( localize(
|
|
839
|
-
( localize(
|
|
840
|
-
( localize(
|
|
841
|
-
( localize(
|
|
848
|
+
( localize(7593, "A toolbar that appears on hover between cells.")),
|
|
849
|
+
( localize(7594, "The toolbar at the top of the notebook editor.")),
|
|
850
|
+
( localize(7595, "Both toolbars.")),
|
|
851
|
+
( localize(7596, "The insert actions don't appear anywhere.")),
|
|
842
852
|
],
|
|
843
853
|
default: 'both',
|
|
844
854
|
tags: ['notebookLayout']
|
|
845
855
|
},
|
|
846
856
|
[NotebookSetting.globalToolbar]: {
|
|
847
857
|
description: ( localize(
|
|
848
|
-
|
|
858
|
+
7597,
|
|
849
859
|
"Control whether to render a global toolbar inside the notebook editor."
|
|
850
860
|
)),
|
|
851
861
|
type: 'boolean',
|
|
@@ -854,7 +864,7 @@ configurationRegistry.registerConfiguration({
|
|
|
854
864
|
},
|
|
855
865
|
[NotebookSetting.stickyScrollEnabled]: {
|
|
856
866
|
description: ( localize(
|
|
857
|
-
|
|
867
|
+
7598,
|
|
858
868
|
"Experimental. Control whether to render notebook Sticky Scroll headers in the notebook editor."
|
|
859
869
|
)),
|
|
860
870
|
type: 'boolean',
|
|
@@ -863,21 +873,21 @@ configurationRegistry.registerConfiguration({
|
|
|
863
873
|
},
|
|
864
874
|
[NotebookSetting.stickyScrollMode]: {
|
|
865
875
|
description: ( localize(
|
|
866
|
-
|
|
876
|
+
7599,
|
|
867
877
|
"Control whether nested sticky lines appear to stack flat or indented."
|
|
868
878
|
)),
|
|
869
879
|
type: 'string',
|
|
870
880
|
enum: ['flat', 'indented'],
|
|
871
881
|
enumDescriptions: [
|
|
872
|
-
( localize(
|
|
873
|
-
( localize(
|
|
882
|
+
( localize(7600, "Nested sticky lines appear flat.")),
|
|
883
|
+
( localize(7601, "Nested sticky lines appear indented.")),
|
|
874
884
|
],
|
|
875
885
|
default: 'indented',
|
|
876
886
|
tags: ['notebookLayout']
|
|
877
887
|
},
|
|
878
888
|
[NotebookSetting.consolidatedOutputButton]: {
|
|
879
889
|
description: ( localize(
|
|
880
|
-
|
|
890
|
+
7602,
|
|
881
891
|
"Control whether outputs action should be rendered in the output toolbar."
|
|
882
892
|
)),
|
|
883
893
|
type: 'boolean',
|
|
@@ -885,20 +895,20 @@ configurationRegistry.registerConfiguration({
|
|
|
885
895
|
tags: ['notebookLayout']
|
|
886
896
|
},
|
|
887
897
|
[NotebookSetting.showFoldingControls]: {
|
|
888
|
-
description: ( localize(
|
|
898
|
+
description: ( localize(7603, "Controls when the Markdown header folding arrow is shown.")),
|
|
889
899
|
type: 'string',
|
|
890
900
|
enum: ['always', 'never', 'mouseover'],
|
|
891
901
|
enumDescriptions: [
|
|
892
|
-
( localize(
|
|
893
|
-
( localize(
|
|
894
|
-
( localize(
|
|
902
|
+
( localize(7604, "The folding controls are always visible.")),
|
|
903
|
+
( localize(7605, "Never show the folding controls and reduce the gutter size.")),
|
|
904
|
+
( localize(7606, "The folding controls are visible only on mouseover.")),
|
|
895
905
|
],
|
|
896
906
|
default: 'mouseover',
|
|
897
907
|
tags: ['notebookLayout']
|
|
898
908
|
},
|
|
899
909
|
[NotebookSetting.dragAndDropEnabled]: {
|
|
900
910
|
description: ( localize(
|
|
901
|
-
|
|
911
|
+
7607,
|
|
902
912
|
"Control whether the notebook editor should allow moving cells through drag and drop."
|
|
903
913
|
)),
|
|
904
914
|
type: 'boolean',
|
|
@@ -907,7 +917,7 @@ configurationRegistry.registerConfiguration({
|
|
|
907
917
|
},
|
|
908
918
|
[NotebookSetting.consolidatedRunButton]: {
|
|
909
919
|
description: ( localize(
|
|
910
|
-
|
|
920
|
+
7608,
|
|
911
921
|
"Control whether extra actions are shown in a dropdown next to the run button."
|
|
912
922
|
)),
|
|
913
923
|
type: 'boolean',
|
|
@@ -916,7 +926,7 @@ configurationRegistry.registerConfiguration({
|
|
|
916
926
|
},
|
|
917
927
|
[NotebookSetting.globalToolbarShowLabel]: {
|
|
918
928
|
description: ( localize(
|
|
919
|
-
|
|
929
|
+
7609,
|
|
920
930
|
"Control whether the actions on the notebook toolbar should render label or not."
|
|
921
931
|
)),
|
|
922
932
|
type: 'string',
|
|
@@ -926,7 +936,7 @@ configurationRegistry.registerConfiguration({
|
|
|
926
936
|
},
|
|
927
937
|
[NotebookSetting.textOutputLineLimit]: {
|
|
928
938
|
markdownDescription: ( localize(
|
|
929
|
-
|
|
939
|
+
7610,
|
|
930
940
|
"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.",
|
|
931
941
|
'`#notebook.output.scrolling#`'
|
|
932
942
|
)),
|
|
@@ -937,7 +947,7 @@ configurationRegistry.registerConfiguration({
|
|
|
937
947
|
},
|
|
938
948
|
[NotebookSetting.LinkifyOutputFilePaths]: {
|
|
939
949
|
description: ( localize(
|
|
940
|
-
|
|
950
|
+
7611,
|
|
941
951
|
"Control whether to disable filepath links in the output of notebook cells."
|
|
942
952
|
)),
|
|
943
953
|
type: 'boolean',
|
|
@@ -945,14 +955,14 @@ configurationRegistry.registerConfiguration({
|
|
|
945
955
|
tags: ['notebookOutputLayout']
|
|
946
956
|
},
|
|
947
957
|
[NotebookSetting.minimalErrorRendering]: {
|
|
948
|
-
description: ( localize(
|
|
958
|
+
description: ( localize(7612, "Control whether to render error output in a minimal style.")),
|
|
949
959
|
type: 'boolean',
|
|
950
960
|
default: false,
|
|
951
961
|
tags: ['notebookOutputLayout']
|
|
952
962
|
},
|
|
953
963
|
[NotebookSetting.markupFontSize]: {
|
|
954
964
|
markdownDescription: ( localize(
|
|
955
|
-
|
|
965
|
+
7613,
|
|
956
966
|
"Controls the font size in pixels of rendered markup in notebooks. When set to {0}, 120% of {1} is used.",
|
|
957
967
|
'`0`',
|
|
958
968
|
'`#editor.fontSize#`'
|
|
@@ -963,7 +973,7 @@ configurationRegistry.registerConfiguration({
|
|
|
963
973
|
},
|
|
964
974
|
[NotebookSetting.markdownLineHeight]: {
|
|
965
975
|
markdownDescription: ( localize(
|
|
966
|
-
|
|
976
|
+
7614,
|
|
967
977
|
"Controls the line height in pixels of markdown cells in notebooks. When set to {0}, {1} will be used",
|
|
968
978
|
'`0`',
|
|
969
979
|
'`normal`'
|
|
@@ -975,7 +985,7 @@ configurationRegistry.registerConfiguration({
|
|
|
975
985
|
[NotebookSetting.cellEditorOptionsCustomizations]: editorOptionsCustomizationSchema,
|
|
976
986
|
[NotebookSetting.interactiveWindowCollapseCodeCells]: {
|
|
977
987
|
markdownDescription: ( localize(
|
|
978
|
-
|
|
988
|
+
7615,
|
|
979
989
|
"Controls whether code cells in the interactive window are collapsed by default."
|
|
980
990
|
)),
|
|
981
991
|
type: 'string',
|
|
@@ -984,7 +994,7 @@ configurationRegistry.registerConfiguration({
|
|
|
984
994
|
},
|
|
985
995
|
[NotebookSetting.outputLineHeight]: {
|
|
986
996
|
markdownDescription: ( localize(
|
|
987
|
-
|
|
997
|
+
7616,
|
|
988
998
|
"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."
|
|
989
999
|
)),
|
|
990
1000
|
type: 'number',
|
|
@@ -993,7 +1003,7 @@ configurationRegistry.registerConfiguration({
|
|
|
993
1003
|
},
|
|
994
1004
|
[NotebookSetting.outputFontSize]: {
|
|
995
1005
|
markdownDescription: ( localize(
|
|
996
|
-
|
|
1006
|
+
7617,
|
|
997
1007
|
"Font size for the output text within notebook cells. When set to 0, {0} is used.",
|
|
998
1008
|
'`#editor.fontSize#`'
|
|
999
1009
|
)),
|
|
@@ -1003,7 +1013,7 @@ configurationRegistry.registerConfiguration({
|
|
|
1003
1013
|
},
|
|
1004
1014
|
[NotebookSetting.outputFontFamily]: {
|
|
1005
1015
|
markdownDescription: ( localize(
|
|
1006
|
-
|
|
1016
|
+
7618,
|
|
1007
1017
|
"The font family of the output text within notebook cells. When set to empty, the {0} is used.",
|
|
1008
1018
|
'`#editor.fontFamily#`'
|
|
1009
1019
|
)),
|
|
@@ -1012,22 +1022,22 @@ configurationRegistry.registerConfiguration({
|
|
|
1012
1022
|
},
|
|
1013
1023
|
[NotebookSetting.outputScrolling]: {
|
|
1014
1024
|
markdownDescription: ( localize(
|
|
1015
|
-
|
|
1025
|
+
7619,
|
|
1016
1026
|
"Initially render notebook outputs in a scrollable region when longer than the limit."
|
|
1017
1027
|
)),
|
|
1018
1028
|
type: 'boolean',
|
|
1019
1029
|
tags: ['notebookLayout', 'notebookOutputLayout'],
|
|
1020
|
-
default: typeof product
|
|
1030
|
+
default: typeof product.quality === 'string' && product.quality !== 'stable'
|
|
1021
1031
|
},
|
|
1022
1032
|
[NotebookSetting.outputWordWrap]: {
|
|
1023
|
-
markdownDescription: ( localize(
|
|
1033
|
+
markdownDescription: ( localize(7620, "Controls whether the lines in output should wrap.")),
|
|
1024
1034
|
type: 'boolean',
|
|
1025
1035
|
tags: ['notebookLayout', 'notebookOutputLayout'],
|
|
1026
1036
|
default: false
|
|
1027
1037
|
},
|
|
1028
1038
|
[NotebookSetting.defaultFormatter]: {
|
|
1029
1039
|
description: ( localize(
|
|
1030
|
-
|
|
1040
|
+
7621,
|
|
1031
1041
|
"Defines a default notebook formatter which takes precedence over all other formatter settings. Must be the identifier of an extension contributing a formatter."
|
|
1032
1042
|
)),
|
|
1033
1043
|
type: ['string', 'null'],
|
|
@@ -1038,7 +1048,7 @@ configurationRegistry.registerConfiguration({
|
|
|
1038
1048
|
},
|
|
1039
1049
|
[NotebookSetting.formatOnSave]: {
|
|
1040
1050
|
markdownDescription: ( localize(
|
|
1041
|
-
|
|
1051
|
+
7622,
|
|
1042
1052
|
"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.",
|
|
1043
1053
|
'`#files.autoSave#`'
|
|
1044
1054
|
)),
|
|
@@ -1048,7 +1058,7 @@ configurationRegistry.registerConfiguration({
|
|
|
1048
1058
|
},
|
|
1049
1059
|
[NotebookSetting.insertFinalNewline]: {
|
|
1050
1060
|
markdownDescription: ( localize(
|
|
1051
|
-
|
|
1061
|
+
7623,
|
|
1052
1062
|
"When enabled, insert a final new line into the end of code cells when saving a notebook."
|
|
1053
1063
|
)),
|
|
1054
1064
|
type: 'boolean',
|
|
@@ -1057,7 +1067,7 @@ configurationRegistry.registerConfiguration({
|
|
|
1057
1067
|
},
|
|
1058
1068
|
[NotebookSetting.formatOnCellExecution]: {
|
|
1059
1069
|
markdownDescription: ( localize(
|
|
1060
|
-
|
|
1070
|
+
7624,
|
|
1061
1071
|
"Format a notebook cell upon execution. A formatter must be available."
|
|
1062
1072
|
)),
|
|
1063
1073
|
type: 'boolean',
|
|
@@ -1065,7 +1075,7 @@ configurationRegistry.registerConfiguration({
|
|
|
1065
1075
|
},
|
|
1066
1076
|
[NotebookSetting.confirmDeleteRunningCell]: {
|
|
1067
1077
|
markdownDescription: ( localize(
|
|
1068
|
-
|
|
1078
|
+
7625,
|
|
1069
1079
|
"Control whether a confirmation prompt is required to delete a running cell."
|
|
1070
1080
|
)),
|
|
1071
1081
|
type: 'boolean',
|
|
@@ -1073,7 +1083,7 @@ configurationRegistry.registerConfiguration({
|
|
|
1073
1083
|
},
|
|
1074
1084
|
[NotebookSetting.findFilters]: {
|
|
1075
1085
|
markdownDescription: ( localize(
|
|
1076
|
-
|
|
1086
|
+
7626,
|
|
1077
1087
|
"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."
|
|
1078
1088
|
)),
|
|
1079
1089
|
type: 'object',
|
|
@@ -1105,31 +1115,31 @@ configurationRegistry.registerConfiguration({
|
|
|
1105
1115
|
},
|
|
1106
1116
|
[NotebookSetting.remoteSaving]: {
|
|
1107
1117
|
markdownDescription: ( localize(
|
|
1108
|
-
|
|
1118
|
+
7627,
|
|
1109
1119
|
"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."
|
|
1110
1120
|
)),
|
|
1111
1121
|
type: 'boolean',
|
|
1112
|
-
default: typeof product
|
|
1122
|
+
default: typeof product.quality === 'string' && product.quality !== 'stable',
|
|
1113
1123
|
tags: ['experimental']
|
|
1114
1124
|
},
|
|
1115
1125
|
[NotebookSetting.scrollToRevealCell]: {
|
|
1116
1126
|
markdownDescription: ( localize(
|
|
1117
|
-
|
|
1127
|
+
7628,
|
|
1118
1128
|
"How far to scroll when revealing the next cell upon running {0}.",
|
|
1119
1129
|
'notebook.cell.executeAndSelectBelow'
|
|
1120
1130
|
)),
|
|
1121
1131
|
type: 'string',
|
|
1122
1132
|
enum: ['fullCell', 'firstLine', 'none'],
|
|
1123
1133
|
markdownEnumDescriptions: [
|
|
1124
|
-
( localize(
|
|
1125
|
-
( localize(
|
|
1126
|
-
( localize(
|
|
1134
|
+
( localize(7629, 'Scroll to fully reveal the next cell.')),
|
|
1135
|
+
( localize(7630, 'Scroll to reveal the first line of the next cell.')),
|
|
1136
|
+
( localize(7631, 'Do not scroll.')),
|
|
1127
1137
|
],
|
|
1128
1138
|
default: 'fullCell'
|
|
1129
1139
|
},
|
|
1130
1140
|
[NotebookSetting.cellGenerate]: {
|
|
1131
1141
|
markdownDescription: ( localize(
|
|
1132
|
-
|
|
1142
|
+
7632,
|
|
1133
1143
|
"Enable experimental generate action to create code cell with inline chat enabled."
|
|
1134
1144
|
)),
|
|
1135
1145
|
type: 'boolean',
|
|
@@ -1137,20 +1147,20 @@ configurationRegistry.registerConfiguration({
|
|
|
1137
1147
|
},
|
|
1138
1148
|
[NotebookSetting.notebookVariablesView]: {
|
|
1139
1149
|
markdownDescription: ( localize(
|
|
1140
|
-
|
|
1150
|
+
7633,
|
|
1141
1151
|
"Enable the experimental notebook variables view within the debug panel."
|
|
1142
1152
|
)),
|
|
1143
1153
|
type: 'boolean',
|
|
1144
1154
|
default: false
|
|
1145
1155
|
},
|
|
1146
1156
|
[NotebookSetting.cellFailureDiagnostics]: {
|
|
1147
|
-
markdownDescription: ( localize(
|
|
1157
|
+
markdownDescription: ( localize(7634, "Show available diagnostics for cell failures.")),
|
|
1148
1158
|
type: 'boolean',
|
|
1149
1159
|
default: true
|
|
1150
1160
|
},
|
|
1151
1161
|
[NotebookSetting.outputBackupSizeLimit]: {
|
|
1152
1162
|
markdownDescription: ( localize(
|
|
1153
|
-
|
|
1163
|
+
7635,
|
|
1154
1164
|
"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."
|
|
1155
1165
|
)),
|
|
1156
1166
|
type: 'number',
|
|
@@ -1158,7 +1168,7 @@ configurationRegistry.registerConfiguration({
|
|
|
1158
1168
|
},
|
|
1159
1169
|
[NotebookSetting.multiCursor]: {
|
|
1160
1170
|
markdownDescription: ( localize(
|
|
1161
|
-
|
|
1171
|
+
7636,
|
|
1162
1172
|
"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."
|
|
1163
1173
|
)),
|
|
1164
1174
|
type: 'boolean',
|