@codingame/monaco-vscode-notebook-service-override 37.1.0 → 37.3.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 (81) hide show
  1. package/index.js +7 -2
  2. package/package.json +3 -3
  3. package/vscode/src/vs/workbench/api/browser/mainThreadNotebook.d.ts +22 -0
  4. package/vscode/src/vs/workbench/api/browser/mainThreadNotebook.js +210 -0
  5. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDocuments.d.ts +24 -0
  6. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDocuments.js +140 -0
  7. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDocumentsAndEditors.d.ts +29 -0
  8. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDocumentsAndEditors.js +194 -0
  9. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookEditors.d.ts +27 -0
  10. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookEditors.js +149 -0
  11. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookKernels.d.ts +49 -0
  12. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookKernels.js +372 -0
  13. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookRenderers.d.ts +10 -0
  14. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookRenderers.js +26 -0
  15. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookSaveParticipant.d.ts +9 -0
  16. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookSaveParticipant.js +43 -0
  17. package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +9 -9
  18. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +24 -24
  19. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticsActions.js +4 -4
  20. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.js +2 -2
  21. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/contributedStatusBarItemController.js +5 -5
  22. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js +3 -3
  23. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js +19 -19
  24. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.js +7 -7
  25. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js +9 -9
  26. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.js +6 -6
  27. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.js +9 -9
  28. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.js +1 -1
  29. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.js +1 -1
  30. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.js +32 -19
  31. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookSelectionHighlight.js +2 -2
  32. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +13 -13
  33. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookInlineVariables.js +4 -4
  34. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableContextKeys.js +1 -1
  35. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.js +1 -1
  36. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesDataSource.js +1 -1
  37. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.js +3 -3
  38. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +14 -14
  39. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/profile/notebookProfile.js +1 -1
  40. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.js +30 -30
  41. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.js +5 -5
  42. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/apiActions.js +11 -14
  43. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +38 -38
  44. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +30 -26
  45. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +21 -21
  46. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js +11 -11
  47. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.js +12 -12
  48. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/variablesActions.js +1 -1
  49. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +24 -24
  50. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.d.ts +1 -1
  51. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.js +7 -7
  52. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditorInput.d.ts +1 -1
  53. package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +68 -68
  54. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.js +10 -10
  55. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +35 -35
  56. package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditor.js +4 -4
  57. package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditorInput.js +1 -1
  58. package/vscode/src/vs/workbench/contrib/notebook/browser/replEditorAccessibleView.js +1 -1
  59. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookCellStatusBarServiceImpl.js +2 -2
  60. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.js +1 -1
  61. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js +8 -5
  62. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionStateServiceImpl.js +4 -4
  63. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.js +2 -2
  64. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelServiceImpl.js +7 -7
  65. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js +15 -12
  66. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js +1 -1
  67. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookRendererMessagingServiceImpl.js +1 -1
  68. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +9 -9
  69. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookWorkerServiceImpl.js +8 -8
  70. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js +1 -1
  71. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.js +26 -26
  72. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModel.d.ts +87 -0
  73. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModel.js +352 -0
  74. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverServiceImpl.js +1 -1
  75. package/vscode/src/vs/workbench/contrib/notebook/common/notebookOutputRenderer.js +3 -3
  76. package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookWebWorker.js +44 -18
  77. package/vscode/src/vs/workbench/contrib/replNotebook/browser/repl.contribution.js +5 -5
  78. package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorAccessibilityHelp.js +14 -14
  79. package/vscode/src/vs/workbench/services/workingCopy/common/abstractFileWorkingCopyManager.js +2 -2
  80. package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +12 -12
  81. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +5 -5
@@ -34,7 +34,7 @@ registerAction2(class extends Action2 {
34
34
  constructor() {
35
35
  super({
36
36
  id: "notebook.format",
37
- title: ( localize2(14412, "Format Notebook")),
37
+ title: ( localize2(16551, "Format Notebook")),
38
38
  category: NOTEBOOK_ACTIONS_CATEGORY,
39
39
  precondition: ( ContextKeyExpr.and(NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_EDITOR_EDITABLE)),
40
40
  keybinding: {
@@ -78,7 +78,7 @@ registerAction2(class extends Action2 {
78
78
  const disposable = ( new DisposableStore());
79
79
  try {
80
80
  if (!formatApplied) {
81
- const allCellEdits = await Promise.all(( notebook.cells.map(async cell => {
81
+ const allCellEdits = await Promise.all(notebook.cells.map(async cell => {
82
82
  const ref = await textModelService.createModelReference(cell.uri);
83
83
  disposable.add(ref);
84
84
  const model = ref.object.textEditorModel;
@@ -97,9 +97,9 @@ registerAction2(class extends Action2 {
97
97
  return edits;
98
98
  }
99
99
  return [];
100
- })));
100
+ }));
101
101
  await bulkEditService.apply( allCellEdits.flat(), {
102
- label: ( localize(14413, "Format Notebook")),
102
+ label: ( localize(16552, "Format Notebook")),
103
103
  code: "undoredo.formatNotebook"
104
104
  });
105
105
  }
@@ -112,7 +112,7 @@ registerEditorAction(class FormatCellAction extends EditorAction {
112
112
  constructor() {
113
113
  super({
114
114
  id: "notebook.formatCell",
115
- label: ( localize2(14414, "Format Cell")),
115
+ label: ( localize2(16553, "Format Cell")),
116
116
  precondition: ( ContextKeyExpr.and(
117
117
  NOTEBOOK_IS_ACTIVE_EDITOR,
118
118
  NOTEBOOK_EDITOR_EDITABLE,
@@ -171,7 +171,7 @@ let FormatOnCellExecutionParticipant = class FormatOnCellExecutionParticipant {
171
171
  }
172
172
  const disposable = ( new DisposableStore());
173
173
  try {
174
- const allCellEdits = await Promise.all(( executions.map(async cellExecution => {
174
+ const allCellEdits = await Promise.all(executions.map(async cellExecution => {
175
175
  const nbModel = this._notebookService.getNotebookTextModel(cellExecution.notebook);
176
176
  if (!nbModel) {
177
177
  return [];
@@ -198,13 +198,13 @@ let FormatOnCellExecutionParticipant = class FormatOnCellExecutionParticipant {
198
198
  );
199
199
  const edits = [];
200
200
  if (formatEdits) {
201
- edits.push(...( formatEdits.map(edit => ( new ResourceTextEdit(model.uri, edit, model.getVersionId())))));
201
+ edits.push(...formatEdits.map(edit => ( new ResourceTextEdit(model.uri, edit, model.getVersionId()))));
202
202
  return edits;
203
203
  }
204
204
  return [];
205
- })));
205
+ }));
206
206
  await this.bulkEditService.apply( allCellEdits.flat(), {
207
- label: ( localize(14415, "Format Cells")),
207
+ label: ( localize(16554, "Format Cells")),
208
208
  code: "undoredo.notebooks.onWillExecuteFormat"
209
209
  });
210
210
  } finally {
@@ -69,7 +69,7 @@ registerAction2(class NotebookClearNotebookLayoutAction extends Action2 {
69
69
  constructor() {
70
70
  super({
71
71
  id: "workbench.notebook.layout.gettingStarted",
72
- title: ( localize2(14416, "Reset notebook getting started")),
72
+ title: ( localize2(16555, "Reset notebook getting started")),
73
73
  f1: true,
74
74
  precondition: ( ContextKeyExpr.equals(`config.${NotebookSetting.openGettingStarted}`, true)),
75
75
  category: Categories.Developer
@@ -10,7 +10,7 @@ class ToggleCellToolbarPositionAction extends Action2 {
10
10
  constructor() {
11
11
  super({
12
12
  id: TOGGLE_CELL_TOOLBAR_POSITION,
13
- title: ( localize2(14417, "Toggle Cell Toolbar Position")),
13
+ title: ( localize2(16556, "Toggle Cell Toolbar Position")),
14
14
  menu: [{
15
15
  id: MenuId.NotebookCellTitle,
16
16
  group: "View",
@@ -37,7 +37,7 @@ import { NotebookAction } from '@codingame/monaco-vscode-api/vscode/vs/workbench
37
37
  import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
38
38
  import { registerNotebookContribution } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookEditorExtensions';
39
39
  import { CellEditorOptions } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions';
40
- import { NotebookFindContrib } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget';
40
+ import { NotebookFindContrib } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget';
41
41
  import { NotebookCellTextModel } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/model/notebookCellTextModel';
42
42
 
43
43
  const NOTEBOOK_ADD_FIND_MATCH_TO_SELECTION_ID = "notebook.addFindMatchToSelection";
@@ -49,8 +49,8 @@ var NotebookMultiCursorState;
49
49
  NotebookMultiCursorState[NotebookMultiCursorState["Editing"] = 2] = "Editing";
50
50
  })(NotebookMultiCursorState || (NotebookMultiCursorState = {}));
51
51
  const NOTEBOOK_MULTI_CURSOR_CONTEXT = {
52
- IsNotebookMultiCursor: ( new RawContextKey("isNotebookMultiSelect", false)),
53
- NotebookMultiSelectCursorState: ( new RawContextKey("notebookMultiSelectCursorState", NotebookMultiCursorState.Idle))
52
+ IsNotebookMultiCursor: new RawContextKey("isNotebookMultiSelect", false),
53
+ NotebookMultiSelectCursorState: new RawContextKey("notebookMultiSelectCursorState", NotebookMultiCursorState.Idle)
54
54
  };
55
55
  let NotebookMultiCursorController = class NotebookMultiCursorController extends Disposable {
56
56
  static {
@@ -152,13 +152,13 @@ let NotebookMultiCursorController = class NotebookMultiCursorController extends
152
152
  if (!controller) {
153
153
  return;
154
154
  }
155
- const newSelections = ( controller.getSelections().map(selection => {
155
+ const newSelections = controller.getSelections().map(selection => {
156
156
  const newStartCol = selection.startColumn + translation.deltaStartCol;
157
157
  const newStartLine = selection.startLineNumber + translation.deltaStartLine;
158
158
  const newEndCol = selection.endColumn + translation.deltaEndCol;
159
159
  const newEndLine = selection.endLineNumber + translation.deltaEndLine;
160
160
  return Selection.createWithDirection(newStartLine, newStartCol, newEndLine, newEndCol, translationDir);
161
- }));
161
+ });
162
162
  controller.setSelections(( new ViewModelEventsCollector()), e.source, newSelections, CursorChangeReason.Explicit);
163
163
  });
164
164
  this.updateLazyDecorations();
@@ -174,7 +174,7 @@ let NotebookMultiCursorController = class NotebookMultiCursorController extends
174
174
  }
175
175
  async syncCursorsControllers() {
176
176
  this.cursorsDisposables.clear();
177
- await Promise.all(( this.trackedCells.map(async cell => {
177
+ await Promise.all(this.trackedCells.map(async cell => {
178
178
  const controller = await this.createCursorController(cell);
179
179
  if (!controller) {
180
180
  return;
@@ -182,7 +182,7 @@ let NotebookMultiCursorController = class NotebookMultiCursorController extends
182
182
  this.cursorsControllers.set(cell.cellViewModel.uri, controller);
183
183
  const selections = cell.matchSelections;
184
184
  controller.setSelections(( new ViewModelEventsCollector()), undefined, selections, CursorChangeReason.Explicit);
185
- })));
185
+ }));
186
186
  this.updateLazyDecorations();
187
187
  }
188
188
  async createCursorController(cell) {
@@ -517,9 +517,14 @@ let NotebookMultiCursorController = class NotebookMultiCursorController extends
517
517
  this.anchorCell = this.notebookEditor.activeCellAndCodeEditor;
518
518
  this.trackedCells = [];
519
519
  for (const match of matches) {
520
- this.updateTrackedCell(match.cell, ( match.contentMatches.map(match => Selection.fromRange(match.range, SelectionDirection.LTR))));
520
+ this.updateTrackedCell(
521
+ match.cell,
522
+ match.contentMatches.map(match => Selection.fromRange(match.range, SelectionDirection.LTR))
523
+ );
521
524
  if (this.anchorCell && match.cell.handle === this.anchorCell[0].handle) {
522
- match.cell.setSelections(( match.contentMatches.map(match => Selection.fromRange(match.range, SelectionDirection.LTR))));
525
+ match.cell.setSelections(
526
+ match.contentMatches.map(match => Selection.fromRange(match.range, SelectionDirection.LTR))
527
+ );
523
528
  }
524
529
  }
525
530
  this._nbIsMultiSelectSession.set(true);
@@ -556,11 +561,16 @@ let NotebookMultiCursorController = class NotebookMultiCursorController extends
556
561
  const findResults = notebookTextModel.findMatches(this.word, false, true, USUAL_WORD_SEPARATORS);
557
562
  this.trackedCells = [];
558
563
  for (const res of findResults) {
559
- await this.updateTrackedCell(res.cell, ( res.matches.map(match => Selection.fromRange(match.range, SelectionDirection.LTR))));
564
+ await this.updateTrackedCell(
565
+ res.cell,
566
+ res.matches.map(match => Selection.fromRange(match.range, SelectionDirection.LTR))
567
+ );
560
568
  if (res.cell.handle === focusedCell.handle) {
561
569
  const cellViewModel = this.notebookEditor.getCellByHandle(res.cell.handle);
562
570
  if (cellViewModel) {
563
- cellViewModel.setSelections(( res.matches.map(match => Selection.fromRange(match.range, SelectionDirection.LTR))));
571
+ cellViewModel.setSelections(
572
+ res.matches.map(match => Selection.fromRange(match.range, SelectionDirection.LTR))
573
+ );
564
574
  }
565
575
  }
566
576
  }
@@ -570,7 +580,10 @@ let NotebookMultiCursorController = class NotebookMultiCursorController extends
570
580
  } else if (this.state === NotebookMultiCursorState.Selecting) {
571
581
  const findResults = notebookTextModel.findMatches(this.word, false, true, USUAL_WORD_SEPARATORS);
572
582
  for (const res of findResults) {
573
- await this.updateTrackedCell(res.cell, ( res.matches.map(match => Selection.fromRange(match.range, SelectionDirection.LTR))));
583
+ await this.updateTrackedCell(
584
+ res.cell,
585
+ res.matches.map(match => Selection.fromRange(match.range, SelectionDirection.LTR))
586
+ );
574
587
  }
575
588
  }
576
589
  }
@@ -660,7 +673,7 @@ let NotebookMultiCursorController = class NotebookMultiCursorController extends
660
673
  models.push(model);
661
674
  }
662
675
  }
663
- await Promise.all(( models.map(model => model.undo())));
676
+ await Promise.all(models.map(model => model.undo()));
664
677
  this.updateViewModelSelections();
665
678
  this.updateLazyDecorations();
666
679
  }
@@ -672,7 +685,7 @@ let NotebookMultiCursorController = class NotebookMultiCursorController extends
672
685
  models.push(model);
673
686
  }
674
687
  }
675
- await Promise.all(( models.map(model => model.redo())));
688
+ await Promise.all(models.map(model => model.redo()));
676
689
  this.updateViewModelSelections();
677
690
  this.updateLazyDecorations();
678
691
  }
@@ -820,7 +833,7 @@ class NotebookSelectAllFindMatches extends NotebookAction {
820
833
  constructor() {
821
834
  super({
822
835
  id: NOTEBOOK_SELECT_ALL_FIND_MATCHES_ID,
823
- title: ( localize(14418, "Select All Occurrences of Find Match")),
836
+ title: ( localize(16557, "Select All Occurrences of Find Match")),
824
837
  precondition: ( ContextKeyExpr.and(( ContextKeyExpr.equals("config.notebook.multiCursor.enabled", true)))),
825
838
  keybinding: {
826
839
  when: ( ContextKeyExpr.or(( ContextKeyExpr.and(( ContextKeyExpr.equals("config.notebook.multiCursor.enabled", true)), NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_CELL_EDITOR_FOCUSED)), ( ContextKeyExpr.and(( ContextKeyExpr.equals("config.notebook.multiCursor.enabled", true)), KEYBINDING_CONTEXT_NOTEBOOK_FIND_WIDGET_FOCUSED)))),
@@ -852,7 +865,7 @@ class NotebookAddMatchToMultiSelectionAction extends NotebookAction {
852
865
  constructor() {
853
866
  super({
854
867
  id: NOTEBOOK_ADD_FIND_MATCH_TO_SELECTION_ID,
855
- title: ( localize(14419, "Add Selection to Next Find Match")),
868
+ title: ( localize(16558, "Add Selection to Next Find Match")),
856
869
  precondition: ( ContextKeyExpr.and(( ContextKeyExpr.equals("config.notebook.multiCursor.enabled", true)), NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_CELL_EDITOR_FOCUSED)),
857
870
  keybinding: {
858
871
  when: ( ContextKeyExpr.and(( ContextKeyExpr.equals("config.notebook.multiCursor.enabled", true)), NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_CELL_EDITOR_FOCUSED)),
@@ -878,7 +891,7 @@ class NotebookExitMultiSelectionAction extends NotebookAction {
878
891
  constructor() {
879
892
  super({
880
893
  id: "noteMultiCursor.exit",
881
- title: ( localize(14420, "Exit Multi Cursor Mode")),
894
+ title: ( localize(16559, "Exit Multi Cursor Mode")),
882
895
  precondition: ( ContextKeyExpr.and(( ContextKeyExpr.equals("config.notebook.multiCursor.enabled", true)), NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_MULTI_CURSOR_CONTEXT.IsNotebookMultiCursor)),
883
896
  keybinding: {
884
897
  when: ( ContextKeyExpr.and(( ContextKeyExpr.equals("config.notebook.multiCursor.enabled", true)), NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_MULTI_CURSOR_CONTEXT.IsNotebookMultiCursor)),
@@ -901,7 +914,7 @@ class NotebookDeleteLeftMultiSelectionAction extends NotebookAction {
901
914
  constructor() {
902
915
  super({
903
916
  id: "noteMultiCursor.deleteLeft",
904
- title: ( localize(14421, "Delete Left")),
917
+ title: ( localize(16560, "Delete Left")),
905
918
  precondition: ( ContextKeyExpr.and(( ContextKeyExpr.equals("config.notebook.multiCursor.enabled", true)), NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_MULTI_CURSOR_CONTEXT.IsNotebookMultiCursor, ( ContextKeyExpr.or(( NOTEBOOK_MULTI_CURSOR_CONTEXT.NotebookMultiSelectCursorState.isEqualTo(NotebookMultiCursorState.Selecting)), ( NOTEBOOK_MULTI_CURSOR_CONTEXT.NotebookMultiSelectCursorState.isEqualTo(NotebookMultiCursorState.Editing)))))),
906
919
  keybinding: {
907
920
  when: ( ContextKeyExpr.and(( ContextKeyExpr.equals("config.notebook.multiCursor.enabled", true)), NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_MULTI_CURSOR_CONTEXT.IsNotebookMultiCursor, ( ContextKeyExpr.or(( NOTEBOOK_MULTI_CURSOR_CONTEXT.NotebookMultiSelectCursorState.isEqualTo(NotebookMultiCursorState.Selecting)), ( NOTEBOOK_MULTI_CURSOR_CONTEXT.NotebookMultiSelectCursorState.isEqualTo(NotebookMultiCursorState.Editing)))))),
@@ -924,7 +937,7 @@ class NotebookDeleteRightMultiSelectionAction extends NotebookAction {
924
937
  constructor() {
925
938
  super({
926
939
  id: "noteMultiCursor.deleteRight",
927
- title: ( localize(14422, "Delete Right")),
940
+ title: ( localize(16561, "Delete Right")),
928
941
  precondition: ( ContextKeyExpr.and(( ContextKeyExpr.equals("config.notebook.multiCursor.enabled", true)), NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_MULTI_CURSOR_CONTEXT.IsNotebookMultiCursor, ( ContextKeyExpr.or(( NOTEBOOK_MULTI_CURSOR_CONTEXT.NotebookMultiSelectCursorState.isEqualTo(NotebookMultiCursorState.Selecting)), ( NOTEBOOK_MULTI_CURSOR_CONTEXT.NotebookMultiSelectCursorState.isEqualTo(NotebookMultiCursorState.Editing)))))),
929
942
  keybinding: {
930
943
  when: ( ContextKeyExpr.and(( ContextKeyExpr.equals("config.notebook.multiCursor.enabled", true)), NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_MULTI_CURSOR_CONTEXT.IsNotebookMultiCursor, ( ContextKeyExpr.or(( NOTEBOOK_MULTI_CURSOR_CONTEXT.NotebookMultiSelectCursorState.isEqualTo(NotebookMultiCursorState.Selecting)), ( NOTEBOOK_MULTI_CURSOR_CONTEXT.NotebookMultiSelectCursorState.isEqualTo(NotebookMultiCursorState.Editing)))))),
@@ -85,9 +85,9 @@ let NotebookSelectionHighlighter = class NotebookSelectionHighlighter extends Di
85
85
  }
86
86
  }
87
87
  updateCellDecorations(cell, matches) {
88
- const selections = ( matches.map(m => {
88
+ const selections = matches.map(m => {
89
89
  return Selection.fromRange(m.range, SelectionDirection.LTR);
90
- }));
90
+ });
91
91
  const newDecorations = [];
92
92
  selections?.map(selection => {
93
93
  const isEmpty = selection.isEmpty();
@@ -33,7 +33,7 @@ registerAction2(class extends Action2 {
33
33
  super({
34
34
  id: "notebook.cell.nullAction",
35
35
  title: ( localize(
36
- 14423,
36
+ 16562,
37
37
  "Keypresses that should be handled by the focused element in the cell output."
38
38
  )),
39
39
  keybinding: [{
@@ -56,7 +56,7 @@ registerAction2(class FocusNextCellAction extends NotebookCellAction {
56
56
  constructor() {
57
57
  super({
58
58
  id: NOTEBOOK_FOCUS_NEXT_EDITOR,
59
- title: ( localize(14424, "Focus Next Cell Editor")),
59
+ title: ( localize(16563, "Focus Next Cell Editor")),
60
60
  keybinding: [{
61
61
  when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ( CONTEXT_ACCESSIBILITY_MODE_ENABLED.negate()), ( ContextKeyExpr.equals("config.notebook.navigation.allowNavigateToSurroundingCells", true)), ( ContextKeyExpr.and(( ContextKeyExpr.has(InputFocusedContextKey)), EditorContextKeys.editorTextFocus, ( NOTEBOOK_EDITOR_CURSOR_BOUNDARY.notEqualsTo("top")), ( NOTEBOOK_EDITOR_CURSOR_BOUNDARY.notEqualsTo("none")), ( ContextKeyExpr.or(( NOTEBOOK_EDITOR_CURSOR_LINE_BOUNDARY.isEqualTo("end")), ( NOTEBOOK_EDITOR_CURSOR_LINE_BOUNDARY.isEqualTo("both")))))), ( EditorContextKeys.isEmbeddedDiffEditor.negate()))),
62
62
  primary: KeyCode.DownArrow,
@@ -110,7 +110,7 @@ registerAction2(class FocusPreviousCellAction extends NotebookCellAction {
110
110
  constructor() {
111
111
  super({
112
112
  id: NOTEBOOK_FOCUS_PREVIOUS_EDITOR,
113
- title: ( localize(14425, "Focus Previous Cell Editor")),
113
+ title: ( localize(16564, "Focus Previous Cell Editor")),
114
114
  keybinding: [{
115
115
  when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ( CONTEXT_ACCESSIBILITY_MODE_ENABLED.negate()), ( ContextKeyExpr.equals("config.notebook.navigation.allowNavigateToSurroundingCells", true)), ( ContextKeyExpr.and(( ContextKeyExpr.has(InputFocusedContextKey)), EditorContextKeys.editorTextFocus, ( NOTEBOOK_EDITOR_CURSOR_BOUNDARY.notEqualsTo("bottom")), ( NOTEBOOK_EDITOR_CURSOR_BOUNDARY.notEqualsTo("none")), ( ContextKeyExpr.or(( NOTEBOOK_EDITOR_CURSOR_LINE_BOUNDARY.isEqualTo("start")), ( NOTEBOOK_EDITOR_CURSOR_LINE_BOUNDARY.isEqualTo("both")))))), ( EditorContextKeys.isEmbeddedDiffEditor.negate()))),
116
116
  primary: KeyCode.UpArrow,
@@ -155,7 +155,7 @@ registerAction2(class extends NotebookAction {
155
155
  constructor() {
156
156
  super({
157
157
  id: NOTEBOOK_FOCUS_TOP,
158
- title: ( localize(14426, "Focus First Cell")),
158
+ title: ( localize(16565, "Focus First Cell")),
159
159
  keybinding: [{
160
160
  when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ContextKeyExpr.not(InputFocusedContextKey))),
161
161
  primary: KeyMod.CtrlCmd | KeyCode.Home,
@@ -182,7 +182,7 @@ registerAction2(class extends NotebookAction {
182
182
  constructor() {
183
183
  super({
184
184
  id: NOTEBOOK_FOCUS_BOTTOM,
185
- title: ( localize(14427, "Focus Last Cell")),
185
+ title: ( localize(16566, "Focus Last Cell")),
186
186
  keybinding: [{
187
187
  when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ContextKeyExpr.not(InputFocusedContextKey))),
188
188
  primary: KeyMod.CtrlCmd | KeyCode.End,
@@ -214,7 +214,7 @@ registerAction2(class extends NotebookCellAction {
214
214
  constructor() {
215
215
  super({
216
216
  id: FOCUS_IN_OUTPUT_COMMAND_ID,
217
- title: ( localize2(14428, "Focus In Active Cell Output")),
217
+ title: ( localize2(16567, "Focus In Active Cell Output")),
218
218
  f1: true,
219
219
  keybinding: [{
220
220
  when: ( ContextKeyExpr.and(( IS_COMPOSITE_NOTEBOOK.negate()), IsWindowsContext, NOTEBOOK_CELL_HAS_OUTPUTS)),
@@ -240,7 +240,7 @@ registerAction2(class extends NotebookCellAction {
240
240
  constructor() {
241
241
  super({
242
242
  id: FOCUS_OUT_OUTPUT_COMMAND_ID,
243
- title: ( localize(14429, "Focus Out Active Cell Output")),
243
+ title: ( localize(16568, "Focus Out Active Cell Output")),
244
244
  keybinding: {
245
245
  primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.UpArrow,
246
246
  mac: {
@@ -261,7 +261,7 @@ registerAction2(class CenterActiveCellAction extends NotebookCellAction {
261
261
  constructor() {
262
262
  super({
263
263
  id: CENTER_ACTIVE_CELL,
264
- title: ( localize(14430, "Center Active Cell")),
264
+ title: ( localize(16569, "Center Active Cell")),
265
265
  keybinding: {
266
266
  when: NOTEBOOK_EDITOR_FOCUSED,
267
267
  primary: KeyMod.CtrlCmd | KeyCode.KeyL,
@@ -280,7 +280,7 @@ registerAction2(class extends NotebookCellAction {
280
280
  constructor() {
281
281
  super({
282
282
  id: NOTEBOOK_CURSOR_PAGEUP_COMMAND_ID,
283
- title: ( localize(14431, "Cell Cursor Page Up")),
283
+ title: ( localize(16570, "Cell Cursor Page Up")),
284
284
  keybinding: [{
285
285
  when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ( ContextKeyExpr.has(InputFocusedContextKey)), EditorContextKeys.editorTextFocus)),
286
286
  primary: KeyCode.PageUp,
@@ -298,7 +298,7 @@ registerAction2(class extends NotebookCellAction {
298
298
  constructor() {
299
299
  super({
300
300
  id: NOTEBOOK_CURSOR_PAGEUP_SELECT_COMMAND_ID,
301
- title: ( localize(14432, "Cell Cursor Page Up Select")),
301
+ title: ( localize(16571, "Cell Cursor Page Up Select")),
302
302
  keybinding: [{
303
303
  when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ( ContextKeyExpr.has(InputFocusedContextKey)), EditorContextKeys.editorTextFocus, ( NOTEBOOK_OUTPUT_FOCUSED.negate()))),
304
304
  primary: KeyMod.Shift | KeyCode.PageUp,
@@ -316,7 +316,7 @@ registerAction2(class extends NotebookCellAction {
316
316
  constructor() {
317
317
  super({
318
318
  id: NOTEBOOK_CURSOR_PAGEDOWN_COMMAND_ID,
319
- title: ( localize(14433, "Cell Cursor Page Down")),
319
+ title: ( localize(16572, "Cell Cursor Page Down")),
320
320
  keybinding: [{
321
321
  when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ( ContextKeyExpr.has(InputFocusedContextKey)), EditorContextKeys.editorTextFocus)),
322
322
  primary: KeyCode.PageDown,
@@ -334,7 +334,7 @@ registerAction2(class extends NotebookCellAction {
334
334
  constructor() {
335
335
  super({
336
336
  id: NOTEBOOK_CURSOR_PAGEDOWN_SELECT_COMMAND_ID,
337
- title: ( localize(14434, "Cell Cursor Page Down Select")),
337
+ title: ( localize(16573, "Cell Cursor Page Down Select")),
338
338
  keybinding: [{
339
339
  when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ( ContextKeyExpr.has(InputFocusedContextKey)), EditorContextKeys.editorTextFocus, ( NOTEBOOK_OUTPUT_FOCUSED.negate()))),
340
340
  primary: KeyMod.Shift | KeyCode.PageDown,
@@ -363,7 +363,7 @@ function getPageSize(context) {
363
363
  type: "boolean",
364
364
  default: true,
365
365
  markdownDescription: ( localize(
366
- 14435,
366
+ 16574,
367
367
  "When enabled cursor can navigate to the next/previous cell when the current cursor in the cell editor is at the first/last line."
368
368
  ))
369
369
  }
@@ -186,7 +186,7 @@ let NotebookInlineVariablesController = class NotebookInlineVariablesController
186
186
  lineDecorations.forEach((segments, line) => {
187
187
  if (segments.length > 0) {
188
188
  segments.sort((a, b) => a.column - b.column);
189
- const text = ( segments.map(s => s.text)).join(", ");
189
+ const text = segments.map(s => s.text).join(", ");
190
190
  const editorWidth = cell.layoutInfo.editorWidth;
191
191
  const fontInfo = cell.layoutInfo.fontInfo;
192
192
  if (fontInfo && cell.textModel) {
@@ -212,7 +212,7 @@ let NotebookInlineVariablesController = class NotebookInlineVariablesController
212
212
  for await (const v of variables) {
213
213
  vars.push(v);
214
214
  }
215
- const varNames = ( vars.map(v => v.name));
215
+ const varNames = vars.map(v => v.name);
216
216
  const document = cell.textModel;
217
217
  if (!document) {
218
218
  return;
@@ -268,7 +268,7 @@ let NotebookInlineVariablesController = class NotebookInlineVariablesController
268
268
  lineDecorations.forEach((segments, line) => {
269
269
  if (segments.length > 0) {
270
270
  segments.sort((a, b) => a.column - b.column);
271
- const text = ( segments.map(s => s.text)).join(", ");
271
+ const text = segments.map(s => s.text).join(", ");
272
272
  const editorWidth = cell.layoutInfo.editorWidth;
273
273
  const fontInfo = cell.layoutInfo.fontInfo;
274
274
  if (fontInfo && cell.textModel) {
@@ -511,7 +511,7 @@ registerAction2(class ClearNotebookInlineValues extends NotebookAction {
511
511
  constructor() {
512
512
  super({
513
513
  id: "notebook.clearAllInlineValues",
514
- title: ( localize(14436, "Clear All Inline Values"))
514
+ title: ( localize(16575, "Clear All Inline Values"))
515
515
  });
516
516
  }
517
517
  runWithContext(accessor, context) {
@@ -1,6 +1,6 @@
1
1
 
2
2
  import { RawContextKey } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
3
3
 
4
- const NOTEBOOK_VARIABLE_VIEW_ENABLED = ( new RawContextKey("notebookVariableViewEnabled", false));
4
+ const NOTEBOOK_VARIABLE_VIEW_ENABLED = new RawContextKey('notebookVariableViewEnabled', false);
5
5
 
6
6
  export { NOTEBOOK_VARIABLE_VIEW_ENABLED };
@@ -71,7 +71,7 @@ let NotebookVariables = class NotebookVariables extends Disposable {
71
71
  const viewsRegistry = ( Registry.as(Extensions.ViewsRegistry));
72
72
  const viewDescriptor = {
73
73
  id: "workbench.notebook.variables",
74
- name: ( localize2(14439, "Notebook Variables")),
74
+ name: ( localize2(16578, "Notebook Variables")),
75
75
  containerIcon: variablesViewIcon,
76
76
  ctorDescriptor: ( new SyncDescriptor(NotebookVariablesView)),
77
77
  order: 50,
@@ -79,7 +79,7 @@ class NotebookVariableDataSource {
79
79
  notebook: parent.notebook,
80
80
  id: parent.id + `${last + 1}`,
81
81
  extHostId: parent.extHostId,
82
- name: ( localize(14440, "Display limit reached")),
82
+ name: ( localize(16579, "Display limit reached")),
83
83
  value: "",
84
84
  indexedChildrenCount: 0,
85
85
  hasNamedChildren: false
@@ -12,8 +12,8 @@ import { observableValue } from '@codingame/monaco-vscode-api/vscode/vs/base/com
12
12
  var NotebookVariableRenderer_1;
13
13
  const $ = $$1;
14
14
  const MAX_VALUE_RENDER_LENGTH_IN_VIEWLET = 1024;
15
- const NOTEBOOK_TITLE = ( localize2(14441, "Notebook Variables"));
16
- const REPL_TITLE = ( localize2(14442, "REPL Variables"));
15
+ const NOTEBOOK_TITLE = ( localize2(16580, "Notebook Variables"));
16
+ const REPL_TITLE = ( localize2(16581, "REPL Variables"));
17
17
  class NotebookVariablesDelegate {
18
18
  getHeight(element) {
19
19
  return 22;
@@ -76,7 +76,7 @@ class NotebookVariableAccessibilityProvider {
76
76
  this._widgetAriaLabel.set(label, undefined);
77
77
  }
78
78
  getAriaLabel(element) {
79
- return localize(14443, "Variable {0}, value {1}", element.name, element.value);
79
+ return localize(16582, "Variable {0}, value {1}", element.name, element.value);
80
80
  }
81
81
  }
82
82
 
@@ -759,11 +759,11 @@ let NotebookOutlineCreator = class NotebookOutlineCreator {
759
759
  };
760
760
  NotebookOutlineCreator = ( __decorate([( __param(0, IOutlineService)), ( __param(1, IInstantiationService))], NotebookOutlineCreator));
761
761
  const NotebookOutlineContext = {
762
- CellKind: ( new RawContextKey("notebookCellKind", undefined)),
763
- CellHasChildren: ( new RawContextKey("notebookCellHasChildren", false)),
764
- CellHasHeader: ( new RawContextKey("notebookCellHasHeader", false)),
765
- CellFoldingState: ( new RawContextKey("notebookCellFoldingState", CellFoldingState.None)),
766
- OutlineElementTarget: ( new RawContextKey("notebookOutlineElementTarget", undefined))
762
+ CellKind: new RawContextKey("notebookCellKind", undefined),
763
+ CellHasChildren: new RawContextKey("notebookCellHasChildren", false),
764
+ CellHasHeader: new RawContextKey("notebookCellHasHeader", false),
765
+ CellFoldingState: new RawContextKey("notebookCellFoldingState", CellFoldingState.None),
766
+ OutlineElementTarget: new RawContextKey("notebookOutlineElementTarget", undefined)
767
767
  };
768
768
  ( Registry.as(Extensions.Workbench)).registerWorkbenchContribution(NotebookOutlineCreator, LifecyclePhase.Eventually);
769
769
  ( Registry.as(Extensions$1.Configuration)).registerConfiguration({
@@ -775,33 +775,33 @@ const NotebookOutlineContext = {
775
775
  type: "boolean",
776
776
  default: true,
777
777
  markdownDescription: ( localize(
778
- 14444,
778
+ 16583,
779
779
  "When enabled, notebook outline will show only markdown cells containing a header."
780
780
  ))
781
781
  },
782
782
  [NotebookSetting.outlineShowCodeCells]: {
783
783
  type: "boolean",
784
784
  default: false,
785
- markdownDescription: ( localize(14445, "When enabled, notebook outline shows code cells."))
785
+ markdownDescription: ( localize(16584, "When enabled, notebook outline shows code cells."))
786
786
  },
787
787
  [NotebookSetting.outlineShowCodeCellSymbols]: {
788
788
  type: "boolean",
789
789
  default: true,
790
790
  markdownDescription: ( localize(
791
- 14446,
791
+ 16585,
792
792
  "When enabled, notebook outline shows code cell symbols. Relies on `#notebook.outline.showCodeCells#` being enabled."
793
793
  ))
794
794
  },
795
795
  [NotebookSetting.breadcrumbsShowCodeCells]: {
796
796
  type: "boolean",
797
797
  default: true,
798
- markdownDescription: ( localize(14447, "When enabled, notebook breadcrumbs contain code cells."))
798
+ markdownDescription: ( localize(16586, "When enabled, notebook breadcrumbs contain code cells."))
799
799
  },
800
800
  [NotebookSetting.gotoSymbolsAllSymbols]: {
801
801
  type: "boolean",
802
802
  default: true,
803
803
  markdownDescription: ( localize(
804
- 14448,
804
+ 16587,
805
805
  "When enabled, the Go to Symbol Quick Pick will display full code symbols from the notebook, as well as Markdown headers."
806
806
  ))
807
807
  }
@@ -809,7 +809,7 @@ const NotebookOutlineContext = {
809
809
  });
810
810
  MenuRegistry.appendMenuItem(MenuId.ViewTitle, {
811
811
  submenu: MenuId.NotebookOutlineFilter,
812
- title: ( localize(14449, "Filter Entries")),
812
+ title: ( localize(16588, "Filter Entries")),
813
813
  icon: Codicon.filter,
814
814
  group: "navigation",
815
815
  order: -1,
@@ -819,7 +819,7 @@ registerAction2(class ToggleShowMarkdownHeadersOnly extends Action2 {
819
819
  constructor() {
820
820
  super({
821
821
  id: "notebook.outline.toggleShowMarkdownHeadersOnly",
822
- title: ( localize(14450, "Markdown Headers Only")),
822
+ title: ( localize(16589, "Markdown Headers Only")),
823
823
  f1: false,
824
824
  toggled: {
825
825
  condition: ( ContextKeyExpr.equals("config.notebook.outline.showMarkdownHeadersOnly", true))
@@ -840,7 +840,7 @@ registerAction2(class ToggleCodeCellEntries extends Action2 {
840
840
  constructor() {
841
841
  super({
842
842
  id: "notebook.outline.toggleCodeCells",
843
- title: ( localize(14451, "Code Cells")),
843
+ title: ( localize(16590, "Code Cells")),
844
844
  f1: false,
845
845
  toggled: {
846
846
  condition: ( ContextKeyExpr.equals("config.notebook.outline.showCodeCells", true))
@@ -862,7 +862,7 @@ registerAction2(class ToggleCodeCellSymbolEntries extends Action2 {
862
862
  constructor() {
863
863
  super({
864
864
  id: "notebook.outline.toggleCodeCellSymbols",
865
- title: ( localize(14452, "Code Cell Symbols")),
865
+ title: ( localize(16591, "Code Cell Symbols")),
866
866
  f1: false,
867
867
  toggled: {
868
868
  condition: ( ContextKeyExpr.equals("config.notebook.outline.showCodeCellSymbols", true))
@@ -59,7 +59,7 @@ registerAction2(class extends Action2 {
59
59
  constructor() {
60
60
  super({
61
61
  id: "notebook.setProfile",
62
- title: ( localize(14453, "Set Profile"))
62
+ title: ( localize(16592, "Set Profile"))
63
63
  });
64
64
  }
65
65
  async run(accessor, args) {