@codingame/monaco-vscode-notebook-service-override 9.0.2 → 10.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.
Files changed (60) hide show
  1. package/package.json +2 -2
  2. package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +16 -19
  3. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +62 -63
  4. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticsActions.js +4 -6
  5. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.js +5 -5
  6. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js +8 -9
  7. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js +35 -37
  8. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookBreakpoints.js +1 -2
  9. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookCellPausing.js +1 -2
  10. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorHint/emptyCellEditorHint.js +2 -2
  11. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js +16 -17
  12. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.js +17 -20
  13. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.js +15 -18
  14. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.js +4 -6
  15. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/kernelDetection/notebookKernelDetection.js +1 -2
  16. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.js +1 -1
  17. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/marker/markerProvider.js +2 -2
  18. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.js +319 -67
  19. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +64 -61
  20. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.js +2 -2
  21. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesDataSource.js +1 -1
  22. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.js +10 -9
  23. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.js +48 -24
  24. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +35 -37
  25. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/profile/notebookProfile.js +1 -1
  26. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.js +45 -31
  27. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.js +4 -5
  28. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/undoRedo/notebookUndoRedo.js +2 -2
  29. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/viewportWarmup/viewportWarmup.js +2 -2
  30. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +124 -71
  31. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +179 -7
  32. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +52 -55
  33. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +30 -32
  34. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +28 -30
  35. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +17 -18
  36. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js +7 -7
  37. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.js +20 -22
  38. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +126 -46
  39. package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +171 -83
  40. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.js +19 -19
  41. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibleView.js +5 -6
  42. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +33 -33
  43. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.js +4 -5
  44. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js +1 -1
  45. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionStateServiceImpl.js +6 -6
  46. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.js +7 -8
  47. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelServiceImpl.js +3 -5
  48. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js +6 -9
  49. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js +1 -1
  50. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +13 -21
  51. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookWorkerServiceImpl.js +90 -39
  52. package/vscode/src/vs/workbench/contrib/notebook/common/model/cellEdit.js +3 -5
  53. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.js +40 -31
  54. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverServiceImpl.js +7 -7
  55. package/vscode/src/vs/workbench/contrib/notebook/common/notebookOutputRenderer.js +10 -11
  56. package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookSimpleWorker.js +29 -55
  57. package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +15 -17
  58. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +12 -14
  59. package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopy.js +2 -4
  60. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js +0 -33
@@ -6,25 +6,22 @@ import { isEqual, extname } from 'vscode/vscode/vs/base/common/resources';
6
6
  import { assertType } from 'vscode/vscode/vs/base/common/types';
7
7
  import { URI } from 'vscode/vscode/vs/base/common/uri';
8
8
  import { toFormattedString } from 'vscode/vscode/vs/base/common/jsonFormatter';
9
- import { DefaultEndOfLine } from 'vscode/vscode/vs/editor/common/model';
10
9
  import { IModelService } from 'vscode/vscode/vs/editor/common/services/model';
11
10
  import { ILanguageService } from 'vscode/vscode/vs/editor/common/languages/language';
12
11
  import { ITextModelService } from 'vscode/vscode/vs/editor/common/services/resolverService';
13
12
  import { localize } from 'vscode/vscode/vs/nls';
14
13
  import { Extensions as Extensions$2 } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
15
14
  import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
16
- import 'vscode/vscode/vs/platform/instantiation/common/extensions';
17
15
  import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
18
- import { LifecyclePhase } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
19
16
  import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
20
17
  import { EditorPaneDescriptor } from 'vscode/vscode/vs/workbench/browser/editor';
21
- import { Extensions as Extensions$1, registerWorkbenchContribution2, WorkbenchPhase } from 'vscode/vscode/vs/workbench/common/contributions';
18
+ import { Extensions as Extensions$1, registerWorkbenchContribution2 } from 'vscode/vscode/vs/workbench/common/contributions';
22
19
  import { EditorExtensions } from 'vscode/vscode/vs/workbench/common/editor';
23
20
  import { NotebookEditor } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookEditor';
24
21
  import { NotebookEditorInput } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookEditorInput';
25
22
  import { INotebookService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookService.service';
26
23
  import './services/notebookServiceImpl.js';
27
- import { NotebookSetting, CellUri, CellKind, NotebookCellsChangeType, NotebookWorkingCopyTypeIdentifier } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
24
+ import { NotebookSetting, CellUri, CellKind, NotebookCellsChangeType, NotebookMetadataUri, NotebookWorkingCopyTypeIdentifier } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
28
25
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
29
26
  import { IUndoRedoService } from 'vscode/vscode/vs/platform/undoRedo/common/undoRedo.service';
30
27
  import { INotebookEditorModelResolverService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookEditorModelResolverService.service';
@@ -34,7 +31,7 @@ import './services/notebookWorkerServiceImpl.js';
34
31
  import { Event } from 'vscode/vscode/vs/base/common/event';
35
32
  import './services/notebookEditorServiceImpl.js';
36
33
  import { Extensions } from 'vscode/vscode/vs/platform/jsonschemas/common/jsonContributionRegistry';
37
- import { getFormattedMetadataJSON, getStreamOutputData, getFormattedOutputJSON } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel';
34
+ import { getStreamOutputData, getFormattedOutputJSON } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel';
38
35
  import '../common/notebookEditorModelResolverServiceImpl.js';
39
36
  import './services/notebookKernelServiceImpl.js';
40
37
  import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions.service';
@@ -43,9 +40,6 @@ import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/c
43
40
  import { ILabelService } from 'vscode/vscode/vs/platform/label/common/label.service';
44
41
  import { IEditorGroupsService } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
45
42
  import './services/notebookRendererMessagingServiceImpl.js';
46
- import 'vscode/vscode/vs/workbench/services/outline/browser/outline';
47
- import 'vscode/vscode/vs/editor/contrib/documentSymbols/browser/outlineModel';
48
- import './viewModel/notebookOutlineEntryFactory.js';
49
43
  import 'vscode/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
50
44
  import './controller/insertCellActions.js';
51
45
  import './controller/executeActions.js';
@@ -103,6 +97,21 @@ import { NotebookAccessibleView } from './notebookAccessibleView.js';
103
97
  import { DefaultFormatter } from 'vscode/vscode/vs/workbench/contrib/format/browser/formatActionsMultiple';
104
98
  import { NotebookMultiTextDiffEditor } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor';
105
99
  import { NotebookMultiDiffEditorInput } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditorInput';
100
+ import { getFormattedMetadataJSON } from 'vscode/vscode/vs/workbench/contrib/notebook/common/model/notebookCellTextModel';
101
+ import 'vscode/vscode/vs/base/browser/dom';
102
+ import 'vscode/vscode/vs/base/browser/dompurify/dompurify';
103
+ import 'vscode/vscode/vs/base/browser/browser';
104
+ import 'vscode/vscode/vs/base/common/keyCodes';
105
+ import 'vscode/vscode/vs/base/common/platform';
106
+ import 'vscode/vscode/vs/base/common/themables';
107
+ import 'vscode/vscode/vs/base/common/filters';
108
+ import 'vscode/vscode/vs/base/common/strings';
109
+ import 'vscode/vscode/vs/editor/contrib/documentSymbols/browser/outlineModel';
110
+ import 'vscode/vscode/vs/base/common/codicons';
111
+ import 'vscode/vscode/vs/platform/markers/common/markers';
112
+ import 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookIcons';
113
+ import 'vscode/vscode/vs/editor/common/languages';
114
+ import { getFormattedNotebookMetadataJSON } from 'vscode/vscode/vs/workbench/contrib/notebook/common/model/notebookMetadataTextModel';
106
115
 
107
116
  var NotebookContribution_1;
108
117
  ( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(NotebookEditor, NotebookEditor.ID, 'Notebook Editor'), [
@@ -269,7 +278,7 @@ let CellContentProvider = class CellContentProvider {
269
278
  if (( (cell.uri.toString())) === ( (resource.toString()))) {
270
279
  const bufferFactory = {
271
280
  create: (defaultEOL) => {
272
- const newEOL = (defaultEOL === DefaultEndOfLine.CRLF ? '\r\n' : '\n');
281
+ const newEOL = (defaultEOL === 2 ? '\r\n' : '\n');
273
282
  cell.textBuffer.setEOL(newEOL);
274
283
  return { textBuffer: cell.textBuffer, disposable: Disposable.None };
275
284
  },
@@ -348,15 +357,15 @@ let CellInfoContentProvider = class CellInfoContentProvider {
348
357
  for (const cell of ref.object.notebook.cells) {
349
358
  if (cell.handle === data.handle) {
350
359
  const cellIndex = ref.object.notebook.cells.indexOf(cell);
351
- const metadataSource = getFormattedMetadataJSON(ref.object.notebook, cell.metadata, cell.language);
360
+ const metadataSource = getFormattedMetadataJSON(ref.object.notebook.transientOptions.transientCellMetadata, cell.metadata, cell.language);
352
361
  result = this._modelService.createModel(metadataSource, mode, resource);
353
362
  this._disposables.push(disposables.add(ref.object.notebook.onDidChangeContent(e => {
354
363
  if (result && ( (e.rawEvents.some(
355
364
  event => (event.kind === NotebookCellsChangeType.ChangeCellMetadata || event.kind === NotebookCellsChangeType.ChangeCellLanguage) && event.index === cellIndex
356
365
  )))) {
357
- const value = getFormattedMetadataJSON(ref.object.notebook, cell.metadata, cell.language);
366
+ const value = getFormattedMetadataJSON(ref.object.notebook.transientOptions.transientCellMetadata, cell.metadata, cell.language);
358
367
  if (result.getValue() !== value) {
359
- result.setValue(getFormattedMetadataJSON(ref.object.notebook, cell.metadata, cell.language));
368
+ result.setValue(getFormattedMetadataJSON(ref.object.notebook.transientOptions.transientCellMetadata, cell.metadata, cell.language));
360
369
  }
361
370
  }
362
371
  })));
@@ -481,6 +490,72 @@ CellInfoContentProvider = ( (__decorate([
481
490
  ( (__param(3, ILabelService))),
482
491
  ( (__param(4, INotebookEditorModelResolverService)))
483
492
  ], CellInfoContentProvider)));
493
+ let NotebookMetadataContentProvider = class NotebookMetadataContentProvider {
494
+ static { this.ID = 'workbench.contrib.notebookMetadataContentProvider'; }
495
+ constructor(textModelService, _modelService, _languageService, _labelService, _notebookModelResolverService) {
496
+ this._modelService = _modelService;
497
+ this._languageService = _languageService;
498
+ this._labelService = _labelService;
499
+ this._notebookModelResolverService = _notebookModelResolverService;
500
+ this._disposables = [];
501
+ this._disposables.push(textModelService.registerTextModelContentProvider(Schemas.vscodeNotebookMetadata, {
502
+ provideTextContent: this.provideMetadataTextContent.bind(this)
503
+ }));
504
+ this._disposables.push(this._labelService.registerFormatter({
505
+ scheme: Schemas.vscodeNotebookMetadata,
506
+ formatting: {
507
+ label: '${path} (metadata)',
508
+ separator: '/'
509
+ }
510
+ }));
511
+ }
512
+ dispose() {
513
+ dispose(this._disposables);
514
+ }
515
+ async provideMetadataTextContent(resource) {
516
+ const existing = this._modelService.getModel(resource);
517
+ if (existing) {
518
+ return existing;
519
+ }
520
+ const data = NotebookMetadataUri.parse(resource);
521
+ if (!data) {
522
+ return null;
523
+ }
524
+ const ref = await this._notebookModelResolverService.resolve(data);
525
+ let result = null;
526
+ const mode = this._languageService.createById('json');
527
+ const disposables = ( (new DisposableStore()));
528
+ const metadataSource = getFormattedNotebookMetadataJSON(ref.object.notebook.transientOptions.transientDocumentMetadata, ref.object.notebook.metadata);
529
+ result = this._modelService.createModel(metadataSource, mode, resource);
530
+ if (!result) {
531
+ ref.dispose();
532
+ return null;
533
+ }
534
+ this._disposables.push(disposables.add(ref.object.notebook.onDidChangeContent(e => {
535
+ if (result && ( (e.rawEvents.some(
536
+ event => (event.kind === NotebookCellsChangeType.ChangeCellContent || event.kind === NotebookCellsChangeType.ChangeDocumentMetadata || event.kind === NotebookCellsChangeType.ModelChange)
537
+ )))) {
538
+ const value = getFormattedNotebookMetadataJSON(ref.object.notebook.transientOptions.transientDocumentMetadata, ref.object.notebook.metadata);
539
+ if (result.getValue() !== value) {
540
+ result.setValue(value);
541
+ }
542
+ }
543
+ })));
544
+ const once = result.onWillDispose(() => {
545
+ disposables.dispose();
546
+ once.dispose();
547
+ ref.dispose();
548
+ });
549
+ return result;
550
+ }
551
+ };
552
+ NotebookMetadataContentProvider = ( (__decorate([
553
+ ( (__param(0, ITextModelService))),
554
+ ( (__param(1, IModelService))),
555
+ ( (__param(2, ILanguageService))),
556
+ ( (__param(3, ILabelService))),
557
+ ( (__param(4, INotebookEditorModelResolverService)))
558
+ ], NotebookMetadataContentProvider)));
484
559
  class RegisterSchemasContribution extends Disposable {
485
560
  static { this.ID = 'workbench.contrib.registerCellSchemas'; }
486
561
  constructor() {
@@ -560,7 +635,7 @@ let SimpleNotebookWorkingCopyEditorHandler = class SimpleNotebookWorkingCopyEdit
560
635
  }
561
636
  handlesSync(workingCopy) {
562
637
  const viewType = this._getViewType(workingCopy);
563
- if (!viewType || viewType === 'interactive' || extname(workingCopy.resource) === '.replNotebook') {
638
+ if (!viewType || viewType === 'interactive') {
564
639
  return undefined;
565
640
  }
566
641
  return viewType;
@@ -579,7 +654,11 @@ let SimpleNotebookWorkingCopyEditorHandler = class SimpleNotebookWorkingCopyEdit
579
654
  this._register(this._workingCopyEditorService.registerHandler(this));
580
655
  }
581
656
  _getViewType(workingCopy) {
582
- return NotebookWorkingCopyTypeIdentifier.parse(workingCopy.typeId);
657
+ const notebookType = NotebookWorkingCopyTypeIdentifier.parse(workingCopy.typeId);
658
+ if (notebookType && notebookType.viewType === notebookType.notebookType) {
659
+ return notebookType?.viewType;
660
+ }
661
+ return undefined;
583
662
  }
584
663
  };
585
664
  SimpleNotebookWorkingCopyEditorHandler = ( (__decorate([
@@ -614,14 +693,15 @@ NotebookLanguageSelectorScoreRefine = ( (__decorate([
614
693
  ( (__param(1, ILanguageFeaturesService)))
615
694
  ], NotebookLanguageSelectorScoreRefine)));
616
695
  const workbenchContributionsRegistry = ( (Registry.as(Extensions$1.Workbench)));
617
- registerWorkbenchContribution2(NotebookContribution.ID, NotebookContribution, WorkbenchPhase.BlockStartup);
618
- registerWorkbenchContribution2(CellContentProvider.ID, CellContentProvider, WorkbenchPhase.BlockStartup);
619
- registerWorkbenchContribution2(CellInfoContentProvider.ID, CellInfoContentProvider, WorkbenchPhase.BlockStartup);
620
- registerWorkbenchContribution2(RegisterSchemasContribution.ID, RegisterSchemasContribution, WorkbenchPhase.BlockStartup);
621
- registerWorkbenchContribution2(NotebookEditorManager.ID, NotebookEditorManager, WorkbenchPhase.BlockRestore);
622
- registerWorkbenchContribution2(NotebookLanguageSelectorScoreRefine.ID, NotebookLanguageSelectorScoreRefine, WorkbenchPhase.BlockRestore);
623
- registerWorkbenchContribution2(SimpleNotebookWorkingCopyEditorHandler.ID, SimpleNotebookWorkingCopyEditorHandler, WorkbenchPhase.BlockRestore);
624
- workbenchContributionsRegistry.registerWorkbenchContribution(NotebookVariables, LifecyclePhase.Eventually);
696
+ registerWorkbenchContribution2(NotebookContribution.ID, NotebookContribution, 1 );
697
+ registerWorkbenchContribution2(CellContentProvider.ID, CellContentProvider, 1 );
698
+ registerWorkbenchContribution2(CellInfoContentProvider.ID, CellInfoContentProvider, 1 );
699
+ registerWorkbenchContribution2(NotebookMetadataContentProvider.ID, NotebookMetadataContentProvider, 1 );
700
+ registerWorkbenchContribution2(RegisterSchemasContribution.ID, RegisterSchemasContribution, 1 );
701
+ registerWorkbenchContribution2(NotebookEditorManager.ID, NotebookEditorManager, 2 );
702
+ registerWorkbenchContribution2(NotebookLanguageSelectorScoreRefine.ID, NotebookLanguageSelectorScoreRefine, 2 );
703
+ registerWorkbenchContribution2(SimpleNotebookWorkingCopyEditorHandler.ID, SimpleNotebookWorkingCopyEditorHandler, 2 );
704
+ workbenchContributionsRegistry.registerWorkbenchContribution(NotebookVariables, 4 );
625
705
  AccessibleViewRegistry.register(( (new NotebookAccessibleView())));
626
706
  AccessibleViewRegistry.register(( (new NotebookAccessibilityHelp())));
627
707
  const schemas = {};
@@ -645,7 +725,7 @@ for (const editorOption of editorOptionsRegistry) {
645
725
  }
646
726
  const editorOptionsCustomizationSchema = {
647
727
  description: ( localize(
648
- 3265,
728
+ 3300,
649
729
  'Settings for code editors used in notebooks. This can be used to customize most editor.* settings.'
650
730
  )),
651
731
  default: {},
@@ -660,11 +740,11 @@ const configurationRegistry = ( (Registry.as(Extensions$2.Configuration)));
660
740
  configurationRegistry.registerConfiguration({
661
741
  id: 'notebook',
662
742
  order: 100,
663
- title: ( localize(3266, "Notebook")),
743
+ title: ( localize(3301, "Notebook")),
664
744
  type: 'object',
665
745
  properties: {
666
746
  [NotebookSetting.displayOrder]: {
667
- description: ( localize(3267, "Priority list for output mime types")),
747
+ description: ( localize(3302, "Priority list for output mime types")),
668
748
  type: 'array',
669
749
  items: {
670
750
  type: 'string'
@@ -673,12 +753,12 @@ configurationRegistry.registerConfiguration({
673
753
  },
674
754
  [NotebookSetting.cellToolbarLocation]: {
675
755
  description: ( localize(
676
- 3268,
756
+ 3303,
677
757
  "Where the cell toolbar should be shown, or whether it should be hidden."
678
758
  )),
679
759
  type: 'object',
680
760
  additionalProperties: {
681
- markdownDescription: ( localize(3269, "Configure the cell toolbar position for for specific file types")),
761
+ markdownDescription: ( localize(3304, "Configure the cell toolbar position for for specific file types")),
682
762
  type: 'string',
683
763
  enum: ['left', 'right', 'hidden']
684
764
  },
@@ -688,14 +768,14 @@ configurationRegistry.registerConfiguration({
688
768
  tags: ['notebookLayout']
689
769
  },
690
770
  [NotebookSetting.showCellStatusBar]: {
691
- description: ( localize(3270, "Whether the cell status bar should be shown.")),
771
+ description: ( localize(3305, "Whether the cell status bar should be shown.")),
692
772
  type: 'string',
693
773
  enum: ['hidden', 'visible', 'visibleAfterExecute'],
694
774
  enumDescriptions: [
695
- ( localize(3271, "The cell Status bar is always hidden.")),
696
- ( localize(3272, "The cell Status bar is always visible.")),
775
+ ( localize(3306, "The cell Status bar is always hidden.")),
776
+ ( localize(3307, "The cell Status bar is always visible.")),
697
777
  ( localize(
698
- 3273,
778
+ 3308,
699
779
  "The cell Status bar is hidden until the cell has executed. Then it becomes visible to show the execution status."
700
780
  ))
701
781
  ],
@@ -703,14 +783,14 @@ configurationRegistry.registerConfiguration({
703
783
  tags: ['notebookLayout']
704
784
  },
705
785
  [NotebookSetting.textDiffEditorPreview]: {
706
- description: ( localize(3274, "Whether to use the enhanced text diff editor for notebook.")),
786
+ description: ( localize(3309, "Whether to use the enhanced text diff editor for notebook.")),
707
787
  type: 'boolean',
708
788
  default: true,
709
789
  tags: ['notebookLayout']
710
790
  },
711
791
  [NotebookSetting.diffOverviewRuler]: {
712
792
  description: ( localize(
713
- 3275,
793
+ 3310,
714
794
  "Whether to render the overview ruler in the diff editor for notebook."
715
795
  )),
716
796
  type: 'boolean',
@@ -718,21 +798,21 @@ configurationRegistry.registerConfiguration({
718
798
  tags: ['notebookLayout']
719
799
  },
720
800
  [NotebookSetting.cellToolbarVisibility]: {
721
- markdownDescription: ( localize(3276, "Whether the cell toolbar should appear on hover or click.")),
801
+ markdownDescription: ( localize(3311, "Whether the cell toolbar should appear on hover or click.")),
722
802
  type: 'string',
723
803
  enum: ['hover', 'click'],
724
804
  default: 'click',
725
805
  tags: ['notebookLayout']
726
806
  },
727
807
  [NotebookSetting.undoRedoPerCell]: {
728
- description: ( localize(3277, "Whether to use separate undo/redo stack for each cell.")),
808
+ description: ( localize(3312, "Whether to use separate undo/redo stack for each cell.")),
729
809
  type: 'boolean',
730
810
  default: true,
731
811
  tags: ['notebookLayout']
732
812
  },
733
813
  [NotebookSetting.compactView]: {
734
814
  description: ( localize(
735
- 3278,
815
+ 3313,
736
816
  "Control whether the notebook editor should be rendered in a compact form. For example, when turned on, it will decrease the left margin width."
737
817
  )),
738
818
  type: 'boolean',
@@ -741,7 +821,7 @@ configurationRegistry.registerConfiguration({
741
821
  },
742
822
  [NotebookSetting.focusIndicator]: {
743
823
  description: ( localize(
744
- 3279,
824
+ 3314,
745
825
  "Controls where the focus indicator is rendered, either along the cell borders or on the left gutter."
746
826
  )),
747
827
  type: 'string',
@@ -750,21 +830,21 @@ configurationRegistry.registerConfiguration({
750
830
  tags: ['notebookLayout']
751
831
  },
752
832
  [NotebookSetting.insertToolbarLocation]: {
753
- description: ( localize(3280, "Control where the insert cell actions should appear.")),
833
+ description: ( localize(3315, "Control where the insert cell actions should appear.")),
754
834
  type: 'string',
755
835
  enum: ['betweenCells', 'notebookToolbar', 'both', 'hidden'],
756
836
  enumDescriptions: [
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.")),
837
+ ( localize(3316, "A toolbar that appears on hover between cells.")),
838
+ ( localize(3317, "The toolbar at the top of the notebook editor.")),
839
+ ( localize(3318, "Both toolbars.")),
840
+ ( localize(3319, "The insert actions don't appear anywhere.")),
761
841
  ],
762
842
  default: 'both',
763
843
  tags: ['notebookLayout']
764
844
  },
765
845
  [NotebookSetting.globalToolbar]: {
766
846
  description: ( localize(
767
- 3285,
847
+ 3320,
768
848
  "Control whether to render a global toolbar inside the notebook editor."
769
849
  )),
770
850
  type: 'boolean',
@@ -773,7 +853,7 @@ configurationRegistry.registerConfiguration({
773
853
  },
774
854
  [NotebookSetting.stickyScrollEnabled]: {
775
855
  description: ( localize(
776
- 3286,
856
+ 3321,
777
857
  "Experimental. Control whether to render notebook Sticky Scroll headers in the notebook editor."
778
858
  )),
779
859
  type: 'boolean',
@@ -782,21 +862,21 @@ configurationRegistry.registerConfiguration({
782
862
  },
783
863
  [NotebookSetting.stickyScrollMode]: {
784
864
  description: ( localize(
785
- 3287,
865
+ 3322,
786
866
  "Control whether nested sticky lines appear to stack flat or indented."
787
867
  )),
788
868
  type: 'string',
789
869
  enum: ['flat', 'indented'],
790
870
  enumDescriptions: [
791
- ( localize(3288, "Nested sticky lines appear flat.")),
792
- ( localize(3289, "Nested sticky lines appear indented.")),
871
+ ( localize(3323, "Nested sticky lines appear flat.")),
872
+ ( localize(3324, "Nested sticky lines appear indented.")),
793
873
  ],
794
874
  default: 'indented',
795
875
  tags: ['notebookLayout']
796
876
  },
797
877
  [NotebookSetting.consolidatedOutputButton]: {
798
878
  description: ( localize(
799
- 3290,
879
+ 3325,
800
880
  "Control whether outputs action should be rendered in the output toolbar."
801
881
  )),
802
882
  type: 'boolean',
@@ -804,20 +884,20 @@ configurationRegistry.registerConfiguration({
804
884
  tags: ['notebookLayout']
805
885
  },
806
886
  [NotebookSetting.showFoldingControls]: {
807
- description: ( localize(3291, "Controls when the Markdown header folding arrow is shown.")),
887
+ description: ( localize(3326, "Controls when the Markdown header folding arrow is shown.")),
808
888
  type: 'string',
809
889
  enum: ['always', 'never', 'mouseover'],
810
890
  enumDescriptions: [
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.")),
891
+ ( localize(3327, "The folding controls are always visible.")),
892
+ ( localize(3328, "Never show the folding controls and reduce the gutter size.")),
893
+ ( localize(3329, "The folding controls are visible only on mouseover.")),
814
894
  ],
815
895
  default: 'mouseover',
816
896
  tags: ['notebookLayout']
817
897
  },
818
898
  [NotebookSetting.dragAndDropEnabled]: {
819
899
  description: ( localize(
820
- 3295,
900
+ 3330,
821
901
  "Control whether the notebook editor should allow moving cells through drag and drop."
822
902
  )),
823
903
  type: 'boolean',
@@ -826,7 +906,7 @@ configurationRegistry.registerConfiguration({
826
906
  },
827
907
  [NotebookSetting.consolidatedRunButton]: {
828
908
  description: ( localize(
829
- 3296,
909
+ 3331,
830
910
  "Control whether extra actions are shown in a dropdown next to the run button."
831
911
  )),
832
912
  type: 'boolean',
@@ -835,7 +915,7 @@ configurationRegistry.registerConfiguration({
835
915
  },
836
916
  [NotebookSetting.globalToolbarShowLabel]: {
837
917
  description: ( localize(
838
- 3297,
918
+ 3332,
839
919
  "Control whether the actions on the notebook toolbar should render label or not."
840
920
  )),
841
921
  type: 'string',
@@ -845,7 +925,7 @@ configurationRegistry.registerConfiguration({
845
925
  },
846
926
  [NotebookSetting.textOutputLineLimit]: {
847
927
  markdownDescription: ( localize(
848
- 3298,
928
+ 3333,
849
929
  "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.",
850
930
  '`#notebook.output.scrolling#`'
851
931
  )),
@@ -856,7 +936,7 @@ configurationRegistry.registerConfiguration({
856
936
  },
857
937
  [NotebookSetting.LinkifyOutputFilePaths]: {
858
938
  description: ( localize(
859
- 3299,
939
+ 3334,
860
940
  "Control whether to disable filepath links in the output of notebook cells."
861
941
  )),
862
942
  type: 'boolean',
@@ -864,14 +944,14 @@ configurationRegistry.registerConfiguration({
864
944
  tags: ['notebookOutputLayout']
865
945
  },
866
946
  [NotebookSetting.minimalErrorRendering]: {
867
- description: ( localize(3300, "Control whether to render error output in a minimal style.")),
947
+ description: ( localize(3335, "Control whether to render error output in a minimal style.")),
868
948
  type: 'boolean',
869
949
  default: false,
870
950
  tags: ['notebookOutputLayout']
871
951
  },
872
952
  [NotebookSetting.markupFontSize]: {
873
953
  markdownDescription: ( localize(
874
- 3301,
954
+ 3336,
875
955
  "Controls the font size in pixels of rendered markup in notebooks. When set to {0}, 120% of {1} is used.",
876
956
  '`0`',
877
957
  '`#editor.fontSize#`'
@@ -882,7 +962,7 @@ configurationRegistry.registerConfiguration({
882
962
  },
883
963
  [NotebookSetting.markdownLineHeight]: {
884
964
  markdownDescription: ( localize(
885
- 3302,
965
+ 3337,
886
966
  "Controls the line height in pixels of markdown cells in notebooks. When set to {0}, {1} will be used",
887
967
  '`0`',
888
968
  '`normal`'
@@ -894,7 +974,7 @@ configurationRegistry.registerConfiguration({
894
974
  [NotebookSetting.cellEditorOptionsCustomizations]: editorOptionsCustomizationSchema,
895
975
  [NotebookSetting.interactiveWindowCollapseCodeCells]: {
896
976
  markdownDescription: ( localize(
897
- 3303,
977
+ 3338,
898
978
  "Controls whether code cells in the interactive window are collapsed by default."
899
979
  )),
900
980
  type: 'string',
@@ -903,7 +983,7 @@ configurationRegistry.registerConfiguration({
903
983
  },
904
984
  [NotebookSetting.outputLineHeight]: {
905
985
  markdownDescription: ( localize(
906
- 3304,
986
+ 3339,
907
987
  "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."
908
988
  )),
909
989
  type: 'number',
@@ -912,7 +992,7 @@ configurationRegistry.registerConfiguration({
912
992
  },
913
993
  [NotebookSetting.outputFontSize]: {
914
994
  markdownDescription: ( localize(
915
- 3305,
995
+ 3340,
916
996
  "Font size for the output text within notebook cells. When set to 0, {0} is used.",
917
997
  '`#editor.fontSize#`'
918
998
  )),
@@ -922,7 +1002,7 @@ configurationRegistry.registerConfiguration({
922
1002
  },
923
1003
  [NotebookSetting.outputFontFamily]: {
924
1004
  markdownDescription: ( localize(
925
- 3306,
1005
+ 3341,
926
1006
  "The font family of the output text within notebook cells. When set to empty, the {0} is used.",
927
1007
  '`#editor.fontFamily#`'
928
1008
  )),
@@ -931,7 +1011,7 @@ configurationRegistry.registerConfiguration({
931
1011
  },
932
1012
  [NotebookSetting.outputScrolling]: {
933
1013
  markdownDescription: ( localize(
934
- 3307,
1014
+ 3342,
935
1015
  "Initially render notebook outputs in a scrollable region when longer than the limit."
936
1016
  )),
937
1017
  type: 'boolean',
@@ -939,14 +1019,14 @@ configurationRegistry.registerConfiguration({
939
1019
  default: typeof product$1.quality === 'string' && product$1.quality !== 'stable'
940
1020
  },
941
1021
  [NotebookSetting.outputWordWrap]: {
942
- markdownDescription: ( localize(3308, "Controls whether the lines in output should wrap.")),
1022
+ markdownDescription: ( localize(3343, "Controls whether the lines in output should wrap.")),
943
1023
  type: 'boolean',
944
1024
  tags: ['notebookLayout', 'notebookOutputLayout'],
945
1025
  default: false
946
1026
  },
947
1027
  [NotebookSetting.defaultFormatter]: {
948
1028
  description: ( localize(
949
- 3309,
1029
+ 3344,
950
1030
  "Defines a default notebook formatter which takes precedence over all other formatter settings. Must be the identifier of an extension contributing a formatter."
951
1031
  )),
952
1032
  type: ['string', 'null'],
@@ -957,7 +1037,7 @@ configurationRegistry.registerConfiguration({
957
1037
  },
958
1038
  [NotebookSetting.formatOnSave]: {
959
1039
  markdownDescription: ( localize(
960
- 3310,
1040
+ 3345,
961
1041
  "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."
962
1042
  )),
963
1043
  type: 'boolean',
@@ -966,7 +1046,7 @@ configurationRegistry.registerConfiguration({
966
1046
  },
967
1047
  [NotebookSetting.insertFinalNewline]: {
968
1048
  markdownDescription: ( localize(
969
- 3311,
1049
+ 3346,
970
1050
  "When enabled, insert a final new line into the end of code cells when saving a notebook."
971
1051
  )),
972
1052
  type: 'boolean',
@@ -975,7 +1055,7 @@ configurationRegistry.registerConfiguration({
975
1055
  },
976
1056
  [NotebookSetting.formatOnCellExecution]: {
977
1057
  markdownDescription: ( localize(
978
- 3312,
1058
+ 3347,
979
1059
  "Format a notebook cell upon execution. A formatter must be available."
980
1060
  )),
981
1061
  type: 'boolean',
@@ -983,7 +1063,7 @@ configurationRegistry.registerConfiguration({
983
1063
  },
984
1064
  [NotebookSetting.confirmDeleteRunningCell]: {
985
1065
  markdownDescription: ( localize(
986
- 3313,
1066
+ 3348,
987
1067
  "Control whether a confirmation prompt is required to delete a running cell."
988
1068
  )),
989
1069
  type: 'boolean',
@@ -991,7 +1071,7 @@ configurationRegistry.registerConfiguration({
991
1071
  },
992
1072
  [NotebookSetting.findFilters]: {
993
1073
  markdownDescription: ( localize(
994
- 3314,
1074
+ 3349,
995
1075
  "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."
996
1076
  )),
997
1077
  type: 'object',
@@ -1023,7 +1103,7 @@ configurationRegistry.registerConfiguration({
1023
1103
  },
1024
1104
  [NotebookSetting.remoteSaving]: {
1025
1105
  markdownDescription: ( localize(
1026
- 3315,
1106
+ 3350,
1027
1107
  "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."
1028
1108
  )),
1029
1109
  type: 'boolean',
@@ -1032,22 +1112,22 @@ configurationRegistry.registerConfiguration({
1032
1112
  },
1033
1113
  [NotebookSetting.scrollToRevealCell]: {
1034
1114
  markdownDescription: ( localize(
1035
- 3316,
1115
+ 3351,
1036
1116
  "How far to scroll when revealing the next cell upon running {0}.",
1037
1117
  'notebook.cell.executeAndSelectBelow'
1038
1118
  )),
1039
1119
  type: 'string',
1040
1120
  enum: ['fullCell', 'firstLine', 'none'],
1041
1121
  markdownEnumDescriptions: [
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.')),
1122
+ ( localize(3352, 'Scroll to fully reveal the next cell.')),
1123
+ ( localize(3353, 'Scroll to reveal the first line of the next cell.')),
1124
+ ( localize(3354, 'Do not scroll.')),
1045
1125
  ],
1046
1126
  default: 'fullCell'
1047
1127
  },
1048
1128
  [NotebookSetting.cellGenerate]: {
1049
1129
  markdownDescription: ( localize(
1050
- 3320,
1130
+ 3355,
1051
1131
  "Enable experimental generate action to create code cell with inline chat enabled."
1052
1132
  )),
1053
1133
  type: 'boolean',
@@ -1056,25 +1136,33 @@ configurationRegistry.registerConfiguration({
1056
1136
  },
1057
1137
  [NotebookSetting.notebookVariablesView]: {
1058
1138
  markdownDescription: ( localize(
1059
- 3321,
1139
+ 3356,
1060
1140
  "Enable the experimental notebook variables view within the debug panel."
1061
1141
  )),
1062
1142
  type: 'boolean',
1063
1143
  default: false
1064
1144
  },
1065
1145
  [NotebookSetting.cellFailureDiagnostics]: {
1066
- markdownDescription: ( localize(3322, "Show available diagnostics for cell failures.")),
1146
+ markdownDescription: ( localize(3357, "Show available diagnostics for cell failures.")),
1067
1147
  type: 'boolean',
1068
1148
  default: true
1069
1149
  },
1070
1150
  [NotebookSetting.outputBackupSizeLimit]: {
1071
1151
  markdownDescription: ( localize(
1072
- 3323,
1152
+ 3358,
1073
1153
  "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."
1074
1154
  )),
1075
1155
  type: 'number',
1076
1156
  default: 10000
1077
- }
1157
+ },
1158
+ [NotebookSetting.multiCursor]: {
1159
+ markdownDescription: ( localize(
1160
+ 3359,
1161
+ "Experimental. Enables a limited set of multi cursor controls across multiple cells in the notebook editor. Currently supported are core editor actions (typing/cut/copy/paste/composition) and a limited subset of editor commands."
1162
+ )),
1163
+ type: 'boolean',
1164
+ default: false
1165
+ },
1078
1166
  }
1079
1167
  });
1080
1168