@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
@@ -26,13 +26,10 @@ import 'vscode/vscode/vs/platform/theme/common/colors/quickpickColors';
26
26
  import 'vscode/vscode/vs/platform/theme/common/colors/searchColors';
27
27
  import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService.service';
28
28
  import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
29
- import { CellFoldingState, CellRevealType } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
30
29
  import { NotebookEditor } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookEditor';
31
30
  import { CellKind, NotebookSetting, NotebookCellsChangeType } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
32
31
  import { SIDE_GROUP } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
33
32
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
34
- import { LifecyclePhase } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
35
- import { OutlineConfigKeys, OutlineTarget, OutlineConfigCollapseItemsValues } from 'vscode/vscode/vs/workbench/services/outline/browser/outline';
36
33
  import { IOutlineService } from 'vscode/vscode/vs/workbench/services/outline/browser/outline.service';
37
34
  import { CancellationToken } from 'vscode/vscode/vs/base/common/cancellation';
38
35
  import { Range } from 'vscode/vscode/vs/editor/common/core/range';
@@ -47,7 +44,6 @@ import { disposableTimeout, Delayer } from 'vscode/vscode/vs/base/common/async';
47
44
  import { IOutlinePane } from 'vscode/vscode/vs/workbench/contrib/outline/browser/outline';
48
45
  import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
49
46
  import { NOTEBOOK_IS_ACTIVE_EDITOR } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
50
- import { NotebookOutlineConstants } from '../../viewModel/notebookOutlineEntryFactory.js';
51
47
  import { INotebookCellOutlineDataSourceFactory } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineDataSourceFactory.service';
52
48
  import { NotebookExecutionType } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService';
53
49
  import { INotebookExecutionStateService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service';
@@ -123,7 +119,7 @@ let NotebookOutlineRenderer = class NotebookOutlineRenderer {
123
119
  template.decoration.innerText = '';
124
120
  if (markerInfo) {
125
121
  const problem = this._configurationService.getValue('problems.visibility');
126
- const useBadges = this._configurationService.getValue(OutlineConfigKeys.problemsBadges);
122
+ const useBadges = this._configurationService.getValue("outline.problems.badges" );
127
123
  if (!useBadges || !problem) {
128
124
  template.decoration.classList.remove('bubble');
129
125
  template.decoration.innerText = '';
@@ -140,7 +136,7 @@ let NotebookOutlineRenderer = class NotebookOutlineRenderer {
140
136
  if (problem === undefined) {
141
137
  return;
142
138
  }
143
- const useColors = this._configurationService.getValue(OutlineConfigKeys.problemsColors);
139
+ const useColors = this._configurationService.getValue("outline.problems.colors" );
144
140
  if (!useColors || !problem) {
145
141
  template.container.style.removeProperty('--outline-element-color');
146
142
  template.decoration.style.setProperty('--outline-element-color', color?.toString() ?? 'inherit');
@@ -149,7 +145,7 @@ let NotebookOutlineRenderer = class NotebookOutlineRenderer {
149
145
  template.container.style.setProperty('--outline-element-color', color?.toString() ?? 'inherit');
150
146
  }
151
147
  }
152
- if (this._target === OutlineTarget.OutlinePane) {
148
+ if (this._target === 1 ) {
153
149
  const nbCell = node.element.cell;
154
150
  const nbViewModel = this._editor?.getViewModel();
155
151
  if (!nbViewModel) {
@@ -160,7 +156,7 @@ let NotebookOutlineRenderer = class NotebookOutlineRenderer {
160
156
  const scopedContextKeyService = template.elementDisposables.add(this._contextKeyService.createScoped(template.container));
161
157
  NotebookOutlineContext.CellKind.bindTo(scopedContextKeyService).set(isCodeCell ? CellKind.Code : CellKind.Markup);
162
158
  NotebookOutlineContext.CellHasChildren.bindTo(scopedContextKeyService).set(length > 0);
163
- NotebookOutlineContext.CellHasHeader.bindTo(scopedContextKeyService).set(node.element.level !== NotebookOutlineConstants.NonHeaderOutlineLevel);
159
+ NotebookOutlineContext.CellHasHeader.bindTo(scopedContextKeyService).set(node.element.level !== 7 );
164
160
  NotebookOutlineContext.OutlineElementTarget.bindTo(scopedContextKeyService).set(this._target);
165
161
  this.setupFolding(isCodeCell, nbViewModel, scopedContextKeyService, template, nbCell);
166
162
  const outlineEntryToolbar = template.elementDisposables.add(( (new ToolBar(template.actionMenu, this._contextMenuService, {
@@ -187,7 +183,7 @@ let NotebookOutlineRenderer = class NotebookOutlineRenderer {
187
183
  clearNode(templateData.actionMenu);
188
184
  }
189
185
  setupFolding(isCodeCell, nbViewModel, scopedContextKeyService, template, nbCell) {
190
- const foldingState = isCodeCell ? CellFoldingState.None : (nbCell.foldingState);
186
+ const foldingState = isCodeCell ? 0 : (nbCell.foldingState);
191
187
  const foldingStateCtx = NotebookOutlineContext.CellFoldingState.bindTo(scopedContextKeyService);
192
188
  foldingStateCtx.set(foldingState);
193
189
  if (!isCodeCell) {
@@ -286,7 +282,7 @@ let NotebookQuickPickProvider = class NotebookQuickPickProvider {
286
282
  const result = [];
287
283
  const { hasFileIcons } = this._themeService.getFileIconTheme();
288
284
  const isSymbol = (element) => !!element.symbolKind;
289
- const isCodeCell = (element) => (element.cell.cellKind === CellKind.Code && element.level === NotebookOutlineConstants.NonHeaderOutlineLevel);
285
+ const isCodeCell = (element) => ((element.cell.cellKind === CellKind.Code && element.level === 7) );
290
286
  for (let i = 0; i < bucket.length; i++) {
291
287
  const element = bucket[i];
292
288
  const nextElement = bucket[i + 1];
@@ -357,9 +353,9 @@ let NotebookOutlinePaneProvider = class NotebookOutlinePaneProvider {
357
353
  return undefined;
358
354
  }
359
355
  filterEntry(entry) {
360
- if ((this.showMarkdownHeadersOnly && entry.cell.cellKind === CellKind.Markup && entry.level === NotebookOutlineConstants.NonHeaderOutlineLevel) ||
356
+ if (((this.showMarkdownHeadersOnly && entry.cell.cellKind === CellKind.Markup && entry.level === 7) ) ||
361
357
  (!this.showCodeCells && entry.cell.cellKind === CellKind.Code) ||
362
- (!this.showCodeCellSymbols && entry.cell.cellKind === CellKind.Code && entry.level > NotebookOutlineConstants.NonHeaderOutlineLevel)
358
+ ((!this.showCodeCellSymbols && entry.cell.cellKind === CellKind.Code && entry.level > 7) )
363
359
  ) {
364
360
  return true;
365
361
  }
@@ -373,7 +369,7 @@ let NotebookOutlinePaneProvider = class NotebookOutlinePaneProvider {
373
369
  if (!this.showMarkdownHeadersOnly) {
374
370
  yield entry;
375
371
  }
376
- else if (entry.level < NotebookOutlineConstants.NonHeaderOutlineLevel) {
372
+ else if (entry.level < 7 ) {
377
373
  yield entry;
378
374
  }
379
375
  }
@@ -381,7 +377,7 @@ let NotebookOutlinePaneProvider = class NotebookOutlinePaneProvider {
381
377
  if (this.showCodeCellSymbols) {
382
378
  yield entry;
383
379
  }
384
- else if (entry.level === NotebookOutlineConstants.NonHeaderOutlineLevel) {
380
+ else if (entry.level === 7 ) {
385
381
  yield entry;
386
382
  }
387
383
  }
@@ -441,7 +437,7 @@ class NotebookComparator {
441
437
  let NotebookCellOutline = class NotebookCellOutline {
442
438
  get activeElement() {
443
439
  this.checkDelayer();
444
- if (this._target === OutlineTarget.OutlinePane) {
440
+ if (this._target === 1 ) {
445
441
  return this.config.treeDataSource.getActiveEntry();
446
442
  }
447
443
  else {
@@ -483,14 +479,13 @@ let NotebookCellOutline = class NotebookCellOutline {
483
479
  this.delayerRecomputeState = this._disposables.add(( (new Delayer(300))));
484
480
  this.delayerRecomputeActive = this._disposables.add(( (new Delayer(200))));
485
481
  this.delayerRecomputeSymbols = this._disposables.add(( (new Delayer(2000))));
486
- this.gotoShowCodeCellSymbols = this._configurationService.getValue(NotebookSetting.gotoSymbolsAllSymbols);
487
482
  this.outlineShowCodeCellSymbols = this._configurationService.getValue(NotebookSetting.outlineShowCodeCellSymbols);
488
483
  this.initializeOutline();
489
484
  const delegate = ( (new NotebookOutlineVirtualDelegate()));
490
485
  const renderers = [this._instantiationService.createInstance(NotebookOutlineRenderer, this._editor.getControl(), this._target)];
491
486
  const comparator = ( (new NotebookComparator()));
492
487
  const options = {
493
- collapseByDefault: this._target === OutlineTarget.Breadcrumbs || (this._target === OutlineTarget.OutlinePane && this._configurationService.getValue(OutlineConfigKeys.collapseItems) === OutlineConfigCollapseItemsValues.Collapsed),
488
+ collapseByDefault: this._target === 2 || ((this._target === 1 && this._configurationService.getValue("outline.collapseItems" ) === "alwaysCollapse") ),
494
489
  expandOnlyOnTwistieClick: true,
495
490
  multipleSelectionSupport: false,
496
491
  accessibilityProvider: ( (new NotebookOutlineAccessibility())),
@@ -535,8 +530,7 @@ let NotebookCellOutline = class NotebookCellOutline {
535
530
  }
536
531
  }));
537
532
  this._disposables.add(this._configurationService.onDidChangeConfiguration(e => {
538
- if (e.affectsConfiguration(NotebookSetting.gotoSymbolsAllSymbols) || e.affectsConfiguration(NotebookSetting.outlineShowCodeCellSymbols)) {
539
- this.gotoShowCodeCellSymbols = this._configurationService.getValue(NotebookSetting.gotoSymbolsAllSymbols);
533
+ if (e.affectsConfiguration(NotebookSetting.outlineShowCodeCellSymbols)) {
540
534
  this.outlineShowCodeCellSymbols = this._configurationService.getValue(NotebookSetting.outlineShowCodeCellSymbols);
541
535
  this.computeSymbols();
542
536
  }
@@ -581,13 +575,13 @@ let NotebookCellOutline = class NotebookCellOutline {
581
575
  }));
582
576
  }
583
577
  async computeSymbols(cancelToken = CancellationToken.None) {
584
- if (this._target === OutlineTarget.QuickPick && this.gotoShowCodeCellSymbols) {
585
- await this._outlineDataSourceReference?.object?.computeFullSymbols(cancelToken);
586
- }
587
- else if (this._target === OutlineTarget.OutlinePane && this.outlineShowCodeCellSymbols) {
588
- void this._outlineDataSourceReference?.object?.computeFullSymbols(cancelToken);
578
+ if (this._target === 1 && this.outlineShowCodeCellSymbols) {
579
+ void this.doComputeSymbols(cancelToken);
589
580
  }
590
581
  }
582
+ async doComputeSymbols(cancelToken) {
583
+ await this._outlineDataSourceReference?.object?.computeFullSymbols(cancelToken);
584
+ }
591
585
  async delayedComputeSymbols() {
592
586
  this.delayerRecomputeState.cancel();
593
587
  this.delayerRecomputeActive.cancel();
@@ -606,7 +600,7 @@ let NotebookCellOutline = class NotebookCellOutline {
606
600
  const notebookEditorOptions = {
607
601
  ...options,
608
602
  override: this._editor.input?.editorId,
609
- cellRevealType: CellRevealType.NearTopIfOutsideViewport,
603
+ cellRevealType: 5 ,
610
604
  selection: entry.position,
611
605
  viewState: undefined,
612
606
  };
@@ -694,7 +688,11 @@ let NotebookOutlineCreator = class NotebookOutlineCreator {
694
688
  return candidate.getId() === NotebookEditor.ID;
695
689
  }
696
690
  async createOutline(editor, target, cancelToken) {
697
- return this._instantiationService.createInstance(NotebookCellOutline, editor, target);
691
+ const outline = this._instantiationService.createInstance(NotebookCellOutline, editor, target);
692
+ if (target === 4 ) {
693
+ await outline.doComputeSymbols(cancelToken);
694
+ }
695
+ return outline;
698
696
  }
699
697
  };
700
698
  NotebookOutlineCreator = ( (__decorate([
@@ -705,10 +703,10 @@ const NotebookOutlineContext = {
705
703
  CellKind: ( (new RawContextKey('notebookCellKind', undefined))),
706
704
  CellHasChildren: ( (new RawContextKey('notebookCellHasChildren', false))),
707
705
  CellHasHeader: ( (new RawContextKey('notebookCellHasHeader', false))),
708
- CellFoldingState: ( (new RawContextKey('notebookCellFoldingState', CellFoldingState.None))),
706
+ CellFoldingState: ( (new RawContextKey('notebookCellFoldingState', 0 ))),
709
707
  OutlineElementTarget: ( (new RawContextKey('notebookOutlineElementTarget', undefined))),
710
708
  };
711
- ( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(NotebookOutlineCreator, LifecyclePhase.Eventually);
709
+ ( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(NotebookOutlineCreator, 4 );
712
710
  ( (Registry.as(Extensions$1.Configuration))).registerConfiguration({
713
711
  id: 'notebook',
714
712
  order: 100,
@@ -718,33 +716,33 @@ const NotebookOutlineContext = {
718
716
  type: 'boolean',
719
717
  default: true,
720
718
  markdownDescription: ( localize(
721
- 7998,
719
+ 8058,
722
720
  "When enabled, notebook outline will show only markdown cells containing a header."
723
721
  ))
724
722
  },
725
723
  [NotebookSetting.outlineShowCodeCells]: {
726
724
  type: 'boolean',
727
725
  default: false,
728
- markdownDescription: ( localize(7999, "When enabled, notebook outline shows code cells."))
726
+ markdownDescription: ( localize(8059, "When enabled, notebook outline shows code cells."))
729
727
  },
730
728
  [NotebookSetting.outlineShowCodeCellSymbols]: {
731
729
  type: 'boolean',
732
730
  default: true,
733
731
  markdownDescription: ( localize(
734
- 8000,
732
+ 8060,
735
733
  "When enabled, notebook outline shows code cell symbols. Relies on `notebook.outline.showCodeCells` being enabled."
736
734
  ))
737
735
  },
738
736
  [NotebookSetting.breadcrumbsShowCodeCells]: {
739
737
  type: 'boolean',
740
738
  default: true,
741
- markdownDescription: ( localize(8001, "When enabled, notebook breadcrumbs contain code cells."))
739
+ markdownDescription: ( localize(8061, "When enabled, notebook breadcrumbs contain code cells."))
742
740
  },
743
741
  [NotebookSetting.gotoSymbolsAllSymbols]: {
744
742
  type: 'boolean',
745
743
  default: true,
746
744
  markdownDescription: ( localize(
747
- 8002,
745
+ 8062,
748
746
  "When enabled, the Go to Symbol Quick Pick will display full code symbols from the notebook, as well as Markdown headers."
749
747
  ))
750
748
  },
@@ -752,7 +750,7 @@ const NotebookOutlineContext = {
752
750
  });
753
751
  MenuRegistry.appendMenuItem(MenuId.ViewTitle, {
754
752
  submenu: MenuId.NotebookOutlineFilter,
755
- title: ( localize(8003, "Filter Entries")),
753
+ title: ( localize(8063, "Filter Entries")),
756
754
  icon: Codicon.filter,
757
755
  group: 'navigation',
758
756
  order: -1,
@@ -765,7 +763,7 @@ registerAction2(class ToggleShowMarkdownHeadersOnly extends Action2 {
765
763
  constructor() {
766
764
  super({
767
765
  id: 'notebook.outline.toggleShowMarkdownHeadersOnly',
768
- title: ( localize(8004, "Markdown Headers Only")),
766
+ title: ( localize(8064, "Markdown Headers Only")),
769
767
  f1: false,
770
768
  toggled: {
771
769
  condition: ( (ContextKeyExpr.equals('config.notebook.outline.showMarkdownHeadersOnly', true)))
@@ -786,7 +784,7 @@ registerAction2(class ToggleCodeCellEntries extends Action2 {
786
784
  constructor() {
787
785
  super({
788
786
  id: 'notebook.outline.toggleCodeCells',
789
- title: ( localize(8005, "Code Cells")),
787
+ title: ( localize(8065, "Code Cells")),
790
788
  f1: false,
791
789
  toggled: {
792
790
  condition: ( (ContextKeyExpr.equals('config.notebook.outline.showCodeCells', true)))
@@ -808,7 +806,7 @@ registerAction2(class ToggleCodeCellSymbolEntries extends Action2 {
808
806
  constructor() {
809
807
  super({
810
808
  id: 'notebook.outline.toggleCodeCellSymbols',
811
- title: ( localize(8006, "Code Cell Symbols")),
809
+ title: ( localize(8066, "Code Cell Symbols")),
812
810
  f1: false,
813
811
  toggled: {
814
812
  condition: ( (ContextKeyExpr.equals('config.notebook.outline.showCodeCellSymbols', true)))
@@ -52,7 +52,7 @@ registerAction2(class extends Action2 {
52
52
  constructor() {
53
53
  super({
54
54
  id: 'notebook.setProfile',
55
- title: ( localize(8007, "Set Profile"))
55
+ title: ( localize(8067, "Set Profile"))
56
56
  });
57
57
  }
58
58
  async run(accessor, args) {
@@ -6,13 +6,12 @@ import { ResourceTextEdit, IBulkEditService } from 'vscode/vscode/vs/editor/brow
6
6
  import { trimTrailingWhitespace } from 'vscode/vscode/vs/editor/common/commands/trimTrailingWhitespaceCommand';
7
7
  import { Position } from 'vscode/vscode/vs/editor/common/core/position';
8
8
  import { Range } from 'vscode/vscode/vs/editor/common/core/range';
9
- import { CodeActionTriggerType } from 'vscode/vscode/vs/editor/common/languages';
10
9
  import { IEditorWorkerService } from 'vscode/vscode/vs/editor/common/services/editorWorker';
11
10
  import { ILanguageFeaturesService } from 'vscode/vscode/vs/editor/common/services/languageFeatures';
12
11
  import { ITextModelService } from 'vscode/vscode/vs/editor/common/services/resolverService';
13
12
  import { applyCodeAction, ApplyCodeActionReason, getCodeActions } from 'vscode/vscode/vs/editor/contrib/codeAction/browser/codeAction';
14
13
  import { CodeActionKind, CodeActionTriggerSource } from 'vscode/vscode/vs/editor/contrib/codeAction/common/types';
15
- import { getDocumentFormattingEditsWithSelectedProvider, FormattingMode } from 'vscode/vscode/vs/editor/contrib/format/browser/format';
14
+ import { getDocumentFormattingEditsWithSelectedProvider } from 'vscode/vscode/vs/editor/contrib/format/browser/format';
16
15
  import { SnippetController2 } from 'vscode/vscode/vs/editor/contrib/snippet/browser/snippetController2';
17
16
  import { localize } from 'vscode/vscode/vs/nls';
18
17
  import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
@@ -21,14 +20,26 @@ import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
21
20
  import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
22
21
  import { IWorkspaceTrustManagementService } from 'vscode/vscode/vs/platform/workspace/common/workspaceTrust.service';
23
22
  import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
24
- import { SaveReason } from 'vscode/vscode/vs/workbench/common/editor';
25
23
  import { getNotebookEditorFromEditorPane } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
26
24
  import { NotebookSetting, CellKind } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
27
25
  import { NotebookFileWorkingCopyModel } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookEditorModel';
28
26
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
29
- import { LifecyclePhase } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
30
27
  import { IWorkingCopyFileService } from 'vscode/vscode/vs/workbench/services/workingCopy/common/workingCopyFileService.service';
28
+ import { NotebookMultiCursorController, NotebookMultiCursorState } from '../multicursor/notebookMulticursor.js';
31
29
 
30
+ class NotebookSaveParticipant {
31
+ constructor(_editorService) {
32
+ this._editorService = _editorService;
33
+ }
34
+ canParticipate() {
35
+ const editor = getNotebookEditorFromEditorPane(this._editorService.activeEditorPane);
36
+ const controller = editor?.getContribution(NotebookMultiCursorController.id);
37
+ if (!controller) {
38
+ return true;
39
+ }
40
+ return controller.getState() !== NotebookMultiCursorState.Editing;
41
+ }
42
+ }
32
43
  let FormatOnSaveParticipant = class FormatOnSaveParticipant {
33
44
  constructor(editorWorkerService, languageFeaturesService, instantiationService, textModelService, bulkEditService, configurationService) {
34
45
  this.editorWorkerService = editorWorkerService;
@@ -42,14 +53,14 @@ let FormatOnSaveParticipant = class FormatOnSaveParticipant {
42
53
  if (!workingCopy.model || !(workingCopy.model instanceof NotebookFileWorkingCopyModel)) {
43
54
  return;
44
55
  }
45
- if (context.reason === SaveReason.AUTO) {
56
+ if (context.reason === 2 ) {
46
57
  return undefined;
47
58
  }
48
59
  const enabled = this.configurationService.getValue(NotebookSetting.formatOnSave);
49
60
  if (!enabled) {
50
61
  return undefined;
51
62
  }
52
- progress.report({ message: ( localize(7973, "Formatting")) });
63
+ progress.report({ message: ( localize(8033, "Formatting")) });
53
64
  const notebook = workingCopy.model.notebookModel;
54
65
  const formatApplied = await this.instantiationService.invokeFunction(CodeActionParticipantUtils.checkAndRunFormatCodeAction, notebook, progress, token);
55
66
  const disposable = ( (new DisposableStore()));
@@ -59,7 +70,7 @@ let FormatOnSaveParticipant = class FormatOnSaveParticipant {
59
70
  const ref = await this.textModelService.createModelReference(cell.uri);
60
71
  disposable.add(ref);
61
72
  const model = ref.object.textEditorModel;
62
- const formatEdits = await getDocumentFormattingEditsWithSelectedProvider(this.editorWorkerService, this.languageFeaturesService, model, FormattingMode.Silent, token);
73
+ const formatEdits = await getDocumentFormattingEditsWithSelectedProvider(this.editorWorkerService, this.languageFeaturesService, model, 2 , token);
63
74
  const edits = [];
64
75
  if (formatEdits) {
65
76
  edits.push(...( (formatEdits.map(
@@ -69,7 +80,7 @@ let FormatOnSaveParticipant = class FormatOnSaveParticipant {
69
80
  }
70
81
  return [];
71
82
  }))));
72
- await this.bulkEditService.apply( allCellEdits.flat(), { label: ( localize(7974, "Format Notebook")), code: 'undoredo.formatNotebook', });
83
+ await this.bulkEditService.apply( allCellEdits.flat(), { label: ( localize(8034, "Format Notebook")), code: 'undoredo.formatNotebook', });
73
84
  }
74
85
  }
75
86
  finally {
@@ -86,8 +97,9 @@ FormatOnSaveParticipant = ( (__decorate([
86
97
  ( (__param(4, IBulkEditService))),
87
98
  ( (__param(5, IConfigurationService)))
88
99
  ], FormatOnSaveParticipant)));
89
- let TrimWhitespaceParticipant = class TrimWhitespaceParticipant {
100
+ let TrimWhitespaceParticipant = class TrimWhitespaceParticipant extends NotebookSaveParticipant {
90
101
  constructor(configurationService, editorService, textModelService, bulkEditService) {
102
+ super(editorService);
91
103
  this.configurationService = configurationService;
92
104
  this.editorService = editorService;
93
105
  this.textModelService = textModelService;
@@ -96,8 +108,8 @@ let TrimWhitespaceParticipant = class TrimWhitespaceParticipant {
96
108
  async participate(workingCopy, context, progress, _token) {
97
109
  const trimTrailingWhitespaceOption = this.configurationService.getValue('files.trimTrailingWhitespace');
98
110
  const trimInRegexAndStrings = this.configurationService.getValue('files.trimTrailingWhitespaceInRegexAndStrings');
99
- if (trimTrailingWhitespaceOption) {
100
- await this.doTrimTrailingWhitespace(workingCopy, context.reason === SaveReason.AUTO, trimInRegexAndStrings, progress);
111
+ if (trimTrailingWhitespaceOption && this.canParticipate()) {
112
+ await this.doTrimTrailingWhitespace(workingCopy, context.reason === 2 , trimInRegexAndStrings, progress);
101
113
  }
102
114
  }
103
115
  async doTrimTrailingWhitespace(workingCopy, isAutoSaved, trimInRegexesAndStrings, progress) {
@@ -141,7 +153,7 @@ let TrimWhitespaceParticipant = class TrimWhitespaceParticipant {
141
153
  );
142
154
  }))));
143
155
  const filteredEdits = allCellEdits.flat().filter(edit => edit !== undefined);
144
- await this.bulkEditService.apply(filteredEdits, { label: ( localize(7975, "Notebook Trim Trailing Whitespace")), code: 'undoredo.notebookTrimTrailingWhitespace' });
156
+ await this.bulkEditService.apply(filteredEdits, { label: ( localize(8035, "Notebook Trim Trailing Whitespace")), code: 'undoredo.notebookTrimTrailingWhitespace' });
145
157
  }
146
158
  finally {
147
159
  progress.report({ increment: 100 });
@@ -155,15 +167,16 @@ TrimWhitespaceParticipant = ( (__decorate([
155
167
  ( (__param(2, ITextModelService))),
156
168
  ( (__param(3, IBulkEditService)))
157
169
  ], TrimWhitespaceParticipant)));
158
- let TrimFinalNewLinesParticipant = class TrimFinalNewLinesParticipant {
170
+ let TrimFinalNewLinesParticipant = class TrimFinalNewLinesParticipant extends NotebookSaveParticipant {
159
171
  constructor(configurationService, editorService, bulkEditService) {
172
+ super(editorService);
160
173
  this.configurationService = configurationService;
161
174
  this.editorService = editorService;
162
175
  this.bulkEditService = bulkEditService;
163
176
  }
164
177
  async participate(workingCopy, context, progress, _token) {
165
- if (this.configurationService.getValue('files.trimFinalNewlines')) {
166
- await this.doTrimFinalNewLines(workingCopy, context.reason === SaveReason.AUTO, progress);
178
+ if (this.configurationService.getValue('files.trimFinalNewlines') && this.canParticipate()) {
179
+ await this.doTrimFinalNewLines(workingCopy, context.reason === 2 , progress);
167
180
  }
168
181
  }
169
182
  findLastNonEmptyLine(textBuffer) {
@@ -219,7 +232,7 @@ let TrimFinalNewLinesParticipant = class TrimFinalNewLinesParticipant {
219
232
  );
220
233
  }))));
221
234
  const filteredEdits = allCellEdits.flat().filter(edit => edit !== undefined);
222
- await this.bulkEditService.apply(filteredEdits, { label: ( localize(7976, "Trim Final New Lines")), code: 'undoredo.trimFinalNewLines' });
235
+ await this.bulkEditService.apply(filteredEdits, { label: ( localize(8036, "Trim Final New Lines")), code: 'undoredo.trimFinalNewLines' });
223
236
  }
224
237
  finally {
225
238
  progress.report({ increment: 100 });
@@ -232,15 +245,16 @@ TrimFinalNewLinesParticipant = ( (__decorate([
232
245
  ( (__param(1, IEditorService))),
233
246
  ( (__param(2, IBulkEditService)))
234
247
  ], TrimFinalNewLinesParticipant)));
235
- let InsertFinalNewLineParticipant = class InsertFinalNewLineParticipant {
248
+ let InsertFinalNewLineParticipant = class InsertFinalNewLineParticipant extends NotebookSaveParticipant {
236
249
  constructor(configurationService, bulkEditService, editorService) {
250
+ super(editorService);
237
251
  this.configurationService = configurationService;
238
252
  this.bulkEditService = bulkEditService;
239
253
  this.editorService = editorService;
240
254
  }
241
255
  async participate(workingCopy, context, progress, _token) {
242
- if (this.configurationService.getValue(NotebookSetting.insertFinalNewline)) {
243
- await this.doInsertFinalNewLine(workingCopy, context.reason === SaveReason.AUTO, progress);
256
+ if (this.configurationService.getValue(NotebookSetting.insertFinalNewline) && this.canParticipate()) {
257
+ await this.doInsertFinalNewLine(workingCopy, context.reason === 2 , progress);
244
258
  }
245
259
  }
246
260
  async doInsertFinalNewLine(workingCopy, isAutoSaved, progress) {
@@ -274,7 +288,7 @@ let InsertFinalNewLineParticipant = class InsertFinalNewLineParticipant {
274
288
  );
275
289
  }))));
276
290
  const filteredEdits = allCellEdits.filter(edit => edit !== undefined);
277
- await this.bulkEditService.apply(filteredEdits, { label: ( localize(7977, "Insert Final New Line")), code: 'undoredo.insertFinalNewLine' });
291
+ await this.bulkEditService.apply(filteredEdits, { label: ( localize(8037, "Insert Final New Line")), code: 'undoredo.insertFinalNewLine' });
278
292
  if (activeCellEditor && selections) {
279
293
  activeCellEditor.setSelections(selections);
280
294
  }
@@ -307,10 +321,10 @@ let CodeActionOnSaveParticipant = class CodeActionOnSaveParticipant {
307
321
  return;
308
322
  }
309
323
  let saveTrigger = '';
310
- if (context.reason === SaveReason.AUTO) {
324
+ if (context.reason === 2 ) {
311
325
  return undefined;
312
326
  }
313
- else if (context.reason === SaveReason.EXPLICIT) {
327
+ else if (context.reason === 1 ) {
314
328
  saveTrigger = 'explicit';
315
329
  }
316
330
  else {
@@ -330,7 +344,7 @@ let CodeActionOnSaveParticipant = class CodeActionOnSaveParticipant {
330
344
  const notebookCodeActionsOnSave = includedActions.filter(x => CodeActionKind.Notebook.contains(x));
331
345
  if (notebookCodeActionsOnSave.length) {
332
346
  const nbDisposable = ( (new DisposableStore()));
333
- progress.report({ message: ( localize(7978, "Running 'Notebook' code actions")) });
347
+ progress.report({ message: ( localize(8038, "Running 'Notebook' code actions")) });
334
348
  try {
335
349
  const cell = notebookModel.cells[0];
336
350
  const ref = await this.textModelService.createModelReference(cell.uri);
@@ -362,7 +376,7 @@ let CodeActionOnSaveParticipant = class CodeActionOnSaveParticipant {
362
376
  });
363
377
  }
364
378
  const cellDisposable = ( (new DisposableStore()));
365
- progress.report({ message: ( localize(7979, "Running 'Cell' code actions")) });
379
+ progress.report({ message: ( localize(8039, "Running 'Cell' code actions")) });
366
380
  try {
367
381
  await Promise.all(( (notebookModel.cells.map(async (cell) => {
368
382
  const ref = await this.textModelService.createModelReference(cell.uri);
@@ -402,7 +416,7 @@ class CodeActionParticipantUtils {
402
416
  const configurationService = accessor.get(IConfigurationService);
403
417
  const formatDisposable = ( (new DisposableStore()));
404
418
  let formatResult = false;
405
- progress.report({ message: ( localize(7980, "Running 'Format' code actions")) });
419
+ progress.report({ message: ( localize(8040, "Running 'Format' code actions")) });
406
420
  try {
407
421
  const cell = notebookModel.cells[0];
408
422
  const ref = await textModelService.createModelReference(cell.uri);
@@ -431,7 +445,7 @@ class CodeActionParticipantUtils {
431
445
  _report() {
432
446
  progress.report({
433
447
  message: ( localize(
434
- 7981,
448
+ 8041,
435
449
  "Getting code actions from '{0}' ([configure]({1})).",
436
450
  ( ([...this._names].map(name => `'${name}'`))).join(', '),
437
451
  'command:workbench.action.openSettings?%5B%22notebook.codeActionsOnSave%22%5D'
@@ -471,7 +485,7 @@ class CodeActionParticipantUtils {
471
485
  logService.warn('Failed to apply code action on save, applied to multiple resources.');
472
486
  continue;
473
487
  }
474
- progress.report({ message: ( localize(7982, "Applying code action '{0}'.", action.action.title)) });
488
+ progress.report({ message: ( localize(8042, "Applying code action '{0}'.", action.action.title)) });
475
489
  await instantiationService.invokeFunction(applyCodeAction, action, ApplyCodeActionReason.OnSave, {}, token);
476
490
  if (token.isCancellationRequested) {
477
491
  return;
@@ -496,7 +510,7 @@ class CodeActionParticipantUtils {
496
510
  _report() {
497
511
  progress.report({
498
512
  message: ( localize(
499
- 7981,
513
+ 8041,
500
514
  "Getting code actions from '{0}' ([configure]({1})).",
501
515
  ( ([...this._names].map(name => `'${name}'`))).join(', '),
502
516
  'command:workbench.action.openSettings?%5B%22notebook.defaultFormatter%22%5D'
@@ -523,7 +537,7 @@ class CodeActionParticipantUtils {
523
537
  if (!action) {
524
538
  return false;
525
539
  }
526
- progress.report({ message: ( localize(7982, "Applying code action '{0}'.", action.action.title)) });
540
+ progress.report({ message: ( localize(8042, "Applying code action '{0}'.", action.action.title)) });
527
541
  await instantiationService.invokeFunction(applyCodeAction, action, ApplyCodeActionReason.OnSave, {}, token);
528
542
  if (token.isCancellationRequested) {
529
543
  return false;
@@ -540,7 +554,7 @@ class CodeActionParticipantUtils {
540
554
  }
541
555
  static getActionsToRun(model, codeActionKind, excludes, languageFeaturesService, progress, token) {
542
556
  return getCodeActions(languageFeaturesService.codeActionProvider, model, model.getFullModelRange(), {
543
- type: CodeActionTriggerType.Invoke,
557
+ type: 1 ,
544
558
  triggerAction: CodeActionTriggerSource.OnSave,
545
559
  filter: { include: codeActionKind, excludes: excludes, includeSourceActions: true },
546
560
  }, progress, token);
@@ -572,6 +586,6 @@ SaveParticipantsContribution = ( (__decorate([
572
586
  ( (__param(1, IWorkingCopyFileService)))
573
587
  ], SaveParticipantsContribution)));
574
588
  const workbenchContributionsRegistry = ( (Registry.as(Extensions.Workbench)));
575
- workbenchContributionsRegistry.registerWorkbenchContribution(SaveParticipantsContribution, LifecyclePhase.Restored);
589
+ workbenchContributionsRegistry.registerWorkbenchContribution(SaveParticipantsContribution, 3 );
576
590
 
577
591
  export { CodeActionParticipantUtils, SaveParticipantsContribution };
@@ -4,7 +4,6 @@ import { Categories } from 'vscode/vscode/vs/platform/action/common/actionCommon
4
4
  import { registerAction2, Action2 } from 'vscode/vscode/vs/platform/actions/common/actions';
5
5
  import { getNotebookEditorFromEditorPane } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
6
6
  import { registerNotebookContribution } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookEditorExtensions';
7
- import { CellStatusbarAlignment } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
8
7
  import { INotebookService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookService.service';
9
8
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
10
9
 
@@ -76,7 +75,7 @@ class TroubleshootController extends Disposable {
76
75
  items: [
77
76
  {
78
77
  text: `index: ${i}`,
79
- alignment: CellStatusbarAlignment.Left,
78
+ alignment: 1 ,
80
79
  priority: Number.MAX_SAFE_INTEGER
81
80
  }
82
81
  ]
@@ -94,7 +93,7 @@ registerAction2(class extends Action2 {
94
93
  constructor() {
95
94
  super({
96
95
  id: 'notebook.toggleLayoutTroubleshoot',
97
- title: ( localize2(8046, "Toggle Layout Troubleshoot")),
96
+ title: ( localize2(8106, "Toggle Layout Troubleshoot")),
98
97
  category: Categories.Developer,
99
98
  f1: true
100
99
  });
@@ -113,7 +112,7 @@ registerAction2(class extends Action2 {
113
112
  constructor() {
114
113
  super({
115
114
  id: 'notebook.inspectLayout',
116
- title: ( localize2(8047, "Inspect Notebook Layout")),
115
+ title: ( localize2(8107, "Inspect Notebook Layout")),
117
116
  category: Categories.Developer,
118
117
  f1: true
119
118
  });
@@ -134,7 +133,7 @@ registerAction2(class extends Action2 {
134
133
  constructor() {
135
134
  super({
136
135
  id: 'notebook.clearNotebookEdtitorTypeCache',
137
- title: ( localize2(8048, "Clear Notebook Editor Type Cache")),
136
+ title: ( localize2(8108, "Clear Notebook Editor Type Cache")),
138
137
  category: Categories.Developer,
139
138
  f1: true
140
139
  });
@@ -1,6 +1,6 @@
1
1
  import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
2
2
  import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
3
- import { registerWorkbenchContribution2, WorkbenchPhase } from 'vscode/vscode/vs/workbench/common/contributions';
3
+ import { registerWorkbenchContribution2 } from 'vscode/vscode/vs/workbench/common/contributions';
4
4
  import { CellKind } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
5
5
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
6
6
  import { getNotebookEditorFromEditorPane, CellEditState } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
@@ -53,4 +53,4 @@ let NotebookUndoRedoContribution = class NotebookUndoRedoContribution extends Di
53
53
  NotebookUndoRedoContribution = ( __decorate([
54
54
  ( __param(0, IEditorService))
55
55
  ], NotebookUndoRedoContribution));
56
- registerWorkbenchContribution2(NotebookUndoRedoContribution.ID, NotebookUndoRedoContribution, WorkbenchPhase.BlockRestore);
56
+ registerWorkbenchContribution2(NotebookUndoRedoContribution.ID, NotebookUndoRedoContribution, 2 );
@@ -2,7 +2,7 @@ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
2
2
  import { RunOnceScheduler } from 'vscode/vscode/vs/base/common/async';
3
3
  import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
4
4
  import { IAccessibilityService } from 'vscode/vscode/vs/platform/accessibility/common/accessibility.service';
5
- import { CellEditState, RenderOutputType } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
5
+ import { CellEditState } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
6
6
  import { registerNotebookContribution } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookEditorExtensions';
7
7
  import { outputDisplayLimit } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel';
8
8
  import { CellKind } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
@@ -82,7 +82,7 @@ let NotebookViewportContribution = class NotebookViewportContribution extends Di
82
82
  if (!renderer) {
83
83
  return;
84
84
  }
85
- const result = { type: RenderOutputType.Extension, renderer, source: output, mimeType: pickedMimeTypeRenderer.mimeType };
85
+ const result = { type: 1 , renderer, source: output, mimeType: pickedMimeTypeRenderer.mimeType };
86
86
  this._notebookEditor.createOutput(viewCell, result, 0, true);
87
87
  }
88
88
  }