@codingame/monaco-vscode-notebook-service-override 37.2.0 → 37.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -2
- package/package.json +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebook.js +6 -6
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDocuments.js +6 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDocumentsAndEditors.js +8 -8
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookKernels.js +5 -5
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookSaveParticipant.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +9 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +26 -26
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticEditorContrib.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticsActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/contributedStatusBarItemController.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js +21 -21
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/execute/executionEditorProgress.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/marker/markerProvider.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.js +36 -23
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookSelectionHighlight.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +14 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookInlineVariables.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableContextKeys.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesDataSource.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +16 -16
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/profile/notebookProfile.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.js +29 -29
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/viewportWarmup/viewportWarmup.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/apiActions.js +11 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +40 -40
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +33 -29
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +22 -22
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js +11 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.js +15 -15
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/variablesActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +25 -25
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditorInput.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +73 -73
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibleView.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +35 -35
- package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditor.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditor.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditorInput.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/replEditorAccessibleView.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookCellStatusBarServiceImpl.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js +9 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionStateServiceImpl.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionStateServiceImpl.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelServiceImpl.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js +15 -12
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookRendererMessagingServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +9 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookWorkerServiceImpl.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/OutlineEntry.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/common/model/cellEdit.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.js +28 -28
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookOutputRenderer.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookWebWorker.js +44 -18
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/repl.contribution.js +7 -7
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorAccessibilityHelp.js +14 -14
- package/vscode/src/vs/workbench/services/workingCopy/common/abstractFileWorkingCopyManager.js +2 -2
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +12 -12
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +5 -5
|
@@ -6,10 +6,10 @@ import { registerAction2, Action2, MenuId } from '@codingame/monaco-vscode-api/v
|
|
|
6
6
|
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
7
7
|
import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
8
8
|
import { ActiveEditorContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contextkeys';
|
|
9
|
-
import { SideBySideDiffElementViewModel } from '@codingame/monaco-vscode-
|
|
10
|
-
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_IGNORE_WHITESPACE_KEY, NOTEBOOK_DIFF_CELL_INPUT } from '@codingame/monaco-vscode-
|
|
11
|
-
import { NotebookTextDiffEditor } from '@codingame/monaco-vscode-
|
|
12
|
-
import { openAsTextIcon, revertIcon, renderOutputIcon, toggleWhitespace, previousChangeIcon, nextChangeIcon } from '@codingame/monaco-vscode-
|
|
9
|
+
import { SideBySideDiffElementViewModel } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel';
|
|
10
|
+
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_IGNORE_WHITESPACE_KEY, NOTEBOOK_DIFF_CELL_INPUT } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser';
|
|
11
|
+
import { NotebookTextDiffEditor } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor';
|
|
12
|
+
import { openAsTextIcon, revertIcon, renderOutputIcon, toggleWhitespace, previousChangeIcon, nextChangeIcon } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookIcons';
|
|
13
13
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
14
14
|
import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
|
|
15
15
|
import { Extensions } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
@@ -29,7 +29,7 @@ registerAction2(class extends Action2 {
|
|
|
29
29
|
super({
|
|
30
30
|
id: "notebook.diff.openFile",
|
|
31
31
|
icon: Codicon.goToFile,
|
|
32
|
-
title: ( localize2(
|
|
32
|
+
title: ( localize2(16735, "Open File")),
|
|
33
33
|
precondition: ( ContextKeyExpr.or(( ActiveEditorContext.isEqualTo(NotebookTextDiffEditor.ID)), ( ActiveEditorContext.isEqualTo(NotebookMultiTextDiffEditor.ID)))),
|
|
34
34
|
menu: [{
|
|
35
35
|
id: MenuId.EditorTitle,
|
|
@@ -57,7 +57,7 @@ registerAction2(class extends Action2 {
|
|
|
57
57
|
constructor() {
|
|
58
58
|
super({
|
|
59
59
|
id: "notebook.diff.cell.toggleCollapseUnchangedRegions",
|
|
60
|
-
title: ( localize2(
|
|
60
|
+
title: ( localize2(16736, "Toggle Collapse Unchanged Regions")),
|
|
61
61
|
icon: Codicon.map,
|
|
62
62
|
toggled: ( ContextKeyExpr.has("config.diffEditor.hideUnchangedRegions.enabled")),
|
|
63
63
|
precondition: ( ActiveEditorContext.isEqualTo(NotebookTextDiffEditor.ID)),
|
|
@@ -79,7 +79,7 @@ registerAction2(class extends Action2 {
|
|
|
79
79
|
super({
|
|
80
80
|
id: "notebook.diff.switchToText",
|
|
81
81
|
icon: openAsTextIcon,
|
|
82
|
-
title: ( localize2(
|
|
82
|
+
title: ( localize2(16737, "Open Text Diff Editor")),
|
|
83
83
|
precondition: ( ContextKeyExpr.or(( ActiveEditorContext.isEqualTo(NotebookTextDiffEditor.ID)), ( ActiveEditorContext.isEqualTo(NotebookMultiTextDiffEditor.ID)))),
|
|
84
84
|
menu: [{
|
|
85
85
|
id: MenuId.EditorTitle,
|
|
@@ -116,7 +116,7 @@ registerAction2(class extends Action2 {
|
|
|
116
116
|
constructor() {
|
|
117
117
|
super({
|
|
118
118
|
id: "notebook.diffEditor.showUnchangedCells",
|
|
119
|
-
title: ( localize2(
|
|
119
|
+
title: ( localize2(16738, "Show Unchanged Cells")),
|
|
120
120
|
icon: Codicon.unfold,
|
|
121
121
|
precondition: ( ContextKeyExpr.and(( ActiveEditorContext.isEqualTo(NotebookMultiTextDiffEditor.ID)), ( ContextKeyExpr.has(NOTEBOOK_DIFF_HAS_UNCHANGED_CELLS.key)))),
|
|
122
122
|
menu: {
|
|
@@ -141,7 +141,7 @@ registerAction2(class extends Action2 {
|
|
|
141
141
|
constructor() {
|
|
142
142
|
super({
|
|
143
143
|
id: "notebook.diffEditor.hideUnchangedCells",
|
|
144
|
-
title: ( localize2(
|
|
144
|
+
title: ( localize2(16739, "Hide Unchanged Cells")),
|
|
145
145
|
icon: Codicon.fold,
|
|
146
146
|
precondition: ( ContextKeyExpr.and(( ActiveEditorContext.isEqualTo(NotebookMultiTextDiffEditor.ID)), ( ContextKeyExpr.has(NOTEBOOK_DIFF_HAS_UNCHANGED_CELLS.key)))),
|
|
147
147
|
menu: {
|
|
@@ -166,7 +166,7 @@ registerAction2(class GoToFileAction extends Action2 {
|
|
|
166
166
|
constructor() {
|
|
167
167
|
super({
|
|
168
168
|
id: "notebook.diffEditor.2.goToCell",
|
|
169
|
-
title: ( localize2(
|
|
169
|
+
title: ( localize2(16740, "Go To Cell")),
|
|
170
170
|
icon: Codicon.goToFile,
|
|
171
171
|
menu: {
|
|
172
172
|
when: ( ContextKeyExpr.and(( ActiveEditorContext.isEqualTo(NotebookMultiTextDiffEditor.ID)), ( ContextKeyExpr.equals(NOTEBOOK_DIFF_ITEM_KIND.key, "Cell")), ( ContextKeyExpr.notEquals(NOTEBOOK_DIFF_ITEM_DIFF_STATE.key, "delete")))),
|
|
@@ -195,7 +195,7 @@ registerAction2(class extends Action2 {
|
|
|
195
195
|
constructor() {
|
|
196
196
|
super({
|
|
197
197
|
id: "notebook.diff.revertMetadata",
|
|
198
|
-
title: ( localize(
|
|
198
|
+
title: ( localize(16741, "Revert Notebook Metadata")),
|
|
199
199
|
icon: revertIcon,
|
|
200
200
|
f1: false,
|
|
201
201
|
menu: {
|
|
@@ -220,7 +220,7 @@ registerAction2(class extends Action2 {
|
|
|
220
220
|
}], true, undefined, () => undefined, undefined, true);
|
|
221
221
|
}
|
|
222
222
|
});
|
|
223
|
-
const revertInput = ( localize(
|
|
223
|
+
const revertInput = ( localize(16742, "Revert Input"));
|
|
224
224
|
registerAction2(class extends Action2 {
|
|
225
225
|
constructor() {
|
|
226
226
|
super({
|
|
@@ -259,7 +259,7 @@ registerAction2(class extends Action2 {
|
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
261
|
});
|
|
262
|
-
const revertOutputs = ( localize(
|
|
262
|
+
const revertOutputs = ( localize(16743, "Revert Outputs"));
|
|
263
263
|
registerAction2(class extends Action2 {
|
|
264
264
|
constructor() {
|
|
265
265
|
super({
|
|
@@ -297,7 +297,7 @@ registerAction2(class extends Action2 {
|
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
299
|
});
|
|
300
|
-
const revertMetadata = ( localize(
|
|
300
|
+
const revertMetadata = ( localize(16744, "Revert Metadata"));
|
|
301
301
|
registerAction2(class extends Action2 {
|
|
302
302
|
constructor() {
|
|
303
303
|
super({
|
|
@@ -381,7 +381,7 @@ registerAction2(class extends Action2 {
|
|
|
381
381
|
constructor() {
|
|
382
382
|
super({
|
|
383
383
|
id: "notebook.diff.cell.switchOutputRenderingStyleToText",
|
|
384
|
-
title: ( localize(
|
|
384
|
+
title: ( localize(16745, "Switch Output Rendering")),
|
|
385
385
|
icon: renderOutputIcon,
|
|
386
386
|
f1: false,
|
|
387
387
|
menu: {
|
|
@@ -401,7 +401,7 @@ registerAction2(class extends Action2 {
|
|
|
401
401
|
constructor() {
|
|
402
402
|
super({
|
|
403
403
|
id: "notebook.diff.cell.revertOutputs",
|
|
404
|
-
title: ( localize(
|
|
404
|
+
title: ( localize(16743, "Revert Outputs")),
|
|
405
405
|
icon: revertIcon,
|
|
406
406
|
f1: false,
|
|
407
407
|
menu: {
|
|
@@ -435,7 +435,7 @@ registerAction2(class extends Action2 {
|
|
|
435
435
|
constructor() {
|
|
436
436
|
super({
|
|
437
437
|
id: "notebook.toggle.diff.cell.ignoreTrimWhitespace",
|
|
438
|
-
title: ( localize(
|
|
438
|
+
title: ( localize(16746, "Show Leading/Trailing Whitespace Differences")),
|
|
439
439
|
icon: toggleWhitespace,
|
|
440
440
|
f1: false,
|
|
441
441
|
menu: {
|
|
@@ -523,19 +523,19 @@ class ToggleRenderAction extends Action2 {
|
|
|
523
523
|
}
|
|
524
524
|
registerAction2(class extends ToggleRenderAction {
|
|
525
525
|
constructor() {
|
|
526
|
-
super("notebook.diff.showOutputs", ( localize2(
|
|
526
|
+
super("notebook.diff.showOutputs", ( localize2(16747, "Show Outputs Differences")), ( ContextKeyExpr.or(( ActiveEditorContext.isEqualTo(NotebookTextDiffEditor.ID)), ( ActiveEditorContext.isEqualTo(NotebookMultiTextDiffEditor.ID)))), ( ContextKeyExpr.notEquals("config.notebook.diff.ignoreOutputs", true)), 2, true, undefined);
|
|
527
527
|
}
|
|
528
528
|
});
|
|
529
529
|
registerAction2(class extends ToggleRenderAction {
|
|
530
530
|
constructor() {
|
|
531
|
-
super("notebook.diff.showMetadata", ( localize2(
|
|
531
|
+
super("notebook.diff.showMetadata", ( localize2(16748, "Show Metadata Differences")), ( ContextKeyExpr.or(( ActiveEditorContext.isEqualTo(NotebookTextDiffEditor.ID)), ( ActiveEditorContext.isEqualTo(NotebookMultiTextDiffEditor.ID)))), ( ContextKeyExpr.notEquals("config.notebook.diff.ignoreMetadata", true)), 1, undefined, true);
|
|
532
532
|
}
|
|
533
533
|
});
|
|
534
534
|
registerAction2(class extends Action2 {
|
|
535
535
|
constructor() {
|
|
536
536
|
super({
|
|
537
537
|
id: "notebook.diff.action.previous",
|
|
538
|
-
title: ( localize(
|
|
538
|
+
title: ( localize(16749, "Show Previous Change")),
|
|
539
539
|
icon: previousChangeIcon,
|
|
540
540
|
f1: false,
|
|
541
541
|
keybinding: {
|
|
@@ -563,7 +563,7 @@ registerAction2(class extends Action2 {
|
|
|
563
563
|
constructor() {
|
|
564
564
|
super({
|
|
565
565
|
id: "notebook.diff.action.next",
|
|
566
|
-
title: ( localize(
|
|
566
|
+
title: ( localize(16750, "Show Next Change")),
|
|
567
567
|
icon: nextChangeIcon,
|
|
568
568
|
f1: false,
|
|
569
569
|
keybinding: {
|
|
@@ -591,7 +591,7 @@ registerAction2(class extends Action2 {
|
|
|
591
591
|
constructor() {
|
|
592
592
|
super({
|
|
593
593
|
id: "notebook.diff.inline.toggle",
|
|
594
|
-
title: ( localize(
|
|
594
|
+
title: ( localize(16751, "Toggle Inline View")),
|
|
595
595
|
menu: {
|
|
596
596
|
id: MenuId.EditorTitle,
|
|
597
597
|
group: "1_diff",
|
|
@@ -617,18 +617,18 @@ registerAction2(class extends Action2 {
|
|
|
617
617
|
"notebook.diff.ignoreMetadata": {
|
|
618
618
|
type: "boolean",
|
|
619
619
|
default: false,
|
|
620
|
-
markdownDescription: ( localize(
|
|
620
|
+
markdownDescription: ( localize(16752, "Hide Metadata Differences"))
|
|
621
621
|
},
|
|
622
622
|
"notebook.diff.ignoreOutputs": {
|
|
623
623
|
type: "boolean",
|
|
624
624
|
default: false,
|
|
625
|
-
markdownDescription: ( localize(
|
|
625
|
+
markdownDescription: ( localize(16753, "Hide Outputs Differences"))
|
|
626
626
|
},
|
|
627
627
|
"notebook.diff.experimental.toggleInline": {
|
|
628
628
|
type: "boolean",
|
|
629
629
|
default: typeof product.quality === "string" && product.quality !== "stable",
|
|
630
630
|
markdownDescription: ( localize(
|
|
631
|
-
|
|
631
|
+
16754,
|
|
632
632
|
"Enable the command to toggle the experimental notebook inline diff editor."
|
|
633
633
|
))
|
|
634
634
|
}
|
|
@@ -11,11 +11,11 @@ import { INotebookEditorWorkerService } from "@codingame/monaco-vscode-api/vscod
|
|
|
11
11
|
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
12
12
|
import { EditorPane } from "@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/editor/editorPane";
|
|
13
13
|
import { IMultiDiffEditorOptions } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/multiDiffEditor";
|
|
14
|
-
import { NotebookOptions } from "@codingame/monaco-vscode-
|
|
14
|
+
import { NotebookOptions } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookOptions";
|
|
15
15
|
import { INotebookService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookService.service";
|
|
16
16
|
import { NotebookMultiDiffEditorInput } from "./notebookMultiDiffEditorInput.js";
|
|
17
17
|
import type { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
18
|
-
import { type IDiffElementViewModelBase } from "@codingame/monaco-vscode-
|
|
18
|
+
import { type IDiffElementViewModelBase } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel";
|
|
19
19
|
export declare class NotebookMultiTextDiffEditor extends EditorPane {
|
|
20
20
|
private readonly instantiationService;
|
|
21
21
|
private readonly _parentContextKeyService;
|
|
@@ -14,7 +14,7 @@ import { DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/com
|
|
|
14
14
|
import { EditorPane } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/editor/editorPane';
|
|
15
15
|
import { NOTEBOOK_MULTI_DIFF_EDITOR_ID, CellUri } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
16
16
|
import { FontMeasurements } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/config/fontMeasurements';
|
|
17
|
-
import { NotebookOptions } from '@codingame/monaco-vscode-
|
|
17
|
+
import { NotebookOptions } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookOptions';
|
|
18
18
|
import { INotebookService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookService.service';
|
|
19
19
|
import { NotebookMultiDiffEditorWidgetInput } from './notebookMultiDiffEditorInput.js';
|
|
20
20
|
import { MultiDiffEditorWidget } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidget';
|
|
@@ -24,11 +24,11 @@ import { INotebookDocumentService } from '@codingame/monaco-vscode-api/vscode/vs
|
|
|
24
24
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
25
25
|
import { Schemas } from '@codingame/monaco-vscode-api/vscode/vs/base/common/network';
|
|
26
26
|
import { getIconClassesForLanguageId } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/getIconClasses';
|
|
27
|
-
import { NotebookDiffViewModel } from '@codingame/monaco-vscode-
|
|
28
|
-
import { NotebookDiffEditorEventDispatcher } from '@codingame/monaco-vscode-
|
|
29
|
-
import { NOTEBOOK_DIFF_CELLS_COLLAPSED, NOTEBOOK_DIFF_HAS_UNCHANGED_CELLS, NOTEBOOK_DIFF_UNCHANGED_CELLS_HIDDEN } from '@codingame/monaco-vscode-
|
|
27
|
+
import { NotebookDiffViewModel } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/diff/notebookDiffViewModel';
|
|
28
|
+
import { NotebookDiffEditorEventDispatcher } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/diff/eventDispatcher';
|
|
29
|
+
import { NOTEBOOK_DIFF_CELLS_COLLAPSED, NOTEBOOK_DIFF_HAS_UNCHANGED_CELLS, NOTEBOOK_DIFF_UNCHANGED_CELLS_HIDDEN } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser';
|
|
30
30
|
import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
|
|
31
|
-
import { DiffEditorHeightCalculatorService } from '@codingame/monaco-vscode-
|
|
31
|
+
import { DiffEditorHeightCalculatorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/diff/editorHeightCalculator';
|
|
32
32
|
import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/reactions/autorun';
|
|
33
33
|
import { transaction } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/transaction';
|
|
34
34
|
|
|
@@ -258,15 +258,15 @@ let WorkbenchUIElementFactory = class WorkbenchUIElementFactory {
|
|
|
258
258
|
const notebookDocument = uri.scheme === Schemas.vscodeNotebookCell ? that.notebookDocumentService.getNotebook(uri) : undefined;
|
|
259
259
|
const cellIndex = Schemas.vscodeNotebookCell ? that.notebookDocumentService.getNotebook(uri)?.getCellIndex(uri) : undefined;
|
|
260
260
|
if (notebookDocument && cellIndex !== undefined) {
|
|
261
|
-
name = ( localize(
|
|
261
|
+
name = ( localize(16762, "Cell {0}", `${cellIndex + 1}`));
|
|
262
262
|
const nb = notebookDocument ? that.notebookService.getNotebookTextModel(notebookDocument?.uri) : undefined;
|
|
263
263
|
const cellLanguage = nb && cellIndex !== undefined ? nb.cells[cellIndex].language : undefined;
|
|
264
264
|
extraClasses = cellLanguage ? getIconClassesForLanguageId(cellLanguage) : undefined;
|
|
265
265
|
}
|
|
266
266
|
} else if (uri.scheme === Schemas.vscodeNotebookCellMetadata || uri.scheme === Schemas.vscodeNotebookCellMetadataDiff) {
|
|
267
|
-
description = ( localize(
|
|
267
|
+
description = ( localize(16763, "Metadata"));
|
|
268
268
|
} else if (uri.scheme === Schemas.vscodeNotebookCellOutput || uri.scheme === Schemas.vscodeNotebookCellOutputDiff) {
|
|
269
|
-
description = ( localize(
|
|
269
|
+
description = ( localize(16764, "Output"));
|
|
270
270
|
}
|
|
271
271
|
label.element.setResource({
|
|
272
272
|
name,
|
package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditorInput.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/pl
|
|
|
5
5
|
import { MultiDiffEditorInput } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput";
|
|
6
6
|
import { IResolvedMultiDiffSource, type IMultiDiffSourceResolver } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService";
|
|
7
7
|
import { IMultiDiffSourceResolverService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService.service";
|
|
8
|
-
import { NotebookDiffViewModel } from "@codingame/monaco-vscode-
|
|
8
|
+
import { NotebookDiffViewModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/diff/notebookDiffViewModel";
|
|
9
9
|
import { NotebookDiffEditorInput } from "../../common/notebookDiffEditorInput.js";
|
|
10
10
|
import { ITextFileService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/textfile/common/textfiles.service";
|
|
11
11
|
export declare const NotebookMultiDiffEditorScheme = "multi-cell-notebook-diff-editor";
|