@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,39 +1,37 @@
|
|
|
1
|
+
|
|
1
2
|
import { IBulkEditService, ResourceTextEdit } from 'vscode/vscode/vs/editor/browser/services/bulkEditService';
|
|
2
3
|
import { localize2, localize } from 'vscode/vscode/vs/nls';
|
|
3
4
|
import { registerAction2, Action2, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
4
5
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
5
6
|
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
6
7
|
import { ActiveEditorContext } from 'vscode/vscode/vs/workbench/common/contextkeys';
|
|
7
|
-
import { SideBySideDiffElementViewModel } from '@codingame/monaco-vscode-
|
|
8
|
-
import { NOTEBOOK_DIFF_HAS_UNCHANGED_CELLS, NOTEBOOK_DIFF_UNCHANGED_CELLS_HIDDEN, NOTEBOOK_DIFF_ITEM_KIND, NOTEBOOK_DIFF_ITEM_DIFF_STATE, NOTEBOOK_DIFF_METADATA, NOTEBOOK_DIFF_CELL_PROPERTY, NOTEBOOK_DIFF_CELL_PROPERTY_EXPANDED, NOTEBOOK_DIFF_CELL_INPUT, NOTEBOOK_DIFF_CELL_IGNORE_WHITESPACE_KEY } from '@codingame/monaco-vscode-
|
|
9
|
-
import { NotebookTextDiffEditor } from '@codingame/monaco-vscode-
|
|
10
|
-
import { openAsTextIcon, revertIcon, renderOutputIcon, toggleWhitespace, previousChangeIcon, nextChangeIcon } from '@codingame/monaco-vscode-
|
|
8
|
+
import { SideBySideDiffElementViewModel } from '@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common/vscode/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel';
|
|
9
|
+
import { NOTEBOOK_DIFF_HAS_UNCHANGED_CELLS, NOTEBOOK_DIFF_UNCHANGED_CELLS_HIDDEN, NOTEBOOK_DIFF_ITEM_KIND, NOTEBOOK_DIFF_ITEM_DIFF_STATE, NOTEBOOK_DIFF_METADATA, NOTEBOOK_DIFF_CELL_PROPERTY, NOTEBOOK_DIFF_CELL_PROPERTY_EXPANDED, NOTEBOOK_DIFF_CELL_INPUT, NOTEBOOK_DIFF_CELL_IGNORE_WHITESPACE_KEY } from '@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common/vscode/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser';
|
|
10
|
+
import { NotebookTextDiffEditor } from '@codingame/monaco-vscode-e4d0fd26-1b26-5583-b3f7-582e08d7b389-common/vscode/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor';
|
|
11
|
+
import { openAsTextIcon, revertIcon, renderOutputIcon, toggleWhitespace, previousChangeIcon, nextChangeIcon } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/notebookIcons';
|
|
11
12
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
12
13
|
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
13
14
|
import { Extensions } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
14
15
|
import { DEFAULT_EDITOR_ASSOCIATION } from 'vscode/vscode/vs/workbench/common/editor';
|
|
15
|
-
import {
|
|
16
|
+
import { KeybindingWeight } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
17
|
+
import { KeyMod, KeyCode } from 'vscode/vscode/vs/base/common/keyCodes';
|
|
18
|
+
import { CellEditType, NOTEBOOK_DIFF_EDITOR_ID } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
16
19
|
import { ITextResourceConfigurationService } from 'vscode/vscode/vs/editor/common/services/textResourceConfiguration';
|
|
17
|
-
import { NotebookMultiTextDiffEditor } from '@codingame/monaco-vscode-
|
|
20
|
+
import { NotebookMultiTextDiffEditor } from '@codingame/monaco-vscode-e4d0fd26-1b26-5583-b3f7-582e08d7b389-common/vscode/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor';
|
|
18
21
|
import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
|
|
22
|
+
import { TextEditorSelectionRevealType } from 'vscode/vscode/vs/platform/editor/common/editor';
|
|
19
23
|
|
|
20
24
|
registerAction2(class extends Action2 {
|
|
21
25
|
constructor() {
|
|
22
26
|
super({
|
|
23
27
|
id: 'notebook.diff.openFile',
|
|
24
28
|
icon: Codicon.goToFile,
|
|
25
|
-
title: ( localize2(
|
|
26
|
-
precondition: (
|
|
27
|
-
(ActiveEditorContext.isEqualTo(NotebookTextDiffEditor.ID)),
|
|
28
|
-
(ActiveEditorContext.isEqualTo(NotebookMultiTextDiffEditor.ID))
|
|
29
|
-
))),
|
|
29
|
+
title: ( localize2(7546, 'Open File')),
|
|
30
|
+
precondition: ( ContextKeyExpr.or(( ActiveEditorContext.isEqualTo(NotebookTextDiffEditor.ID)), ( ActiveEditorContext.isEqualTo(NotebookMultiTextDiffEditor.ID)))),
|
|
30
31
|
menu: [{
|
|
31
32
|
id: MenuId.EditorTitle,
|
|
32
33
|
group: 'navigation',
|
|
33
|
-
when: (
|
|
34
|
-
(ActiveEditorContext.isEqualTo(NotebookTextDiffEditor.ID)),
|
|
35
|
-
(ActiveEditorContext.isEqualTo(NotebookMultiTextDiffEditor.ID))
|
|
36
|
-
))),
|
|
34
|
+
when: ( ContextKeyExpr.or(( ActiveEditorContext.isEqualTo(NotebookTextDiffEditor.ID)), ( ActiveEditorContext.isEqualTo(NotebookMultiTextDiffEditor.ID)))),
|
|
37
35
|
}]
|
|
38
36
|
});
|
|
39
37
|
}
|
|
@@ -54,14 +52,14 @@ registerAction2(class extends Action2 {
|
|
|
54
52
|
constructor() {
|
|
55
53
|
super({
|
|
56
54
|
id: 'notebook.diff.cell.toggleCollapseUnchangedRegions',
|
|
57
|
-
title: ( localize2(
|
|
55
|
+
title: ( localize2(7547, 'Toggle Collapse Unchanged Regions')),
|
|
58
56
|
icon: Codicon.map,
|
|
59
|
-
toggled: (
|
|
60
|
-
precondition: (
|
|
57
|
+
toggled: ( ContextKeyExpr.has('config.diffEditor.hideUnchangedRegions.enabled')),
|
|
58
|
+
precondition: ( ActiveEditorContext.isEqualTo(NotebookTextDiffEditor.ID)),
|
|
61
59
|
menu: {
|
|
62
60
|
id: MenuId.EditorTitle,
|
|
63
61
|
group: 'navigation',
|
|
64
|
-
when: (
|
|
62
|
+
when: ( ActiveEditorContext.isEqualTo(NotebookTextDiffEditor.ID)),
|
|
65
63
|
},
|
|
66
64
|
});
|
|
67
65
|
}
|
|
@@ -76,18 +74,12 @@ registerAction2(class extends Action2 {
|
|
|
76
74
|
super({
|
|
77
75
|
id: 'notebook.diff.switchToText',
|
|
78
76
|
icon: openAsTextIcon,
|
|
79
|
-
title: ( localize2(
|
|
80
|
-
precondition: (
|
|
81
|
-
(ActiveEditorContext.isEqualTo(NotebookTextDiffEditor.ID)),
|
|
82
|
-
(ActiveEditorContext.isEqualTo(NotebookMultiTextDiffEditor.ID))
|
|
83
|
-
))),
|
|
77
|
+
title: ( localize2(7548, 'Open Text Diff Editor')),
|
|
78
|
+
precondition: ( ContextKeyExpr.or(( ActiveEditorContext.isEqualTo(NotebookTextDiffEditor.ID)), ( ActiveEditorContext.isEqualTo(NotebookMultiTextDiffEditor.ID)))),
|
|
84
79
|
menu: [{
|
|
85
80
|
id: MenuId.EditorTitle,
|
|
86
81
|
group: 'navigation',
|
|
87
|
-
when: (
|
|
88
|
-
(ActiveEditorContext.isEqualTo(NotebookTextDiffEditor.ID)),
|
|
89
|
-
(ActiveEditorContext.isEqualTo(NotebookMultiTextDiffEditor.ID))
|
|
90
|
-
))),
|
|
82
|
+
when: ( ContextKeyExpr.or(( ActiveEditorContext.isEqualTo(NotebookTextDiffEditor.ID)), ( ActiveEditorContext.isEqualTo(NotebookMultiTextDiffEditor.ID)))),
|
|
91
83
|
}]
|
|
92
84
|
});
|
|
93
85
|
}
|
|
@@ -115,18 +107,11 @@ registerAction2(class extends Action2 {
|
|
|
115
107
|
constructor() {
|
|
116
108
|
super({
|
|
117
109
|
id: 'notebook.diffEditor.showUnchangedCells',
|
|
118
|
-
title: ( localize2(
|
|
110
|
+
title: ( localize2(7549, 'Show Unchanged Cells')),
|
|
119
111
|
icon: Codicon.unfold,
|
|
120
|
-
precondition: (
|
|
121
|
-
(ActiveEditorContext.isEqualTo(NotebookMultiTextDiffEditor.ID)),
|
|
122
|
-
(ContextKeyExpr.has(NOTEBOOK_DIFF_HAS_UNCHANGED_CELLS.key))
|
|
123
|
-
))),
|
|
112
|
+
precondition: ( ContextKeyExpr.and(( ActiveEditorContext.isEqualTo(NotebookMultiTextDiffEditor.ID)), ( ContextKeyExpr.has(NOTEBOOK_DIFF_HAS_UNCHANGED_CELLS.key)))),
|
|
124
113
|
menu: {
|
|
125
|
-
when: (
|
|
126
|
-
(ActiveEditorContext.isEqualTo(NotebookMultiTextDiffEditor.ID)),
|
|
127
|
-
(ContextKeyExpr.has(NOTEBOOK_DIFF_HAS_UNCHANGED_CELLS.key)),
|
|
128
|
-
(ContextKeyExpr.equals(NOTEBOOK_DIFF_UNCHANGED_CELLS_HIDDEN.key, true))
|
|
129
|
-
))),
|
|
114
|
+
when: ( ContextKeyExpr.and(( ActiveEditorContext.isEqualTo(NotebookMultiTextDiffEditor.ID)), ( ContextKeyExpr.has(NOTEBOOK_DIFF_HAS_UNCHANGED_CELLS.key)), ( ContextKeyExpr.equals(NOTEBOOK_DIFF_UNCHANGED_CELLS_HIDDEN.key, true)))),
|
|
130
115
|
id: MenuId.EditorTitle,
|
|
131
116
|
order: 22,
|
|
132
117
|
group: 'navigation',
|
|
@@ -147,18 +132,11 @@ registerAction2(class extends Action2 {
|
|
|
147
132
|
constructor() {
|
|
148
133
|
super({
|
|
149
134
|
id: 'notebook.diffEditor.hideUnchangedCells',
|
|
150
|
-
title: ( localize2(
|
|
135
|
+
title: ( localize2(7550, 'Hide Unchanged Cells')),
|
|
151
136
|
icon: Codicon.fold,
|
|
152
|
-
precondition: (
|
|
153
|
-
(ActiveEditorContext.isEqualTo(NotebookMultiTextDiffEditor.ID)),
|
|
154
|
-
(ContextKeyExpr.has(NOTEBOOK_DIFF_HAS_UNCHANGED_CELLS.key))
|
|
155
|
-
))),
|
|
137
|
+
precondition: ( ContextKeyExpr.and(( ActiveEditorContext.isEqualTo(NotebookMultiTextDiffEditor.ID)), ( ContextKeyExpr.has(NOTEBOOK_DIFF_HAS_UNCHANGED_CELLS.key)))),
|
|
156
138
|
menu: {
|
|
157
|
-
when: (
|
|
158
|
-
(ActiveEditorContext.isEqualTo(NotebookMultiTextDiffEditor.ID)),
|
|
159
|
-
(ContextKeyExpr.has(NOTEBOOK_DIFF_HAS_UNCHANGED_CELLS.key)),
|
|
160
|
-
(ContextKeyExpr.equals(NOTEBOOK_DIFF_UNCHANGED_CELLS_HIDDEN.key, false))
|
|
161
|
-
))),
|
|
139
|
+
when: ( ContextKeyExpr.and(( ActiveEditorContext.isEqualTo(NotebookMultiTextDiffEditor.ID)), ( ContextKeyExpr.has(NOTEBOOK_DIFF_HAS_UNCHANGED_CELLS.key)), ( ContextKeyExpr.equals(NOTEBOOK_DIFF_UNCHANGED_CELLS_HIDDEN.key, false)))),
|
|
162
140
|
id: MenuId.EditorTitle,
|
|
163
141
|
order: 22,
|
|
164
142
|
group: 'navigation',
|
|
@@ -179,14 +157,10 @@ registerAction2(class GoToFileAction extends Action2 {
|
|
|
179
157
|
constructor() {
|
|
180
158
|
super({
|
|
181
159
|
id: 'notebook.diffEditor.2.goToCell',
|
|
182
|
-
title: ( localize2(
|
|
160
|
+
title: ( localize2(7551, 'Go To Cell')),
|
|
183
161
|
icon: Codicon.goToFile,
|
|
184
162
|
menu: {
|
|
185
|
-
when: (
|
|
186
|
-
(ActiveEditorContext.isEqualTo(NotebookMultiTextDiffEditor.ID)),
|
|
187
|
-
(ContextKeyExpr.equals(NOTEBOOK_DIFF_ITEM_KIND.key, 'Cell')),
|
|
188
|
-
(ContextKeyExpr.notEquals(NOTEBOOK_DIFF_ITEM_DIFF_STATE.key, 'delete'))
|
|
189
|
-
))),
|
|
163
|
+
when: ( ContextKeyExpr.and(( ActiveEditorContext.isEqualTo(NotebookMultiTextDiffEditor.ID)), ( ContextKeyExpr.equals(NOTEBOOK_DIFF_ITEM_KIND.key, 'Cell')), ( ContextKeyExpr.notEquals(NOTEBOOK_DIFF_ITEM_DIFF_STATE.key, 'delete')))),
|
|
190
164
|
id: MenuId.MultiDiffEditorFileToolbar,
|
|
191
165
|
order: 0,
|
|
192
166
|
group: 'navigation',
|
|
@@ -203,7 +177,7 @@ registerAction2(class GoToFileAction extends Action2 {
|
|
|
203
177
|
await editorService.openEditor({
|
|
204
178
|
resource: uri,
|
|
205
179
|
options: {
|
|
206
|
-
selectionRevealType:
|
|
180
|
+
selectionRevealType: TextEditorSelectionRevealType.CenterIfOutsideViewport,
|
|
207
181
|
},
|
|
208
182
|
});
|
|
209
183
|
}
|
|
@@ -212,7 +186,7 @@ registerAction2(class extends Action2 {
|
|
|
212
186
|
constructor() {
|
|
213
187
|
super({
|
|
214
188
|
id: 'notebook.diff.revertMetadata',
|
|
215
|
-
title: ( localize(
|
|
189
|
+
title: ( localize(7552, "Revert Notebook Metadata")),
|
|
216
190
|
icon: revertIcon,
|
|
217
191
|
f1: false,
|
|
218
192
|
menu: {
|
|
@@ -232,12 +206,12 @@ registerAction2(class extends Action2 {
|
|
|
232
206
|
return;
|
|
233
207
|
}
|
|
234
208
|
context.modifiedDocumentTextModel.applyEdits([{
|
|
235
|
-
editType:
|
|
209
|
+
editType: CellEditType.DocumentMetadata,
|
|
236
210
|
metadata: context.originalMetadata.metadata,
|
|
237
211
|
}], true, undefined, () => undefined, undefined, true);
|
|
238
212
|
}
|
|
239
213
|
});
|
|
240
|
-
const revertInput = ( localize(
|
|
214
|
+
const revertInput = ( localize(7553, "Revert Input"));
|
|
241
215
|
registerAction2(class extends Action2 {
|
|
242
216
|
constructor() {
|
|
243
217
|
super({
|
|
@@ -245,11 +219,7 @@ registerAction2(class extends Action2 {
|
|
|
245
219
|
title: revertInput,
|
|
246
220
|
icon: revertIcon,
|
|
247
221
|
menu: {
|
|
248
|
-
when: (
|
|
249
|
-
(ActiveEditorContext.isEqualTo(NotebookMultiTextDiffEditor.ID)),
|
|
250
|
-
(ContextKeyExpr.equals(NOTEBOOK_DIFF_ITEM_KIND.key, 'Cell')),
|
|
251
|
-
(ContextKeyExpr.equals(NOTEBOOK_DIFF_ITEM_DIFF_STATE.key, 'modified'))
|
|
252
|
-
))),
|
|
222
|
+
when: ( ContextKeyExpr.and(( ActiveEditorContext.isEqualTo(NotebookMultiTextDiffEditor.ID)), ( ContextKeyExpr.equals(NOTEBOOK_DIFF_ITEM_KIND.key, 'Cell')), ( ContextKeyExpr.equals(NOTEBOOK_DIFF_ITEM_DIFF_STATE.key, 'modified')))),
|
|
253
223
|
id: MenuId.MultiDiffEditorFileToolbar,
|
|
254
224
|
order: 2,
|
|
255
225
|
group: 'navigation',
|
|
@@ -272,15 +242,15 @@ registerAction2(class extends Action2 {
|
|
|
272
242
|
}
|
|
273
243
|
const bulkEditService = accessor.get(IBulkEditService);
|
|
274
244
|
await bulkEditService.apply([
|
|
275
|
-
(
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
245
|
+
( new ResourceTextEdit(
|
|
246
|
+
modified.uri,
|
|
247
|
+
{ range: modified.textModel.getFullModelRange(), text: original.textModel.getValue() }
|
|
248
|
+
)),
|
|
279
249
|
], { quotableLabel: 'Revert Notebook Cell Content Change' });
|
|
280
250
|
}
|
|
281
251
|
}
|
|
282
252
|
});
|
|
283
|
-
const revertOutputs = ( localize(
|
|
253
|
+
const revertOutputs = ( localize(7554, "Revert Outputs"));
|
|
284
254
|
registerAction2(class extends Action2 {
|
|
285
255
|
constructor() {
|
|
286
256
|
super({
|
|
@@ -289,11 +259,7 @@ registerAction2(class extends Action2 {
|
|
|
289
259
|
icon: revertIcon,
|
|
290
260
|
f1: false,
|
|
291
261
|
menu: {
|
|
292
|
-
when: (
|
|
293
|
-
(ActiveEditorContext.isEqualTo(NotebookMultiTextDiffEditor.ID)),
|
|
294
|
-
(ContextKeyExpr.equals(NOTEBOOK_DIFF_ITEM_KIND.key, 'Output')),
|
|
295
|
-
(ContextKeyExpr.equals(NOTEBOOK_DIFF_ITEM_DIFF_STATE.key, 'modified'))
|
|
296
|
-
))),
|
|
262
|
+
when: ( ContextKeyExpr.and(( ActiveEditorContext.isEqualTo(NotebookMultiTextDiffEditor.ID)), ( ContextKeyExpr.equals(NOTEBOOK_DIFF_ITEM_KIND.key, 'Output')), ( ContextKeyExpr.equals(NOTEBOOK_DIFF_ITEM_DIFF_STATE.key, 'modified')))),
|
|
297
263
|
id: MenuId.MultiDiffEditorFileToolbar,
|
|
298
264
|
order: 2,
|
|
299
265
|
group: 'navigation',
|
|
@@ -315,12 +281,12 @@ registerAction2(class extends Action2 {
|
|
|
315
281
|
return;
|
|
316
282
|
}
|
|
317
283
|
item.mainDocumentTextModel.applyEdits([{
|
|
318
|
-
editType:
|
|
284
|
+
editType: CellEditType.Output, index: modifiedCellIndex, outputs: original.outputs
|
|
319
285
|
}], true, undefined, () => undefined, undefined, true);
|
|
320
286
|
}
|
|
321
287
|
}
|
|
322
288
|
});
|
|
323
|
-
const revertMetadata = ( localize(
|
|
289
|
+
const revertMetadata = ( localize(7555, "Revert Metadata"));
|
|
324
290
|
registerAction2(class extends Action2 {
|
|
325
291
|
constructor() {
|
|
326
292
|
super({
|
|
@@ -329,11 +295,7 @@ registerAction2(class extends Action2 {
|
|
|
329
295
|
icon: revertIcon,
|
|
330
296
|
f1: false,
|
|
331
297
|
menu: {
|
|
332
|
-
when: (
|
|
333
|
-
(ActiveEditorContext.isEqualTo(NotebookMultiTextDiffEditor.ID)),
|
|
334
|
-
(ContextKeyExpr.equals(NOTEBOOK_DIFF_ITEM_KIND.key, 'Metadata')),
|
|
335
|
-
(ContextKeyExpr.equals(NOTEBOOK_DIFF_ITEM_DIFF_STATE.key, 'modified'))
|
|
336
|
-
))),
|
|
298
|
+
when: ( ContextKeyExpr.and(( ActiveEditorContext.isEqualTo(NotebookMultiTextDiffEditor.ID)), ( ContextKeyExpr.equals(NOTEBOOK_DIFF_ITEM_KIND.key, 'Metadata')), ( ContextKeyExpr.equals(NOTEBOOK_DIFF_ITEM_DIFF_STATE.key, 'modified')))),
|
|
337
299
|
id: MenuId.MultiDiffEditorFileToolbar,
|
|
338
300
|
order: 2,
|
|
339
301
|
group: 'navigation',
|
|
@@ -355,7 +317,7 @@ registerAction2(class extends Action2 {
|
|
|
355
317
|
return;
|
|
356
318
|
}
|
|
357
319
|
item.mainDocumentTextModel.applyEdits([{
|
|
358
|
-
editType:
|
|
320
|
+
editType: CellEditType.Metadata, index: modifiedCellIndex, metadata: original.metadata
|
|
359
321
|
}], true, undefined, () => undefined, undefined, true);
|
|
360
322
|
}
|
|
361
323
|
}
|
|
@@ -387,9 +349,9 @@ registerAction2(class extends Action2 {
|
|
|
387
349
|
if (modifiedCellIndex === -1) {
|
|
388
350
|
return;
|
|
389
351
|
}
|
|
390
|
-
const rawEdits = [{ editType:
|
|
352
|
+
const rawEdits = [{ editType: CellEditType.Metadata, index: modifiedCellIndex, metadata: original.metadata }];
|
|
391
353
|
if (context.original.language && context.modified.language !== context.original.language) {
|
|
392
|
-
rawEdits.push({ editType:
|
|
354
|
+
rawEdits.push({ editType: CellEditType.CellLanguage, index: modifiedCellIndex, language: context.original.language });
|
|
393
355
|
}
|
|
394
356
|
context.modifiedDocument.applyEdits(rawEdits, true, undefined, () => undefined, undefined, true);
|
|
395
357
|
}
|
|
@@ -398,7 +360,7 @@ registerAction2(class extends Action2 {
|
|
|
398
360
|
constructor() {
|
|
399
361
|
super({
|
|
400
362
|
id: 'notebook.diff.cell.switchOutputRenderingStyleToText',
|
|
401
|
-
title: ( localize(
|
|
363
|
+
title: ( localize(7556, "Switch Output Rendering")),
|
|
402
364
|
icon: renderOutputIcon,
|
|
403
365
|
f1: false,
|
|
404
366
|
menu: {
|
|
@@ -418,7 +380,7 @@ registerAction2(class extends Action2 {
|
|
|
418
380
|
constructor() {
|
|
419
381
|
super({
|
|
420
382
|
id: 'notebook.diff.cell.revertOutputs',
|
|
421
|
-
title: ( localize(
|
|
383
|
+
title: ( localize(7554, "Revert Outputs")),
|
|
422
384
|
icon: revertIcon,
|
|
423
385
|
f1: false,
|
|
424
386
|
menu: {
|
|
@@ -442,7 +404,7 @@ registerAction2(class extends Action2 {
|
|
|
442
404
|
return;
|
|
443
405
|
}
|
|
444
406
|
context.mainDocumentTextModel.applyEdits([{
|
|
445
|
-
editType:
|
|
407
|
+
editType: CellEditType.Output, index: modifiedCellIndex, outputs: original.outputs
|
|
446
408
|
}], true, undefined, () => undefined, undefined, true);
|
|
447
409
|
}
|
|
448
410
|
});
|
|
@@ -450,7 +412,7 @@ registerAction2(class extends Action2 {
|
|
|
450
412
|
constructor() {
|
|
451
413
|
super({
|
|
452
414
|
id: 'notebook.toggle.diff.cell.ignoreTrimWhitespace',
|
|
453
|
-
title: ( localize(
|
|
415
|
+
title: ( localize(7557, "Show Leading/Trailing Whitespace Differences")),
|
|
454
416
|
icon: toggleWhitespace,
|
|
455
417
|
f1: false,
|
|
456
418
|
menu: {
|
|
@@ -459,7 +421,7 @@ registerAction2(class extends Action2 {
|
|
|
459
421
|
order: 1,
|
|
460
422
|
},
|
|
461
423
|
precondition: NOTEBOOK_DIFF_CELL_INPUT,
|
|
462
|
-
toggled: (
|
|
424
|
+
toggled: ( ContextKeyExpr.equals(NOTEBOOK_DIFF_CELL_IGNORE_WHITESPACE_KEY, false)),
|
|
463
425
|
});
|
|
464
426
|
}
|
|
465
427
|
run(accessor, context) {
|
|
@@ -500,10 +462,10 @@ registerAction2(class extends Action2 {
|
|
|
500
462
|
}
|
|
501
463
|
const bulkEditService = accessor.get(IBulkEditService);
|
|
502
464
|
return bulkEditService.apply([
|
|
503
|
-
(
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
465
|
+
( new ResourceTextEdit(
|
|
466
|
+
modified.uri,
|
|
467
|
+
{ range: modified.textModel.getFullModelRange(), text: original.textModel.getValue() }
|
|
468
|
+
)),
|
|
507
469
|
], { quotableLabel: 'Revert Notebook Cell Content Change' });
|
|
508
470
|
}
|
|
509
471
|
});
|
|
@@ -538,36 +500,30 @@ class ToggleRenderAction extends Action2 {
|
|
|
538
500
|
}
|
|
539
501
|
registerAction2(class extends ToggleRenderAction {
|
|
540
502
|
constructor() {
|
|
541
|
-
super('notebook.diff.showOutputs', ( localize2(
|
|
542
|
-
(ActiveEditorContext.isEqualTo(NotebookTextDiffEditor.ID)),
|
|
543
|
-
(ActiveEditorContext.isEqualTo(NotebookMultiTextDiffEditor.ID))
|
|
544
|
-
))), ( (ContextKeyExpr.notEquals('config.notebook.diff.ignoreOutputs', true))), 2, true, undefined);
|
|
503
|
+
super('notebook.diff.showOutputs', ( localize2(7558, 'Show Outputs Differences')), ( ContextKeyExpr.or(( ActiveEditorContext.isEqualTo(NotebookTextDiffEditor.ID)), ( ActiveEditorContext.isEqualTo(NotebookMultiTextDiffEditor.ID)))), ( ContextKeyExpr.notEquals('config.notebook.diff.ignoreOutputs', true)), 2, true, undefined);
|
|
545
504
|
}
|
|
546
505
|
});
|
|
547
506
|
registerAction2(class extends ToggleRenderAction {
|
|
548
507
|
constructor() {
|
|
549
|
-
super('notebook.diff.showMetadata', ( localize2(
|
|
550
|
-
(ActiveEditorContext.isEqualTo(NotebookTextDiffEditor.ID)),
|
|
551
|
-
(ActiveEditorContext.isEqualTo(NotebookMultiTextDiffEditor.ID))
|
|
552
|
-
))), ( (ContextKeyExpr.notEquals('config.notebook.diff.ignoreMetadata', true))), 1, undefined, true);
|
|
508
|
+
super('notebook.diff.showMetadata', ( localize2(7559, 'Show Metadata Differences')), ( ContextKeyExpr.or(( ActiveEditorContext.isEqualTo(NotebookTextDiffEditor.ID)), ( ActiveEditorContext.isEqualTo(NotebookMultiTextDiffEditor.ID)))), ( ContextKeyExpr.notEquals('config.notebook.diff.ignoreMetadata', true)), 1, undefined, true);
|
|
553
509
|
}
|
|
554
510
|
});
|
|
555
511
|
registerAction2(class extends Action2 {
|
|
556
512
|
constructor() {
|
|
557
513
|
super({
|
|
558
514
|
id: 'notebook.diff.action.previous',
|
|
559
|
-
title: ( localize(
|
|
515
|
+
title: ( localize(7560, "Show Previous Change")),
|
|
560
516
|
icon: previousChangeIcon,
|
|
561
517
|
f1: false,
|
|
562
518
|
keybinding: {
|
|
563
|
-
primary:
|
|
564
|
-
weight:
|
|
565
|
-
when: (
|
|
519
|
+
primary: KeyMod.Shift | KeyMod.Alt | KeyCode.F3,
|
|
520
|
+
weight: KeybindingWeight.WorkbenchContrib,
|
|
521
|
+
when: ( ActiveEditorContext.isEqualTo(NotebookTextDiffEditor.ID))
|
|
566
522
|
},
|
|
567
523
|
menu: {
|
|
568
524
|
id: MenuId.EditorTitle,
|
|
569
525
|
group: 'navigation',
|
|
570
|
-
when: (
|
|
526
|
+
when: ( ActiveEditorContext.isEqualTo(NotebookTextDiffEditor.ID))
|
|
571
527
|
}
|
|
572
528
|
});
|
|
573
529
|
}
|
|
@@ -584,18 +540,18 @@ registerAction2(class extends Action2 {
|
|
|
584
540
|
constructor() {
|
|
585
541
|
super({
|
|
586
542
|
id: 'notebook.diff.action.next',
|
|
587
|
-
title: ( localize(
|
|
543
|
+
title: ( localize(7561, "Show Next Change")),
|
|
588
544
|
icon: nextChangeIcon,
|
|
589
545
|
f1: false,
|
|
590
546
|
keybinding: {
|
|
591
|
-
primary:
|
|
592
|
-
weight:
|
|
593
|
-
when: (
|
|
547
|
+
primary: KeyMod.Alt | KeyCode.F3,
|
|
548
|
+
weight: KeybindingWeight.WorkbenchContrib,
|
|
549
|
+
when: ( ActiveEditorContext.isEqualTo(NotebookTextDiffEditor.ID))
|
|
594
550
|
},
|
|
595
551
|
menu: {
|
|
596
552
|
id: MenuId.EditorTitle,
|
|
597
553
|
group: 'navigation',
|
|
598
|
-
when: (
|
|
554
|
+
when: ( ActiveEditorContext.isEqualTo(NotebookTextDiffEditor.ID))
|
|
599
555
|
}
|
|
600
556
|
});
|
|
601
557
|
}
|
|
@@ -608,7 +564,7 @@ registerAction2(class extends Action2 {
|
|
|
608
564
|
editor?.nextChange();
|
|
609
565
|
}
|
|
610
566
|
});
|
|
611
|
-
(
|
|
567
|
+
( Registry.as(Extensions.Configuration)).registerConfiguration({
|
|
612
568
|
id: 'notebook',
|
|
613
569
|
order: 100,
|
|
614
570
|
type: 'object',
|
|
@@ -616,12 +572,12 @@ registerAction2(class extends Action2 {
|
|
|
616
572
|
'notebook.diff.ignoreMetadata': {
|
|
617
573
|
type: 'boolean',
|
|
618
574
|
default: false,
|
|
619
|
-
markdownDescription: ( localize(
|
|
575
|
+
markdownDescription: ( localize(7562, "Hide Metadata Differences"))
|
|
620
576
|
},
|
|
621
577
|
'notebook.diff.ignoreOutputs': {
|
|
622
578
|
type: 'boolean',
|
|
623
579
|
default: false,
|
|
624
|
-
markdownDescription: ( localize(
|
|
580
|
+
markdownDescription: ( localize(7563, "Hide Outputs Differences"))
|
|
625
581
|
},
|
|
626
582
|
}
|
|
627
583
|
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
2
|
+
import { IWorkbenchContribution } from "vscode/vscode/vs/workbench/common/contributions";
|
|
3
|
+
import { IUndoRedoService } from "vscode/vscode/vs/platform/undoRedo/common/undoRedo.service";
|
|
4
|
+
import { IConfigurationService } from "vscode/vscode/vs/platform/configuration/common/configuration.service";
|
|
5
|
+
import { ICodeEditorService } from "vscode/vscode/vs/editor/browser/services/codeEditorService";
|
|
6
|
+
export declare class NotebookContribution extends Disposable implements IWorkbenchContribution {
|
|
7
|
+
private readonly codeEditorService;
|
|
8
|
+
static readonly ID = "workbench.contrib.notebook";
|
|
9
|
+
private _uriComparisonKeyComputer?;
|
|
10
|
+
constructor(undoRedoService: IUndoRedoService, configurationService: IConfigurationService, codeEditorService: ICodeEditorService);
|
|
11
|
+
private updateCellUndoRedoComparisonKey;
|
|
12
|
+
private static _getCellUndoRedoComparisonKey;
|
|
13
|
+
dispose(): void;
|
|
14
|
+
}
|