@codingame/monaco-vscode-notebook-service-override 8.0.4 → 9.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +21 -21
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticsActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.js +1 -1
- 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.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js +26 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.js +4 -4
- 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 +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.js +624 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +13 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.js +1 -1
- 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 +4 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +9 -9
- 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 +12 -12
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +24 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +54 -55
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +22 -22
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +24 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +23 -21
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +297 -21
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +124 -73
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.js +27 -19
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +33 -33
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.js +62 -39
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js +7 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js +7 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +18 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookWorkerServiceImpl.js +15 -40
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js +0 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.js +28 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverServiceImpl.js +55 -45
- package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookSimpleWorker.js +6 -6
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +12 -12
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffCellEditorOptions.js +0 -47
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +0 -1303
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +0 -267
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.js +0 -569
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffNestedCellViewModel.js +0 -115
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/eventDispatcher.js +0 -39
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiff.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +0 -903
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +0 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +0 -397
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffOverviewRuler.js +0 -186
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiffEditorInput.js +0 -107
|
@@ -24,17 +24,17 @@ import { NotebookEditor } from 'vscode/vscode/vs/workbench/contrib/notebook/brow
|
|
|
24
24
|
import { NotebookEditorInput } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookEditorInput';
|
|
25
25
|
import { INotebookService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookService.service';
|
|
26
26
|
import './services/notebookServiceImpl.js';
|
|
27
|
-
import { NotebookSetting, CellUri, CellKind, NotebookWorkingCopyTypeIdentifier } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
27
|
+
import { NotebookSetting, CellUri, CellKind, NotebookCellsChangeType, NotebookWorkingCopyTypeIdentifier } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
28
28
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
29
29
|
import { IUndoRedoService } from 'vscode/vscode/vs/platform/undoRedo/common/undoRedo.service';
|
|
30
30
|
import { INotebookEditorModelResolverService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookEditorModelResolverService.service';
|
|
31
|
-
import { NotebookDiffEditorInput } from '
|
|
32
|
-
import { NotebookTextDiffEditor } from '
|
|
31
|
+
import { NotebookDiffEditorInput } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookDiffEditorInput';
|
|
32
|
+
import { NotebookTextDiffEditor } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor';
|
|
33
33
|
import './services/notebookWorkerServiceImpl.js';
|
|
34
34
|
import { Event } from 'vscode/vscode/vs/base/common/event';
|
|
35
35
|
import './services/notebookEditorServiceImpl.js';
|
|
36
36
|
import { Extensions } from 'vscode/vscode/vs/platform/jsonschemas/common/jsonContributionRegistry';
|
|
37
|
-
import { getFormattedMetadataJSON, getStreamOutputData } from '
|
|
37
|
+
import { getFormattedMetadataJSON, getStreamOutputData, getFormattedOutputJSON } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel';
|
|
38
38
|
import '../common/notebookEditorModelResolverServiceImpl.js';
|
|
39
39
|
import './services/notebookKernelServiceImpl.js';
|
|
40
40
|
import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
@@ -83,6 +83,7 @@ import './contrib/kernelDetection/notebookKernelDetection.js';
|
|
|
83
83
|
import './contrib/cellDiagnostics/cellDiagnosticEditorContrib.js';
|
|
84
84
|
import './contrib/cellDiagnostics/cellDiagnosticsActions.js';
|
|
85
85
|
import './contrib/cellDiagnostics/diagnosticCellStatusBarContrib.js';
|
|
86
|
+
import './contrib/multicursor/notebookMulticursor.js';
|
|
86
87
|
import './diff/notebookDiffActions.js';
|
|
87
88
|
import { editorOptionsRegistry } from 'vscode/vscode/vs/editor/common/config/editorOptions';
|
|
88
89
|
import './services/notebookExecutionStateServiceImpl.js';
|
|
@@ -100,6 +101,8 @@ import { AccessibleViewRegistry } from 'vscode/vscode/vs/platform/accessibility/
|
|
|
100
101
|
import { NotebookAccessibilityHelp } from './notebookAccessibilityHelp.js';
|
|
101
102
|
import { NotebookAccessibleView } from './notebookAccessibleView.js';
|
|
102
103
|
import { DefaultFormatter } from 'vscode/vscode/vs/workbench/contrib/format/browser/formatActionsMultiple';
|
|
104
|
+
import { NotebookMultiTextDiffEditor } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor';
|
|
105
|
+
import { NotebookMultiDiffEditorInput } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditorInput';
|
|
103
106
|
|
|
104
107
|
var NotebookContribution_1;
|
|
105
108
|
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(NotebookEditor, NotebookEditor.ID, 'Notebook Editor'), [
|
|
@@ -108,7 +111,13 @@ var NotebookContribution_1;
|
|
|
108
111
|
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(NotebookTextDiffEditor, NotebookTextDiffEditor.ID, 'Notebook Diff Editor'), [
|
|
109
112
|
( (new SyncDescriptor(NotebookDiffEditorInput)))
|
|
110
113
|
]);
|
|
111
|
-
|
|
114
|
+
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(NotebookMultiTextDiffEditor, NotebookMultiTextDiffEditor.ID, 'Notebook Diff Editor'), [
|
|
115
|
+
( (new SyncDescriptor(NotebookMultiDiffEditorInput)))
|
|
116
|
+
]);
|
|
117
|
+
let NotebookDiffEditorSerializer = class NotebookDiffEditorSerializer {
|
|
118
|
+
constructor(_configurationService) {
|
|
119
|
+
this._configurationService = _configurationService;
|
|
120
|
+
}
|
|
112
121
|
canSerialize() {
|
|
113
122
|
return true;
|
|
114
123
|
}
|
|
@@ -132,13 +141,20 @@ class NotebookDiffEditorSerializer {
|
|
|
132
141
|
if (!data || !URI.isUri(resource) || !URI.isUri(originalResource) || typeof name !== 'string' || typeof viewType !== 'string') {
|
|
133
142
|
return undefined;
|
|
134
143
|
}
|
|
135
|
-
|
|
136
|
-
|
|
144
|
+
if (this._configurationService.getValue('notebook.experimental.enableNewDiffEditor')) {
|
|
145
|
+
return NotebookMultiDiffEditorInput.create(instantiationService, resource, name, undefined, originalResource, viewType);
|
|
146
|
+
}
|
|
147
|
+
else {
|
|
148
|
+
return NotebookDiffEditorInput.create(instantiationService, resource, name, undefined, originalResource, viewType);
|
|
149
|
+
}
|
|
137
150
|
}
|
|
138
151
|
static canResolveBackup(editorInput, backupResource) {
|
|
139
152
|
return false;
|
|
140
153
|
}
|
|
141
|
-
}
|
|
154
|
+
};
|
|
155
|
+
NotebookDiffEditorSerializer = ( (__decorate([
|
|
156
|
+
( (__param(0, IConfigurationService)))
|
|
157
|
+
], NotebookDiffEditorSerializer)));
|
|
142
158
|
class NotebookEditorSerializer {
|
|
143
159
|
canSerialize(input) {
|
|
144
160
|
return input.typeId === NotebookEditorInput.ID;
|
|
@@ -328,10 +344,22 @@ let CellInfoContentProvider = class CellInfoContentProvider {
|
|
|
328
344
|
const ref = await this._notebookModelResolverService.resolve(data.notebook);
|
|
329
345
|
let result = null;
|
|
330
346
|
const mode = this._languageService.createById('json');
|
|
347
|
+
const disposables = ( (new DisposableStore()));
|
|
331
348
|
for (const cell of ref.object.notebook.cells) {
|
|
332
349
|
if (cell.handle === data.handle) {
|
|
350
|
+
const cellIndex = ref.object.notebook.cells.indexOf(cell);
|
|
333
351
|
const metadataSource = getFormattedMetadataJSON(ref.object.notebook, cell.metadata, cell.language);
|
|
334
352
|
result = this._modelService.createModel(metadataSource, mode, resource);
|
|
353
|
+
this._disposables.push(disposables.add(ref.object.notebook.onDidChangeContent(e => {
|
|
354
|
+
if (result && ( (e.rawEvents.some(
|
|
355
|
+
event => (event.kind === NotebookCellsChangeType.ChangeCellMetadata || event.kind === NotebookCellsChangeType.ChangeCellLanguage) && event.index === cellIndex
|
|
356
|
+
)))) {
|
|
357
|
+
const value = getFormattedMetadataJSON(ref.object.notebook, cell.metadata, cell.language);
|
|
358
|
+
if (result.getValue() !== value) {
|
|
359
|
+
result.setValue(getFormattedMetadataJSON(ref.object.notebook, cell.metadata, cell.language));
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
})));
|
|
335
363
|
break;
|
|
336
364
|
}
|
|
337
365
|
}
|
|
@@ -340,6 +368,7 @@ let CellInfoContentProvider = class CellInfoContentProvider {
|
|
|
340
368
|
return null;
|
|
341
369
|
}
|
|
342
370
|
const once = result.onWillDispose(() => {
|
|
371
|
+
disposables.dispose();
|
|
343
372
|
once.dispose();
|
|
344
373
|
ref.dispose();
|
|
345
374
|
});
|
|
@@ -381,6 +410,33 @@ let CellInfoContentProvider = class CellInfoContentProvider {
|
|
|
381
410
|
};
|
|
382
411
|
return result;
|
|
383
412
|
}
|
|
413
|
+
async provideOutputsTextContent(resource) {
|
|
414
|
+
const existing = this._modelService.getModel(resource);
|
|
415
|
+
if (existing) {
|
|
416
|
+
return existing;
|
|
417
|
+
}
|
|
418
|
+
const data = CellUri.parseCellPropertyUri(resource, Schemas.vscodeNotebookCellOutput);
|
|
419
|
+
if (!data) {
|
|
420
|
+
return null;
|
|
421
|
+
}
|
|
422
|
+
const ref = await this._notebookModelResolverService.resolve(data.notebook);
|
|
423
|
+
const cell = ref.object.notebook.cells.find(cell => cell.handle === data.handle);
|
|
424
|
+
if (!cell) {
|
|
425
|
+
ref.dispose();
|
|
426
|
+
return null;
|
|
427
|
+
}
|
|
428
|
+
const mode = this._languageService.createById('json');
|
|
429
|
+
const model = this._modelService.createModel(getFormattedOutputJSON(cell.outputs || []), mode, resource, true);
|
|
430
|
+
const cellModelListener = Event.any(cell.onDidChangeOutputs ?? Event.None, cell.onDidChangeOutputItems ?? Event.None)(() => {
|
|
431
|
+
model.setValue(getFormattedOutputJSON(cell.outputs || []));
|
|
432
|
+
});
|
|
433
|
+
const once = model.onWillDispose(() => {
|
|
434
|
+
once.dispose();
|
|
435
|
+
cellModelListener.dispose();
|
|
436
|
+
ref.dispose();
|
|
437
|
+
});
|
|
438
|
+
return model;
|
|
439
|
+
}
|
|
384
440
|
async provideOutputTextContent(resource) {
|
|
385
441
|
const existing = this._modelService.getModel(resource);
|
|
386
442
|
if (existing) {
|
|
@@ -388,7 +444,7 @@ let CellInfoContentProvider = class CellInfoContentProvider {
|
|
|
388
444
|
}
|
|
389
445
|
const data = CellUri.parseCellOutputUri(resource);
|
|
390
446
|
if (!data) {
|
|
391
|
-
return
|
|
447
|
+
return this.provideOutputsTextContent(resource);
|
|
392
448
|
}
|
|
393
449
|
const ref = await this._notebookModelResolverService.resolve(data.notebook);
|
|
394
450
|
const cell = ref.object.notebook.cells.find(cell => !!cell.outputs.find(op => op.outputId === data.outputId || op.alternativeOutputId === data.outputId));
|
|
@@ -589,7 +645,7 @@ for (const editorOption of editorOptionsRegistry) {
|
|
|
589
645
|
}
|
|
590
646
|
const editorOptionsCustomizationSchema = {
|
|
591
647
|
description: ( localize(
|
|
592
|
-
|
|
648
|
+
3265,
|
|
593
649
|
'Settings for code editors used in notebooks. This can be used to customize most editor.* settings.'
|
|
594
650
|
)),
|
|
595
651
|
default: {},
|
|
@@ -604,11 +660,11 @@ const configurationRegistry = ( (Registry.as(Extensions$2.Configuration)));
|
|
|
604
660
|
configurationRegistry.registerConfiguration({
|
|
605
661
|
id: 'notebook',
|
|
606
662
|
order: 100,
|
|
607
|
-
title: ( localize(
|
|
663
|
+
title: ( localize(3266, "Notebook")),
|
|
608
664
|
type: 'object',
|
|
609
665
|
properties: {
|
|
610
666
|
[NotebookSetting.displayOrder]: {
|
|
611
|
-
description: ( localize(
|
|
667
|
+
description: ( localize(3267, "Priority list for output mime types")),
|
|
612
668
|
type: 'array',
|
|
613
669
|
items: {
|
|
614
670
|
type: 'string'
|
|
@@ -617,12 +673,12 @@ configurationRegistry.registerConfiguration({
|
|
|
617
673
|
},
|
|
618
674
|
[NotebookSetting.cellToolbarLocation]: {
|
|
619
675
|
description: ( localize(
|
|
620
|
-
|
|
676
|
+
3268,
|
|
621
677
|
"Where the cell toolbar should be shown, or whether it should be hidden."
|
|
622
678
|
)),
|
|
623
679
|
type: 'object',
|
|
624
680
|
additionalProperties: {
|
|
625
|
-
markdownDescription: ( localize(
|
|
681
|
+
markdownDescription: ( localize(3269, "Configure the cell toolbar position for for specific file types")),
|
|
626
682
|
type: 'string',
|
|
627
683
|
enum: ['left', 'right', 'hidden']
|
|
628
684
|
},
|
|
@@ -632,14 +688,14 @@ configurationRegistry.registerConfiguration({
|
|
|
632
688
|
tags: ['notebookLayout']
|
|
633
689
|
},
|
|
634
690
|
[NotebookSetting.showCellStatusBar]: {
|
|
635
|
-
description: ( localize(
|
|
691
|
+
description: ( localize(3270, "Whether the cell status bar should be shown.")),
|
|
636
692
|
type: 'string',
|
|
637
693
|
enum: ['hidden', 'visible', 'visibleAfterExecute'],
|
|
638
694
|
enumDescriptions: [
|
|
639
|
-
( localize(
|
|
640
|
-
( localize(
|
|
695
|
+
( localize(3271, "The cell Status bar is always hidden.")),
|
|
696
|
+
( localize(3272, "The cell Status bar is always visible.")),
|
|
641
697
|
( localize(
|
|
642
|
-
|
|
698
|
+
3273,
|
|
643
699
|
"The cell Status bar is hidden until the cell has executed. Then it becomes visible to show the execution status."
|
|
644
700
|
))
|
|
645
701
|
],
|
|
@@ -647,14 +703,14 @@ configurationRegistry.registerConfiguration({
|
|
|
647
703
|
tags: ['notebookLayout']
|
|
648
704
|
},
|
|
649
705
|
[NotebookSetting.textDiffEditorPreview]: {
|
|
650
|
-
description: ( localize(
|
|
706
|
+
description: ( localize(3274, "Whether to use the enhanced text diff editor for notebook.")),
|
|
651
707
|
type: 'boolean',
|
|
652
708
|
default: true,
|
|
653
709
|
tags: ['notebookLayout']
|
|
654
710
|
},
|
|
655
711
|
[NotebookSetting.diffOverviewRuler]: {
|
|
656
712
|
description: ( localize(
|
|
657
|
-
|
|
713
|
+
3275,
|
|
658
714
|
"Whether to render the overview ruler in the diff editor for notebook."
|
|
659
715
|
)),
|
|
660
716
|
type: 'boolean',
|
|
@@ -662,21 +718,21 @@ configurationRegistry.registerConfiguration({
|
|
|
662
718
|
tags: ['notebookLayout']
|
|
663
719
|
},
|
|
664
720
|
[NotebookSetting.cellToolbarVisibility]: {
|
|
665
|
-
markdownDescription: ( localize(
|
|
721
|
+
markdownDescription: ( localize(3276, "Whether the cell toolbar should appear on hover or click.")),
|
|
666
722
|
type: 'string',
|
|
667
723
|
enum: ['hover', 'click'],
|
|
668
724
|
default: 'click',
|
|
669
725
|
tags: ['notebookLayout']
|
|
670
726
|
},
|
|
671
727
|
[NotebookSetting.undoRedoPerCell]: {
|
|
672
|
-
description: ( localize(
|
|
728
|
+
description: ( localize(3277, "Whether to use separate undo/redo stack for each cell.")),
|
|
673
729
|
type: 'boolean',
|
|
674
730
|
default: true,
|
|
675
731
|
tags: ['notebookLayout']
|
|
676
732
|
},
|
|
677
733
|
[NotebookSetting.compactView]: {
|
|
678
734
|
description: ( localize(
|
|
679
|
-
|
|
735
|
+
3278,
|
|
680
736
|
"Control whether the notebook editor should be rendered in a compact form. For example, when turned on, it will decrease the left margin width."
|
|
681
737
|
)),
|
|
682
738
|
type: 'boolean',
|
|
@@ -685,7 +741,7 @@ configurationRegistry.registerConfiguration({
|
|
|
685
741
|
},
|
|
686
742
|
[NotebookSetting.focusIndicator]: {
|
|
687
743
|
description: ( localize(
|
|
688
|
-
|
|
744
|
+
3279,
|
|
689
745
|
"Controls where the focus indicator is rendered, either along the cell borders or on the left gutter."
|
|
690
746
|
)),
|
|
691
747
|
type: 'string',
|
|
@@ -694,21 +750,21 @@ configurationRegistry.registerConfiguration({
|
|
|
694
750
|
tags: ['notebookLayout']
|
|
695
751
|
},
|
|
696
752
|
[NotebookSetting.insertToolbarLocation]: {
|
|
697
|
-
description: ( localize(
|
|
753
|
+
description: ( localize(3280, "Control where the insert cell actions should appear.")),
|
|
698
754
|
type: 'string',
|
|
699
755
|
enum: ['betweenCells', 'notebookToolbar', 'both', 'hidden'],
|
|
700
756
|
enumDescriptions: [
|
|
701
|
-
( localize(
|
|
702
|
-
( localize(
|
|
703
|
-
( localize(
|
|
704
|
-
( localize(
|
|
757
|
+
( localize(3281, "A toolbar that appears on hover between cells.")),
|
|
758
|
+
( localize(3282, "The toolbar at the top of the notebook editor.")),
|
|
759
|
+
( localize(3283, "Both toolbars.")),
|
|
760
|
+
( localize(3284, "The insert actions don't appear anywhere.")),
|
|
705
761
|
],
|
|
706
762
|
default: 'both',
|
|
707
763
|
tags: ['notebookLayout']
|
|
708
764
|
},
|
|
709
765
|
[NotebookSetting.globalToolbar]: {
|
|
710
766
|
description: ( localize(
|
|
711
|
-
|
|
767
|
+
3285,
|
|
712
768
|
"Control whether to render a global toolbar inside the notebook editor."
|
|
713
769
|
)),
|
|
714
770
|
type: 'boolean',
|
|
@@ -717,7 +773,7 @@ configurationRegistry.registerConfiguration({
|
|
|
717
773
|
},
|
|
718
774
|
[NotebookSetting.stickyScrollEnabled]: {
|
|
719
775
|
description: ( localize(
|
|
720
|
-
|
|
776
|
+
3286,
|
|
721
777
|
"Experimental. Control whether to render notebook Sticky Scroll headers in the notebook editor."
|
|
722
778
|
)),
|
|
723
779
|
type: 'boolean',
|
|
@@ -726,21 +782,21 @@ configurationRegistry.registerConfiguration({
|
|
|
726
782
|
},
|
|
727
783
|
[NotebookSetting.stickyScrollMode]: {
|
|
728
784
|
description: ( localize(
|
|
729
|
-
|
|
785
|
+
3287,
|
|
730
786
|
"Control whether nested sticky lines appear to stack flat or indented."
|
|
731
787
|
)),
|
|
732
788
|
type: 'string',
|
|
733
789
|
enum: ['flat', 'indented'],
|
|
734
790
|
enumDescriptions: [
|
|
735
|
-
( localize(
|
|
736
|
-
( localize(
|
|
791
|
+
( localize(3288, "Nested sticky lines appear flat.")),
|
|
792
|
+
( localize(3289, "Nested sticky lines appear indented.")),
|
|
737
793
|
],
|
|
738
794
|
default: 'indented',
|
|
739
795
|
tags: ['notebookLayout']
|
|
740
796
|
},
|
|
741
797
|
[NotebookSetting.consolidatedOutputButton]: {
|
|
742
798
|
description: ( localize(
|
|
743
|
-
|
|
799
|
+
3290,
|
|
744
800
|
"Control whether outputs action should be rendered in the output toolbar."
|
|
745
801
|
)),
|
|
746
802
|
type: 'boolean',
|
|
@@ -748,20 +804,20 @@ configurationRegistry.registerConfiguration({
|
|
|
748
804
|
tags: ['notebookLayout']
|
|
749
805
|
},
|
|
750
806
|
[NotebookSetting.showFoldingControls]: {
|
|
751
|
-
description: ( localize(
|
|
807
|
+
description: ( localize(3291, "Controls when the Markdown header folding arrow is shown.")),
|
|
752
808
|
type: 'string',
|
|
753
809
|
enum: ['always', 'never', 'mouseover'],
|
|
754
810
|
enumDescriptions: [
|
|
755
|
-
( localize(
|
|
756
|
-
( localize(
|
|
757
|
-
( localize(
|
|
811
|
+
( localize(3292, "The folding controls are always visible.")),
|
|
812
|
+
( localize(3293, "Never show the folding controls and reduce the gutter size.")),
|
|
813
|
+
( localize(3294, "The folding controls are visible only on mouseover.")),
|
|
758
814
|
],
|
|
759
815
|
default: 'mouseover',
|
|
760
816
|
tags: ['notebookLayout']
|
|
761
817
|
},
|
|
762
818
|
[NotebookSetting.dragAndDropEnabled]: {
|
|
763
819
|
description: ( localize(
|
|
764
|
-
|
|
820
|
+
3295,
|
|
765
821
|
"Control whether the notebook editor should allow moving cells through drag and drop."
|
|
766
822
|
)),
|
|
767
823
|
type: 'boolean',
|
|
@@ -770,7 +826,7 @@ configurationRegistry.registerConfiguration({
|
|
|
770
826
|
},
|
|
771
827
|
[NotebookSetting.consolidatedRunButton]: {
|
|
772
828
|
description: ( localize(
|
|
773
|
-
|
|
829
|
+
3296,
|
|
774
830
|
"Control whether extra actions are shown in a dropdown next to the run button."
|
|
775
831
|
)),
|
|
776
832
|
type: 'boolean',
|
|
@@ -779,7 +835,7 @@ configurationRegistry.registerConfiguration({
|
|
|
779
835
|
},
|
|
780
836
|
[NotebookSetting.globalToolbarShowLabel]: {
|
|
781
837
|
description: ( localize(
|
|
782
|
-
|
|
838
|
+
3297,
|
|
783
839
|
"Control whether the actions on the notebook toolbar should render label or not."
|
|
784
840
|
)),
|
|
785
841
|
type: 'string',
|
|
@@ -789,7 +845,7 @@ configurationRegistry.registerConfiguration({
|
|
|
789
845
|
},
|
|
790
846
|
[NotebookSetting.textOutputLineLimit]: {
|
|
791
847
|
markdownDescription: ( localize(
|
|
792
|
-
|
|
848
|
+
3298,
|
|
793
849
|
"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.",
|
|
794
850
|
'`#notebook.output.scrolling#`'
|
|
795
851
|
)),
|
|
@@ -800,7 +856,7 @@ configurationRegistry.registerConfiguration({
|
|
|
800
856
|
},
|
|
801
857
|
[NotebookSetting.LinkifyOutputFilePaths]: {
|
|
802
858
|
description: ( localize(
|
|
803
|
-
|
|
859
|
+
3299,
|
|
804
860
|
"Control whether to disable filepath links in the output of notebook cells."
|
|
805
861
|
)),
|
|
806
862
|
type: 'boolean',
|
|
@@ -808,14 +864,14 @@ configurationRegistry.registerConfiguration({
|
|
|
808
864
|
tags: ['notebookOutputLayout']
|
|
809
865
|
},
|
|
810
866
|
[NotebookSetting.minimalErrorRendering]: {
|
|
811
|
-
description: ( localize(
|
|
867
|
+
description: ( localize(3300, "Control whether to render error output in a minimal style.")),
|
|
812
868
|
type: 'boolean',
|
|
813
869
|
default: false,
|
|
814
870
|
tags: ['notebookOutputLayout']
|
|
815
871
|
},
|
|
816
872
|
[NotebookSetting.markupFontSize]: {
|
|
817
873
|
markdownDescription: ( localize(
|
|
818
|
-
|
|
874
|
+
3301,
|
|
819
875
|
"Controls the font size in pixels of rendered markup in notebooks. When set to {0}, 120% of {1} is used.",
|
|
820
876
|
'`0`',
|
|
821
877
|
'`#editor.fontSize#`'
|
|
@@ -826,7 +882,7 @@ configurationRegistry.registerConfiguration({
|
|
|
826
882
|
},
|
|
827
883
|
[NotebookSetting.markdownLineHeight]: {
|
|
828
884
|
markdownDescription: ( localize(
|
|
829
|
-
|
|
885
|
+
3302,
|
|
830
886
|
"Controls the line height in pixels of markdown cells in notebooks. When set to {0}, {1} will be used",
|
|
831
887
|
'`0`',
|
|
832
888
|
'`normal`'
|
|
@@ -838,7 +894,7 @@ configurationRegistry.registerConfiguration({
|
|
|
838
894
|
[NotebookSetting.cellEditorOptionsCustomizations]: editorOptionsCustomizationSchema,
|
|
839
895
|
[NotebookSetting.interactiveWindowCollapseCodeCells]: {
|
|
840
896
|
markdownDescription: ( localize(
|
|
841
|
-
|
|
897
|
+
3303,
|
|
842
898
|
"Controls whether code cells in the interactive window are collapsed by default."
|
|
843
899
|
)),
|
|
844
900
|
type: 'string',
|
|
@@ -847,7 +903,7 @@ configurationRegistry.registerConfiguration({
|
|
|
847
903
|
},
|
|
848
904
|
[NotebookSetting.outputLineHeight]: {
|
|
849
905
|
markdownDescription: ( localize(
|
|
850
|
-
|
|
906
|
+
3304,
|
|
851
907
|
"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."
|
|
852
908
|
)),
|
|
853
909
|
type: 'number',
|
|
@@ -856,7 +912,7 @@ configurationRegistry.registerConfiguration({
|
|
|
856
912
|
},
|
|
857
913
|
[NotebookSetting.outputFontSize]: {
|
|
858
914
|
markdownDescription: ( localize(
|
|
859
|
-
|
|
915
|
+
3305,
|
|
860
916
|
"Font size for the output text within notebook cells. When set to 0, {0} is used.",
|
|
861
917
|
'`#editor.fontSize#`'
|
|
862
918
|
)),
|
|
@@ -866,7 +922,7 @@ configurationRegistry.registerConfiguration({
|
|
|
866
922
|
},
|
|
867
923
|
[NotebookSetting.outputFontFamily]: {
|
|
868
924
|
markdownDescription: ( localize(
|
|
869
|
-
|
|
925
|
+
3306,
|
|
870
926
|
"The font family of the output text within notebook cells. When set to empty, the {0} is used.",
|
|
871
927
|
'`#editor.fontFamily#`'
|
|
872
928
|
)),
|
|
@@ -875,7 +931,7 @@ configurationRegistry.registerConfiguration({
|
|
|
875
931
|
},
|
|
876
932
|
[NotebookSetting.outputScrolling]: {
|
|
877
933
|
markdownDescription: ( localize(
|
|
878
|
-
|
|
934
|
+
3307,
|
|
879
935
|
"Initially render notebook outputs in a scrollable region when longer than the limit."
|
|
880
936
|
)),
|
|
881
937
|
type: 'boolean',
|
|
@@ -883,14 +939,14 @@ configurationRegistry.registerConfiguration({
|
|
|
883
939
|
default: typeof product$1.quality === 'string' && product$1.quality !== 'stable'
|
|
884
940
|
},
|
|
885
941
|
[NotebookSetting.outputWordWrap]: {
|
|
886
|
-
markdownDescription: ( localize(
|
|
942
|
+
markdownDescription: ( localize(3308, "Controls whether the lines in output should wrap.")),
|
|
887
943
|
type: 'boolean',
|
|
888
944
|
tags: ['notebookLayout', 'notebookOutputLayout'],
|
|
889
945
|
default: false
|
|
890
946
|
},
|
|
891
947
|
[NotebookSetting.defaultFormatter]: {
|
|
892
948
|
description: ( localize(
|
|
893
|
-
|
|
949
|
+
3309,
|
|
894
950
|
"Defines a default notebook formatter which takes precedence over all other formatter settings. Must be the identifier of an extension contributing a formatter."
|
|
895
951
|
)),
|
|
896
952
|
type: ['string', 'null'],
|
|
@@ -901,7 +957,7 @@ configurationRegistry.registerConfiguration({
|
|
|
901
957
|
},
|
|
902
958
|
[NotebookSetting.formatOnSave]: {
|
|
903
959
|
markdownDescription: ( localize(
|
|
904
|
-
|
|
960
|
+
3310,
|
|
905
961
|
"Format a notebook on save. A formatter must be available, the file must not be saved after delay, and the editor must not be shutting down."
|
|
906
962
|
)),
|
|
907
963
|
type: 'boolean',
|
|
@@ -910,7 +966,7 @@ configurationRegistry.registerConfiguration({
|
|
|
910
966
|
},
|
|
911
967
|
[NotebookSetting.insertFinalNewline]: {
|
|
912
968
|
markdownDescription: ( localize(
|
|
913
|
-
|
|
969
|
+
3311,
|
|
914
970
|
"When enabled, insert a final new line into the end of code cells when saving a notebook."
|
|
915
971
|
)),
|
|
916
972
|
type: 'boolean',
|
|
@@ -919,7 +975,7 @@ configurationRegistry.registerConfiguration({
|
|
|
919
975
|
},
|
|
920
976
|
[NotebookSetting.formatOnCellExecution]: {
|
|
921
977
|
markdownDescription: ( localize(
|
|
922
|
-
|
|
978
|
+
3312,
|
|
923
979
|
"Format a notebook cell upon execution. A formatter must be available."
|
|
924
980
|
)),
|
|
925
981
|
type: 'boolean',
|
|
@@ -927,7 +983,7 @@ configurationRegistry.registerConfiguration({
|
|
|
927
983
|
},
|
|
928
984
|
[NotebookSetting.confirmDeleteRunningCell]: {
|
|
929
985
|
markdownDescription: ( localize(
|
|
930
|
-
|
|
986
|
+
3313,
|
|
931
987
|
"Control whether a confirmation prompt is required to delete a running cell."
|
|
932
988
|
)),
|
|
933
989
|
type: 'boolean',
|
|
@@ -935,7 +991,7 @@ configurationRegistry.registerConfiguration({
|
|
|
935
991
|
},
|
|
936
992
|
[NotebookSetting.findFilters]: {
|
|
937
993
|
markdownDescription: ( localize(
|
|
938
|
-
|
|
994
|
+
3314,
|
|
939
995
|
"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."
|
|
940
996
|
)),
|
|
941
997
|
type: 'object',
|
|
@@ -967,7 +1023,7 @@ configurationRegistry.registerConfiguration({
|
|
|
967
1023
|
},
|
|
968
1024
|
[NotebookSetting.remoteSaving]: {
|
|
969
1025
|
markdownDescription: ( localize(
|
|
970
|
-
|
|
1026
|
+
3315,
|
|
971
1027
|
"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."
|
|
972
1028
|
)),
|
|
973
1029
|
type: 'boolean',
|
|
@@ -976,27 +1032,22 @@ configurationRegistry.registerConfiguration({
|
|
|
976
1032
|
},
|
|
977
1033
|
[NotebookSetting.scrollToRevealCell]: {
|
|
978
1034
|
markdownDescription: ( localize(
|
|
979
|
-
|
|
1035
|
+
3316,
|
|
980
1036
|
"How far to scroll when revealing the next cell upon running {0}.",
|
|
981
1037
|
'notebook.cell.executeAndSelectBelow'
|
|
982
1038
|
)),
|
|
983
1039
|
type: 'string',
|
|
984
1040
|
enum: ['fullCell', 'firstLine', 'none'],
|
|
985
1041
|
markdownEnumDescriptions: [
|
|
986
|
-
( localize(
|
|
987
|
-
( localize(
|
|
988
|
-
( localize(
|
|
1042
|
+
( localize(3317, 'Scroll to fully reveal the next cell.')),
|
|
1043
|
+
( localize(3318, 'Scroll to reveal the first line of the next cell.')),
|
|
1044
|
+
( localize(3319, 'Do not scroll.')),
|
|
989
1045
|
],
|
|
990
1046
|
default: 'fullCell'
|
|
991
1047
|
},
|
|
992
|
-
[NotebookSetting.cellChat]: {
|
|
993
|
-
markdownDescription: ( localize(3362, "Enable experimental floating chat widget in notebooks.")),
|
|
994
|
-
type: 'boolean',
|
|
995
|
-
default: false
|
|
996
|
-
},
|
|
997
1048
|
[NotebookSetting.cellGenerate]: {
|
|
998
1049
|
markdownDescription: ( localize(
|
|
999
|
-
|
|
1050
|
+
3320,
|
|
1000
1051
|
"Enable experimental generate action to create code cell with inline chat enabled."
|
|
1001
1052
|
)),
|
|
1002
1053
|
type: 'boolean',
|
|
@@ -1005,20 +1056,20 @@ configurationRegistry.registerConfiguration({
|
|
|
1005
1056
|
},
|
|
1006
1057
|
[NotebookSetting.notebookVariablesView]: {
|
|
1007
1058
|
markdownDescription: ( localize(
|
|
1008
|
-
|
|
1059
|
+
3321,
|
|
1009
1060
|
"Enable the experimental notebook variables view within the debug panel."
|
|
1010
1061
|
)),
|
|
1011
1062
|
type: 'boolean',
|
|
1012
1063
|
default: false
|
|
1013
1064
|
},
|
|
1014
1065
|
[NotebookSetting.cellFailureDiagnostics]: {
|
|
1015
|
-
markdownDescription: ( localize(
|
|
1066
|
+
markdownDescription: ( localize(3322, "Show available diagnostics for cell failures.")),
|
|
1016
1067
|
type: 'boolean',
|
|
1017
1068
|
default: true
|
|
1018
1069
|
},
|
|
1019
1070
|
[NotebookSetting.outputBackupSizeLimit]: {
|
|
1020
1071
|
markdownDescription: ( localize(
|
|
1021
|
-
|
|
1072
|
+
3323,
|
|
1022
1073
|
"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."
|
|
1023
1074
|
)),
|
|
1024
1075
|
type: 'number',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NOTEBOOK_EDITOR_FOCUSED } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
2
2
|
import { localize } from 'vscode/vscode/vs/nls';
|
|
3
3
|
import { AccessibleViewType, AccessibleContentProvider, AccessibleViewProviderId } from 'vscode/vscode/vs/platform/accessibility/browser/accessibleView';
|
|
4
4
|
import { AccessibilityVerbositySettingId } from 'vscode/vscode/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration';
|
|
@@ -9,7 +9,7 @@ class NotebookAccessibilityHelp {
|
|
|
9
9
|
constructor() {
|
|
10
10
|
this.priority = 105;
|
|
11
11
|
this.name = 'notebook';
|
|
12
|
-
this.when =
|
|
12
|
+
this.when = NOTEBOOK_EDITOR_FOCUSED;
|
|
13
13
|
this.type = AccessibleViewType.Help;
|
|
14
14
|
}
|
|
15
15
|
getProvider(accessor) {
|
|
@@ -25,43 +25,51 @@ class NotebookAccessibilityHelp {
|
|
|
25
25
|
function getAccessibilityHelpText() {
|
|
26
26
|
return [
|
|
27
27
|
( localize(
|
|
28
|
-
|
|
28
|
+
8070,
|
|
29
29
|
'The notebook view is a collection of code and markdown cells. Code cells can be executed and will produce output directly below the cell.'
|
|
30
30
|
)),
|
|
31
31
|
( localize(
|
|
32
|
-
|
|
33
|
-
'The Edit Cell command
|
|
32
|
+
8071,
|
|
33
|
+
'The Edit Cell command{0} will focus on the cell input.',
|
|
34
|
+
'<keybinding:notebook.cell.edit>'
|
|
34
35
|
)),
|
|
35
36
|
( localize(
|
|
36
|
-
|
|
37
|
-
'The Quit Edit command
|
|
37
|
+
8072,
|
|
38
|
+
'The Quit Edit command{0} will set focus on the cell container. The default (Escape) key may need to be pressed twice first exit the virtual cursor if active.',
|
|
39
|
+
'<keybinding:notebook.cell.quitEdit>'
|
|
38
40
|
)),
|
|
39
41
|
( localize(
|
|
40
|
-
|
|
41
|
-
'The Focus Output command
|
|
42
|
+
8073,
|
|
43
|
+
'The Focus Output command{0} will set focus in the cell\'s output.',
|
|
44
|
+
'<keybinding:notebook.cell.focusInOutput>'
|
|
42
45
|
)),
|
|
43
46
|
( localize(
|
|
44
|
-
|
|
45
|
-
'The Focus Next Cell Editor command
|
|
47
|
+
8074,
|
|
48
|
+
'The Focus Next Cell Editor command{0} will set focus in the next cell\'s editor.',
|
|
49
|
+
'<keybinding:notebook.focusNextEditor>'
|
|
46
50
|
)),
|
|
47
51
|
( localize(
|
|
48
|
-
|
|
49
|
-
'The Focus Previous Cell Editor command
|
|
52
|
+
8075,
|
|
53
|
+
'The Focus Previous Cell Editor command{0} will set focus in the previous cell\'s editor.',
|
|
54
|
+
'<keybinding:notebook.focusPreviousEditor>'
|
|
50
55
|
)),
|
|
51
56
|
( localize(
|
|
52
|
-
|
|
57
|
+
8076,
|
|
53
58
|
'The up and down arrows will also move focus between cells while focused on the outer cell container.'
|
|
54
59
|
)),
|
|
55
60
|
( localize(
|
|
56
|
-
|
|
57
|
-
'The Execute Cell command
|
|
61
|
+
8077,
|
|
62
|
+
'The Execute Cell command{0} executes the cell that currently has focus.',
|
|
63
|
+
'<keybinding:notebook.cell.executeAndFocusContainer>'
|
|
58
64
|
)),
|
|
59
65
|
( localize(
|
|
60
|
-
|
|
61
|
-
'The Insert Cell Above
|
|
66
|
+
8078,
|
|
67
|
+
'The Insert Cell Above{0} and Below{1} commands will create new empty code cells.',
|
|
68
|
+
'<keybinding:notebook.cell.insertCodeCellAbove>',
|
|
69
|
+
'<keybinding:notebook.cell.insertCodeCellBelow>'
|
|
62
70
|
)),
|
|
63
71
|
( localize(
|
|
64
|
-
|
|
72
|
+
8079,
|
|
65
73
|
'The Change Cell to Code/Markdown commands are used to switch between cell types.'
|
|
66
74
|
))
|
|
67
75
|
].join('\n');
|