@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
@@ -1,11 +1,9 @@
1
1
  import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
2
- import { KeyMod, KeyCode } from 'vscode/vscode/vs/base/common/keyCodes';
3
2
  import { ILanguageService } from 'vscode/vscode/vs/editor/common/languages/language';
4
3
  import { localize } from 'vscode/vscode/vs/nls';
5
4
  import { registerAction2, MenuId, MenuRegistry } from 'vscode/vscode/vs/platform/actions/common/actions';
6
5
  import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
7
6
  import { InputFocusedContext } from 'vscode/vscode/vs/platform/contextkey/common/contextkeys';
8
- import { KeybindingWeight } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
9
7
  import { insertCell } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/controller/cellOperations';
10
8
  import { NotebookAction } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
11
9
  import { NOTEBOOK_CELL_LIST_FOCUSED, NOTEBOOK_EDITOR_EDITABLE } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
@@ -55,14 +53,14 @@ registerAction2(class InsertCodeCellAboveAction extends InsertCellCommand {
55
53
  constructor() {
56
54
  super({
57
55
  id: INSERT_CODE_CELL_ABOVE_COMMAND_ID,
58
- title: ( localize(7879, "Insert Code Cell Above")),
56
+ title: ( localize(7938, "Insert Code Cell Above")),
59
57
  keybinding: {
60
- primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.Enter,
58
+ primary: 2048 | 1024 | 3 ,
61
59
  when: ( (ContextKeyExpr.and(
62
60
  NOTEBOOK_CELL_LIST_FOCUSED,
63
61
  (InputFocusedContext.toNegated())
64
62
  ))),
65
- weight: KeybindingWeight.WorkbenchContrib
63
+ weight: 200
66
64
  },
67
65
  menu: {
68
66
  id: MenuId.NotebookCellInsert,
@@ -75,7 +73,7 @@ registerAction2(class InsertCodeCellAboveAndFocusContainerAction extends InsertC
75
73
  constructor() {
76
74
  super({
77
75
  id: INSERT_CODE_CELL_ABOVE_AND_FOCUS_CONTAINER_COMMAND_ID,
78
- title: ( localize(7880, "Insert Code Cell Above and Focus Container"))
76
+ title: ( localize(7939, "Insert Code Cell Above and Focus Container"))
79
77
  }, CellKind.Code, 'above', false);
80
78
  }
81
79
  });
@@ -83,15 +81,15 @@ registerAction2(class InsertCodeCellBelowAction extends InsertCellCommand {
83
81
  constructor() {
84
82
  super({
85
83
  id: INSERT_CODE_CELL_BELOW_COMMAND_ID,
86
- title: ( localize(7881, "Insert Code Cell Below")),
84
+ title: ( localize(7940, "Insert Code Cell Below")),
87
85
  keybinding: {
88
- primary: KeyMod.CtrlCmd | KeyCode.Enter,
86
+ primary: 2048 | 3 ,
89
87
  when: ( (ContextKeyExpr.and(
90
88
  NOTEBOOK_CELL_LIST_FOCUSED,
91
89
  (InputFocusedContext.toNegated()),
92
90
  (CTX_NOTEBOOK_CHAT_OUTER_FOCUS_POSITION.isEqualTo(''))
93
91
  ))),
94
- weight: KeybindingWeight.WorkbenchContrib
92
+ weight: 200
95
93
  },
96
94
  menu: {
97
95
  id: MenuId.NotebookCellInsert,
@@ -104,7 +102,7 @@ registerAction2(class InsertCodeCellBelowAndFocusContainerAction extends InsertC
104
102
  constructor() {
105
103
  super({
106
104
  id: INSERT_CODE_CELL_BELOW_AND_FOCUS_CONTAINER_COMMAND_ID,
107
- title: ( localize(7882, "Insert Code Cell Below and Focus Container")),
105
+ title: ( localize(7941, "Insert Code Cell Below and Focus Container")),
108
106
  }, CellKind.Code, 'below', false);
109
107
  }
110
108
  });
@@ -112,7 +110,7 @@ registerAction2(class InsertMarkdownCellAboveAction extends InsertCellCommand {
112
110
  constructor() {
113
111
  super({
114
112
  id: INSERT_MARKDOWN_CELL_ABOVE_COMMAND_ID,
115
- title: ( localize(7883, "Insert Markdown Cell Above")),
113
+ title: ( localize(7942, "Insert Markdown Cell Above")),
116
114
  menu: {
117
115
  id: MenuId.NotebookCellInsert,
118
116
  order: 2
@@ -124,7 +122,7 @@ registerAction2(class InsertMarkdownCellBelowAction extends InsertCellCommand {
124
122
  constructor() {
125
123
  super({
126
124
  id: INSERT_MARKDOWN_CELL_BELOW_COMMAND_ID,
127
- title: ( localize(7884, "Insert Markdown Cell Below")),
125
+ title: ( localize(7943, "Insert Markdown Cell Below")),
128
126
  menu: {
129
127
  id: MenuId.NotebookCellInsert,
130
128
  order: 3
@@ -136,7 +134,7 @@ registerAction2(class InsertCodeCellAtTopAction extends NotebookAction {
136
134
  constructor() {
137
135
  super({
138
136
  id: INSERT_CODE_CELL_AT_TOP_COMMAND_ID,
139
- title: ( localize(7885, "Add Code Cell At Top")),
137
+ title: ( localize(7944, "Add Code Cell At Top")),
140
138
  f1: false
141
139
  });
142
140
  }
@@ -158,7 +156,7 @@ registerAction2(class InsertMarkdownCellAtTopAction extends NotebookAction {
158
156
  constructor() {
159
157
  super({
160
158
  id: INSERT_MARKDOWN_CELL_AT_TOP_COMMAND_ID,
161
- title: ( localize(7886, "Add Markdown Cell At Top")),
159
+ title: ( localize(7945, "Add Markdown Cell At Top")),
162
160
  f1: false
163
161
  });
164
162
  }
@@ -179,8 +177,8 @@ registerAction2(class InsertMarkdownCellAtTopAction extends NotebookAction {
179
177
  MenuRegistry.appendMenuItem(MenuId.NotebookCellBetween, {
180
178
  command: {
181
179
  id: INSERT_CODE_CELL_BELOW_COMMAND_ID,
182
- title: '$(add) ' + ( localize(7887, "Code")),
183
- tooltip: ( localize(7888, "Add Code Cell"))
180
+ title: '$(add) ' + ( localize(7946, "Code")),
181
+ tooltip: ( localize(7947, "Add Code Cell"))
184
182
  },
185
183
  order: 0,
186
184
  group: 'inline',
@@ -192,9 +190,9 @@ MenuRegistry.appendMenuItem(MenuId.NotebookCellBetween, {
192
190
  MenuRegistry.appendMenuItem(MenuId.NotebookCellBetween, {
193
191
  command: {
194
192
  id: INSERT_CODE_CELL_BELOW_COMMAND_ID,
195
- title: ( localize(7889, "Add Code")),
193
+ title: ( localize(7948, "Add Code")),
196
194
  icon: Codicon.add,
197
- tooltip: ( localize(7888, "Add Code Cell"))
195
+ tooltip: ( localize(7947, "Add Code Cell"))
198
196
  },
199
197
  order: 0,
200
198
  group: 'inline',
@@ -207,8 +205,8 @@ MenuRegistry.appendMenuItem(MenuId.NotebookToolbar, {
207
205
  command: {
208
206
  id: INSERT_CODE_CELL_BELOW_COMMAND_ID,
209
207
  icon: Codicon.add,
210
- title: ( localize(7890, "Code")),
211
- tooltip: ( localize(7888, "Add Code Cell"))
208
+ title: ( localize(7949, "Code")),
209
+ tooltip: ( localize(7947, "Add Code Cell"))
212
210
  },
213
211
  order: -5,
214
212
  group: 'navigation/add',
@@ -221,8 +219,8 @@ MenuRegistry.appendMenuItem(MenuId.NotebookToolbar, {
221
219
  MenuRegistry.appendMenuItem(MenuId.NotebookCellListTop, {
222
220
  command: {
223
221
  id: INSERT_CODE_CELL_AT_TOP_COMMAND_ID,
224
- title: '$(add) ' + ( localize(7887, "Code")),
225
- tooltip: ( localize(7888, "Add Code Cell"))
222
+ title: '$(add) ' + ( localize(7946, "Code")),
223
+ tooltip: ( localize(7947, "Add Code Cell"))
226
224
  },
227
225
  order: 0,
228
226
  group: 'inline',
@@ -234,9 +232,9 @@ MenuRegistry.appendMenuItem(MenuId.NotebookCellListTop, {
234
232
  MenuRegistry.appendMenuItem(MenuId.NotebookCellListTop, {
235
233
  command: {
236
234
  id: INSERT_CODE_CELL_AT_TOP_COMMAND_ID,
237
- title: ( localize(7891, "Add Code")),
235
+ title: ( localize(7950, "Add Code")),
238
236
  icon: Codicon.add,
239
- tooltip: ( localize(7888, "Add Code Cell"))
237
+ tooltip: ( localize(7947, "Add Code Cell"))
240
238
  },
241
239
  order: 0,
242
240
  group: 'inline',
@@ -248,8 +246,8 @@ MenuRegistry.appendMenuItem(MenuId.NotebookCellListTop, {
248
246
  MenuRegistry.appendMenuItem(MenuId.NotebookCellBetween, {
249
247
  command: {
250
248
  id: INSERT_MARKDOWN_CELL_BELOW_COMMAND_ID,
251
- title: '$(add) ' + ( localize(7892, "Markdown")),
252
- tooltip: ( localize(7893, "Add Markdown Cell"))
249
+ title: '$(add) ' + ( localize(7951, "Markdown")),
250
+ tooltip: ( localize(7952, "Add Markdown Cell"))
253
251
  },
254
252
  order: 1,
255
253
  group: 'inline',
@@ -262,8 +260,8 @@ MenuRegistry.appendMenuItem(MenuId.NotebookToolbar, {
262
260
  command: {
263
261
  id: INSERT_MARKDOWN_CELL_BELOW_COMMAND_ID,
264
262
  icon: Codicon.add,
265
- title: ( localize(7894, "Markdown")),
266
- tooltip: ( localize(7893, "Add Markdown Cell"))
263
+ title: ( localize(7953, "Markdown")),
264
+ tooltip: ( localize(7952, "Add Markdown Cell"))
267
265
  },
268
266
  order: -5,
269
267
  group: 'navigation/add',
@@ -278,8 +276,8 @@ MenuRegistry.appendMenuItem(MenuId.NotebookToolbar, {
278
276
  MenuRegistry.appendMenuItem(MenuId.NotebookCellListTop, {
279
277
  command: {
280
278
  id: INSERT_MARKDOWN_CELL_AT_TOP_COMMAND_ID,
281
- title: '$(add) ' + ( localize(7892, "Markdown")),
282
- tooltip: ( localize(7893, "Add Markdown Cell"))
279
+ title: '$(add) ' + ( localize(7951, "Markdown")),
280
+ tooltip: ( localize(7952, "Add Markdown Cell"))
283
281
  },
284
282
  order: 1,
285
283
  group: 'inline',
@@ -5,7 +5,6 @@ import { localize2, localize } from 'vscode/vscode/vs/nls';
5
5
  import { Categories } from 'vscode/vscode/vs/platform/action/common/actionCommonCategories';
6
6
  import { registerAction2, Action2, MenuId, MenuRegistry } from 'vscode/vscode/vs/platform/actions/common/actions';
7
7
  import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands.service';
8
- import { ConfigurationTarget } from 'vscode/vscode/vs/platform/configuration/common/configuration';
9
8
  import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
10
9
  import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
11
10
  import { IQuickInputService } from 'vscode/vscode/vs/platform/quickinput/common/quickInput.service';
@@ -22,7 +21,7 @@ registerAction2(class NotebookConfigureLayoutAction extends Action2 {
22
21
  constructor() {
23
22
  super({
24
23
  id: 'workbench.notebook.layout.select',
25
- title: ( localize2(7918, "Select between Notebook Layouts")),
24
+ title: ( localize2(7977, "Select between Notebook Layouts")),
26
25
  f1: true,
27
26
  precondition: ( (ContextKeyExpr.equals(`config.${NotebookSetting.openGettingStarted}`, true))),
28
27
  category: NOTEBOOK_ACTIONS_CATEGORY,
@@ -57,7 +56,7 @@ registerAction2(class NotebookConfigureLayoutAction extends Action2 {
57
56
  constructor() {
58
57
  super({
59
58
  id: 'workbench.notebook.layout.configure',
60
- title: ( localize2(7919, "Customize Notebook Layout")),
59
+ title: ( localize2(7978, "Customize Notebook Layout")),
61
60
  f1: true,
62
61
  category: NOTEBOOK_ACTIONS_CATEGORY,
63
62
  menu: [
@@ -78,7 +77,7 @@ registerAction2(class NotebookConfigureLayoutFromEditorTitle extends Action2 {
78
77
  constructor() {
79
78
  super({
80
79
  id: 'workbench.notebook.layout.configure.editorTitle',
81
- title: ( localize2(7919, "Customize Notebook Layout")),
80
+ title: ( localize2(7978, "Customize Notebook Layout")),
82
81
  f1: false,
83
82
  category: NOTEBOOK_ACTIONS_CATEGORY,
84
83
  menu: [
@@ -98,7 +97,7 @@ registerAction2(class NotebookConfigureLayoutFromEditorTitle extends Action2 {
98
97
  MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
99
98
  submenu: MenuId.NotebookEditorLayoutConfigure,
100
99
  rememberDefaultAction: false,
101
- title: ( localize2(7920, "Customize Notebook...")),
100
+ title: ( localize2(7979, "Customize Notebook...")),
102
101
  icon: Codicon.gear,
103
102
  group: 'navigation',
104
103
  order: -1,
@@ -108,7 +107,7 @@ registerAction2(class ToggleLineNumberFromEditorTitle extends Action2 {
108
107
  constructor() {
109
108
  super({
110
109
  id: 'notebook.toggleLineNumbersFromEditorTitle',
111
- title: ( localize2(7921, 'Toggle Notebook Line Numbers')),
110
+ title: ( localize2(7980, 'Toggle Notebook Line Numbers')),
112
111
  precondition: NOTEBOOK_EDITOR_FOCUSED,
113
112
  menu: [
114
113
  {
@@ -122,7 +121,7 @@ registerAction2(class ToggleLineNumberFromEditorTitle extends Action2 {
122
121
  f1: true,
123
122
  toggled: {
124
123
  condition: ( (ContextKeyExpr.notEquals('config.notebook.lineNumbers', 'off'))),
125
- title: ( localize(7922, "Notebook Line Numbers")),
124
+ title: ( localize(7981, "Notebook Line Numbers")),
126
125
  }
127
126
  });
128
127
  }
@@ -134,7 +133,7 @@ registerAction2(class ToggleCellToolbarPositionFromEditorTitle extends Action2 {
134
133
  constructor() {
135
134
  super({
136
135
  id: 'notebook.toggleCellToolbarPositionFromEditorTitle',
137
- title: ( localize2(7923, 'Toggle Cell Toolbar Position')),
136
+ title: ( localize2(7982, 'Toggle Cell Toolbar Position')),
138
137
  menu: [{
139
138
  id: MenuId.NotebookEditorLayoutConfigure,
140
139
  group: 'notebookLayoutDetails',
@@ -152,7 +151,7 @@ registerAction2(class ToggleBreadcrumbFromEditorTitle extends Action2 {
152
151
  constructor() {
153
152
  super({
154
153
  id: 'breadcrumbs.toggleFromEditorTitle',
155
- title: ( localize2(7924, 'Toggle Breadcrumbs')),
154
+ title: ( localize2(7983, 'Toggle Breadcrumbs')),
156
155
  menu: [{
157
156
  id: MenuId.NotebookEditorLayoutConfigure,
158
157
  group: 'notebookLayoutDetails',
@@ -169,7 +168,7 @@ registerAction2(class SaveMimeTypeDisplayOrder extends Action2 {
169
168
  constructor() {
170
169
  super({
171
170
  id: 'notebook.saveMimeTypeOrder',
172
- title: ( localize2(7925, "Save Mimetype Display Order")),
171
+ title: ( localize2(7984, "Save Mimetype Display Order")),
173
172
  f1: true,
174
173
  category: NOTEBOOK_ACTIONS_CATEGORY,
175
174
  precondition: NOTEBOOK_IS_ACTIVE_EDITOR,
@@ -179,10 +178,10 @@ registerAction2(class SaveMimeTypeDisplayOrder extends Action2 {
179
178
  const service = accessor.get(INotebookService);
180
179
  const disposables = ( (new DisposableStore()));
181
180
  const qp = disposables.add(accessor.get(IQuickInputService).createQuickPick());
182
- qp.placeholder = ( localize(7926, 'Settings file to save in'));
181
+ qp.placeholder = ( localize(7985, 'Settings file to save in'));
183
182
  qp.items = [
184
- { target: ConfigurationTarget.USER, label: ( localize(7927, 'User Settings')) },
185
- { target: ConfigurationTarget.WORKSPACE, label: ( localize(7928, 'Workspace Settings')) },
183
+ { target: 2 , label: ( localize(7986, 'User Settings')) },
184
+ { target: 5 , label: ( localize(7987, 'Workspace Settings')) },
186
185
  ];
187
186
  disposables.add(qp.onDidAccept(() => {
188
187
  const target = qp.selectedItems[0]?.target;
@@ -199,7 +198,7 @@ registerAction2(class NotebookWebviewResetAction extends Action2 {
199
198
  constructor() {
200
199
  super({
201
200
  id: 'workbench.notebook.layout.webview.reset',
202
- title: ( localize2(7929, "Reset Notebook Webview")),
201
+ title: ( localize2(7988, "Reset Notebook Webview")),
203
202
  f1: false,
204
203
  category: NOTEBOOK_ACTIONS_CATEGORY
205
204
  });
@@ -230,14 +229,14 @@ registerAction2(class ToggleNotebookStickyScroll extends Action2 {
230
229
  super({
231
230
  id: 'notebook.action.toggleNotebookStickyScroll',
232
231
  title: {
233
- ...( localize2(7930, "Toggle Notebook Sticky Scroll")),
234
- mnemonicTitle: ( localize(7931, "&&Toggle Notebook Sticky Scroll")),
232
+ ...( localize2(7989, "Toggle Notebook Sticky Scroll")),
233
+ mnemonicTitle: ( localize(7990, "&&Toggle Notebook Sticky Scroll")),
235
234
  },
236
235
  category: Categories.View,
237
236
  toggled: {
238
237
  condition: ( (ContextKeyExpr.equals('config.notebook.stickyScroll.enabled', true))),
239
- title: ( localize(7932, "Toggle Notebook Sticky Scroll")),
240
- mnemonicTitle: ( localize(7931, "&&Toggle Notebook Sticky Scroll")),
238
+ title: ( localize(7991, "Toggle Notebook Sticky Scroll")),
239
+ mnemonicTitle: ( localize(7990, "&&Toggle Notebook Sticky Scroll")),
241
240
  },
242
241
  menu: [
243
242
  { id: MenuId.CommandPalette },
@@ -17,7 +17,7 @@ class NotebookIndentUsingTabs extends Action2 {
17
17
  constructor() {
18
18
  super({
19
19
  id: NotebookIndentUsingTabs.ID,
20
- title: ( localize(10740, "Indent Using Tabs")),
20
+ title: ( localize(10819, "Indent Using Tabs")),
21
21
  precondition: undefined,
22
22
  });
23
23
  }
@@ -30,7 +30,7 @@ class NotebookIndentUsingSpaces extends Action2 {
30
30
  constructor() {
31
31
  super({
32
32
  id: NotebookIndentUsingSpaces.ID,
33
- title: ( localize(10741, "Indent Using Spaces")),
33
+ title: ( localize(10820, "Indent Using Spaces")),
34
34
  precondition: undefined,
35
35
  });
36
36
  }
@@ -43,7 +43,7 @@ class NotebookChangeTabDisplaySize extends Action2 {
43
43
  constructor() {
44
44
  super({
45
45
  id: NotebookChangeTabDisplaySize.ID,
46
- title: ( localize(10742, "Change Tab Display Size")),
46
+ title: ( localize(10821, "Change Tab Display Size")),
47
47
  precondition: undefined,
48
48
  });
49
49
  }
@@ -56,7 +56,7 @@ class NotebookIndentationToSpacesAction extends Action2 {
56
56
  constructor() {
57
57
  super({
58
58
  id: NotebookIndentationToSpacesAction.ID,
59
- title: ( localize(10743, "Convert Indentation to Spaces")),
59
+ title: ( localize(10822, "Convert Indentation to Spaces")),
60
60
  precondition: undefined,
61
61
  });
62
62
  }
@@ -69,7 +69,7 @@ class NotebookIndentationToTabsAction extends Action2 {
69
69
  constructor() {
70
70
  super({
71
71
  id: NotebookIndentationToTabsAction.ID,
72
- title: ( localize(10744, "Convert Indentation to Tabs")),
72
+ title: ( localize(10823, "Convert Indentation to Tabs")),
73
73
  precondition: undefined,
74
74
  });
75
75
  }
@@ -101,7 +101,7 @@ function changeNotebookIndentation(accessor, insertSpaces, displaySizeOnly) {
101
101
  delete initialConfig['editor.tabSize'];
102
102
  delete initialConfig['editor.insertSpaces'];
103
103
  setTimeout(() => {
104
- quickInputService.pick(picks, { placeHolder: ( localize(10745, "Select Tab Size for Current File")) }).then(pick => {
104
+ quickInputService.pick(picks, { placeHolder: ( localize(10824, "Select Tab Size for Current File")) }).then(pick => {
105
105
  if (pick) {
106
106
  const pickedVal = parseInt(pick.label, 10);
107
107
  if (displaySizeOnly) {
@@ -151,7 +151,7 @@ function convertNotebookIndentation(accessor, tabsToSpaces) {
151
151
  return;
152
152
  }
153
153
  const edits = getIndentationEditOperations(textEditorModel, modelOpts.tabSize, tabsToSpaces);
154
- bulkEditService.apply(edits, { label: ( localize(10746, "Convert Indentation")), code: 'undoredo.convertIndentation', });
154
+ bulkEditService.apply(edits, { label: ( localize(10825, "Convert Indentation")), code: 'undoredo.convertIndentation', });
155
155
  })))).then(() => {
156
156
  const initialConfig = configurationService.getValue(NotebookSetting.cellEditorOptionsCustomizations);
157
157
  const initialIndentSize = initialConfig['editor.indentSize'];
@@ -3,20 +3,18 @@ import { Action2, MenuId, registerAction2 } from 'vscode/vscode/vs/platform/acti
3
3
  import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
4
4
  import { NotebookOutlineContext } from '../contrib/outline/notebookOutline.js';
5
5
  import { FoldingController } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/controller/foldingController';
6
- import { CellFoldingState } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
7
6
  import { executeIcon } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookIcons';
8
7
  import { CellKind } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
9
- import { OutlineTarget } from 'vscode/vscode/vs/workbench/services/outline/browser/outline';
10
8
 
11
9
  class NotebookRunSingleCellInSection extends Action2 {
12
10
  constructor() {
13
11
  super({
14
12
  id: 'notebook.section.runSingleCell',
15
13
  title: {
16
- ...( localize2(7910, "Run Cell")),
17
- mnemonicTitle: ( localize(7911, "&&Run Cell")),
14
+ ...( localize2(7969, "Run Cell")),
15
+ mnemonicTitle: ( localize(7970, "&&Run Cell")),
18
16
  },
19
- shortTitle: ( localize(7910, "Run Cell")),
17
+ shortTitle: ( localize(7969, "Run Cell")),
20
18
  icon: executeIcon,
21
19
  menu: [
22
20
  {
@@ -25,7 +23,7 @@ class NotebookRunSingleCellInSection extends Action2 {
25
23
  order: 1,
26
24
  when: ( (ContextKeyExpr.and(
27
25
  (NotebookOutlineContext.CellKind.isEqualTo(CellKind.Code)),
28
- (NotebookOutlineContext.OutlineElementTarget.isEqualTo(OutlineTarget.OutlinePane)),
26
+ (NotebookOutlineContext.OutlineElementTarget.isEqualTo(1 )),
29
27
  (NotebookOutlineContext.CellHasChildren.toNegated()),
30
28
  (NotebookOutlineContext.CellHasHeader.toNegated())
31
29
  )))
@@ -45,10 +43,10 @@ class NotebookRunCellsInSection extends Action2 {
45
43
  super({
46
44
  id: 'notebook.section.runCells',
47
45
  title: {
48
- ...( localize2(7912, "Run Cells In Section")),
49
- mnemonicTitle: ( localize(7913, "&&Run Cells In Section")),
46
+ ...( localize2(7971, "Run Cells In Section")),
47
+ mnemonicTitle: ( localize(7972, "&&Run Cells In Section")),
50
48
  },
51
- shortTitle: ( localize(7912, "Run Cells In Section")),
49
+ shortTitle: ( localize(7971, "Run Cells In Section")),
52
50
  menu: [
53
51
  {
54
52
  id: MenuId.NotebookStickyScrollContext,
@@ -61,7 +59,7 @@ class NotebookRunCellsInSection extends Action2 {
61
59
  order: 1,
62
60
  when: ( (ContextKeyExpr.and(
63
61
  (NotebookOutlineContext.CellKind.isEqualTo(CellKind.Markup)),
64
- (NotebookOutlineContext.OutlineElementTarget.isEqualTo(OutlineTarget.OutlinePane)),
62
+ (NotebookOutlineContext.OutlineElementTarget.isEqualTo(1 )),
65
63
  NotebookOutlineContext.CellHasChildren,
66
64
  NotebookOutlineContext.CellHasHeader
67
65
  )))
@@ -91,10 +89,10 @@ class NotebookFoldSection extends Action2 {
91
89
  super({
92
90
  id: 'notebook.section.foldSection',
93
91
  title: {
94
- ...( localize2(7914, "Fold Section")),
95
- mnemonicTitle: ( localize(7915, "&&Fold Section")),
92
+ ...( localize2(7973, "Fold Section")),
93
+ mnemonicTitle: ( localize(7974, "&&Fold Section")),
96
94
  },
97
- shortTitle: ( localize(7914, "Fold Section")),
95
+ shortTitle: ( localize(7973, "Fold Section")),
98
96
  menu: [
99
97
  {
100
98
  id: MenuId.NotebookOutlineActionMenu,
@@ -102,10 +100,10 @@ class NotebookFoldSection extends Action2 {
102
100
  order: 2,
103
101
  when: ( (ContextKeyExpr.and(
104
102
  (NotebookOutlineContext.CellKind.isEqualTo(CellKind.Markup)),
105
- (NotebookOutlineContext.OutlineElementTarget.isEqualTo(OutlineTarget.OutlinePane)),
103
+ (NotebookOutlineContext.OutlineElementTarget.isEqualTo(1 )),
106
104
  NotebookOutlineContext.CellHasChildren,
107
105
  NotebookOutlineContext.CellHasHeader,
108
- (NotebookOutlineContext.CellFoldingState.isEqualTo(CellFoldingState.Expanded))
106
+ (NotebookOutlineContext.CellFoldingState.isEqualTo(1 ))
109
107
  )))
110
108
  }
111
109
  ]
@@ -121,7 +119,7 @@ class NotebookFoldSection extends Action2 {
121
119
  const foldingController = notebookEditor.getContribution(FoldingController.id);
122
120
  const index = entry.index;
123
121
  const headerLevel = entry.level;
124
- const newFoldingState = CellFoldingState.Collapsed;
122
+ const newFoldingState = 2 ;
125
123
  foldingController.setFoldingStateDown(index, newFoldingState, headerLevel);
126
124
  }
127
125
  }
@@ -130,10 +128,10 @@ class NotebookExpandSection extends Action2 {
130
128
  super({
131
129
  id: 'notebook.section.expandSection',
132
130
  title: {
133
- ...( localize2(7916, "Expand Section")),
134
- mnemonicTitle: ( localize(7917, "&&Expand Section")),
131
+ ...( localize2(7975, "Expand Section")),
132
+ mnemonicTitle: ( localize(7976, "&&Expand Section")),
135
133
  },
136
- shortTitle: ( localize(7916, "Expand Section")),
134
+ shortTitle: ( localize(7975, "Expand Section")),
137
135
  menu: [
138
136
  {
139
137
  id: MenuId.NotebookOutlineActionMenu,
@@ -141,10 +139,10 @@ class NotebookExpandSection extends Action2 {
141
139
  order: 2,
142
140
  when: ( (ContextKeyExpr.and(
143
141
  (NotebookOutlineContext.CellKind.isEqualTo(CellKind.Markup)),
144
- (NotebookOutlineContext.OutlineElementTarget.isEqualTo(OutlineTarget.OutlinePane)),
142
+ (NotebookOutlineContext.OutlineElementTarget.isEqualTo(1 )),
145
143
  NotebookOutlineContext.CellHasChildren,
146
144
  NotebookOutlineContext.CellHasHeader,
147
- (NotebookOutlineContext.CellFoldingState.isEqualTo(CellFoldingState.Collapsed))
145
+ (NotebookOutlineContext.CellFoldingState.isEqualTo(2 ))
148
146
  )))
149
147
  }
150
148
  ]
@@ -160,7 +158,7 @@ class NotebookExpandSection extends Action2 {
160
158
  const foldingController = notebookEditor.getContribution(FoldingController.id);
161
159
  const index = entry.index;
162
160
  const headerLevel = entry.level;
163
- const newFoldingState = CellFoldingState.Expanded;
161
+ const newFoldingState = 1 ;
164
162
  foldingController.setFoldingStateDown(index, newFoldingState, headerLevel);
165
163
  }
166
164
  }