@codingame/monaco-vscode-notebook-service-override 7.1.0 → 8.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 (44) hide show
  1. package/package.json +2 -2
  2. package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +14 -20
  3. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +22 -23
  4. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticsActions.js +3 -4
  5. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.js +2 -3
  6. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js +5 -7
  7. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js +7 -8
  8. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js +12 -13
  9. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.js +3 -4
  10. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.js +5 -6
  11. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.js +2 -3
  12. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.js +2 -3
  13. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +16 -19
  14. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.js +2 -3
  15. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesDataSource.js +2 -3
  16. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.js +3 -4
  17. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.js +4 -6
  18. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +13 -17
  19. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/profile/notebookProfile.js +2 -3
  20. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.js +15 -18
  21. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.js +4 -5
  22. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +25 -26
  23. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +3 -20
  24. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +629 -0
  25. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +23 -24
  26. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +25 -26
  27. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +18 -19
  28. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js +208 -0
  29. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.js +13 -14
  30. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +2 -3
  31. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +11 -15
  32. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +12 -13
  33. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +2 -3
  34. package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +95 -163
  35. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.js +38 -50
  36. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibleView.js +11 -12
  37. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +43 -53
  38. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js +2 -7
  39. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.js +2 -3
  40. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js +5 -7
  41. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js +2 -3
  42. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +2 -3
  43. package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +16 -20
  44. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +2 -3
@@ -3,7 +3,7 @@ import { KeyMod, KeyCode } from 'vscode/vscode/vs/base/common/keyCodes';
3
3
  import { isEqual } from 'vscode/vscode/vs/base/common/resources';
4
4
  import { ThemeIcon } from 'vscode/vscode/vs/base/common/themables';
5
5
  import { ILanguageService } from 'vscode/vscode/vs/editor/common/languages/language';
6
- import { localizeWithPath, localize2WithPath } from 'vscode/vscode/vs/nls';
6
+ import { localize, localize2 } from 'vscode/vscode/vs/nls';
7
7
  import { registerAction2, MenuId, MenuRegistry } from 'vscode/vscode/vs/platform/actions/common/actions';
8
8
  import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
9
9
  import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
@@ -23,7 +23,6 @@ import { INotebookExecutionStateService } from 'vscode/vscode/vs/workbench/contr
23
23
  import { IEditorGroupsService } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
24
24
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
25
25
 
26
- const _moduleId = "vs/workbench/contrib/notebook/browser/controller/executeActions";
27
26
  const EXECUTE_NOTEBOOK_COMMAND_ID = 'notebook.execute';
28
27
  const CANCEL_NOTEBOOK_COMMAND_ID = 'notebook.cancelExecution';
29
28
  const INTERRUPT_NOTEBOOK_COMMAND_ID = 'notebook.interruptExecution';
@@ -91,7 +90,7 @@ registerAction2(class RenderAllMarkdownCellsAction extends NotebookAction {
91
90
  constructor() {
92
91
  super({
93
92
  id: RENDER_ALL_MARKDOWN_CELLS,
94
- title: ( localizeWithPath(_moduleId, 0, "Render All Markdown Cells")),
93
+ title: ( localize(7824, "Render All Markdown Cells")),
95
94
  });
96
95
  }
97
96
  async runWithContext(accessor, context) {
@@ -102,10 +101,10 @@ registerAction2(class ExecuteNotebookAction extends NotebookAction {
102
101
  constructor() {
103
102
  super({
104
103
  id: EXECUTE_NOTEBOOK_COMMAND_ID,
105
- title: ( localizeWithPath(_moduleId, 1, "Run All")),
104
+ title: ( localize(7825, "Run All")),
106
105
  icon: executeAllIcon,
107
106
  metadata: {
108
- description: ( localizeWithPath(_moduleId, 1, "Run All")),
107
+ description: ( localize(7825, "Run All")),
109
108
  args: [
110
109
  {
111
110
  name: 'uri',
@@ -163,7 +162,7 @@ registerAction2(class ExecuteCell extends NotebookMultiCellAction {
163
162
  super({
164
163
  id: EXECUTE_CELL_COMMAND_ID,
165
164
  precondition: executeThisCellCondition,
166
- title: ( localizeWithPath(_moduleId, 2, "Execute Cell")),
165
+ title: ( localize(7826, "Execute Cell")),
167
166
  keybinding: {
168
167
  when: ( (ContextKeyExpr.or(
169
168
  NOTEBOOK_CELL_LIST_FOCUSED,
@@ -181,7 +180,7 @@ registerAction2(class ExecuteCell extends NotebookMultiCellAction {
181
180
  group: 'inline'
182
181
  },
183
182
  metadata: {
184
- description: ( localizeWithPath(_moduleId, 2, "Execute Cell")),
183
+ description: ( localize(7826, "Execute Cell")),
185
184
  args: cellExecutionArgs
186
185
  },
187
186
  icon: executeIcon
@@ -215,7 +214,7 @@ registerAction2(class ExecuteAboveCells extends NotebookMultiCellAction {
215
214
  super({
216
215
  id: EXECUTE_CELLS_ABOVE,
217
216
  precondition: executeCondition,
218
- title: ( localizeWithPath(_moduleId, 3, "Execute Above Cells")),
217
+ title: ( localize(7827, "Execute Above Cells")),
219
218
  menu: [
220
219
  {
221
220
  id: MenuId.NotebookCellExecute,
@@ -261,7 +260,7 @@ registerAction2(class ExecuteCellAndBelow extends NotebookMultiCellAction {
261
260
  super({
262
261
  id: EXECUTE_CELL_AND_BELOW,
263
262
  precondition: executeCondition,
264
- title: ( localizeWithPath(_moduleId, 4, "Execute Cell and Below")),
263
+ title: ( localize(7828, "Execute Cell and Below")),
265
264
  menu: [
266
265
  {
267
266
  id: MenuId.NotebookCellExecute,
@@ -307,9 +306,9 @@ registerAction2(class ExecuteCellFocusContainer extends NotebookMultiCellAction
307
306
  super({
308
307
  id: EXECUTE_CELL_FOCUS_CONTAINER_COMMAND_ID,
309
308
  precondition: executeThisCellCondition,
310
- title: ( localizeWithPath(_moduleId, 5, "Execute Cell and Focus Container")),
309
+ title: ( localize(7829, "Execute Cell and Focus Container")),
311
310
  metadata: {
312
- description: ( localizeWithPath(_moduleId, 5, "Execute Cell and Focus Container")),
311
+ description: ( localize(7829, "Execute Cell and Focus Container")),
313
312
  args: cellExecutionArgs
314
313
  },
315
314
  icon: executeIcon
@@ -341,7 +340,7 @@ registerAction2(class CancelExecuteCell extends NotebookMultiCellAction {
341
340
  super({
342
341
  id: CANCEL_CELL_COMMAND_ID,
343
342
  precondition: cellCancelCondition,
344
- title: ( localizeWithPath(_moduleId, 6, "Stop Cell Execution")),
343
+ title: ( localize(7830, "Stop Cell Execution")),
345
344
  icon: stopIcon,
346
345
  menu: {
347
346
  id: MenuId.NotebookCellExecutePrimary,
@@ -349,7 +348,7 @@ registerAction2(class CancelExecuteCell extends NotebookMultiCellAction {
349
348
  group: 'inline'
350
349
  },
351
350
  metadata: {
352
- description: ( localizeWithPath(_moduleId, 6, "Stop Cell Execution")),
351
+ description: ( localize(7830, "Stop Cell Execution")),
353
352
  args: [
354
353
  {
355
354
  name: 'options',
@@ -407,7 +406,7 @@ registerAction2(class ExecuteCellSelectBelow extends NotebookCellAction {
407
406
  executeThisCellCondition,
408
407
  (NOTEBOOK_CELL_TYPE.isEqualTo('markup'))
409
408
  ))),
410
- title: ( localizeWithPath(_moduleId, 7, "Execute Notebook Cell and Select Below")),
409
+ title: ( localize(7831, "Execute Notebook Cell and Select Below")),
411
410
  keybinding: {
412
411
  when: ( (ContextKeyExpr.and(
413
412
  NOTEBOOK_CELL_LIST_FOCUSED,
@@ -473,7 +472,7 @@ registerAction2(class ExecuteCellInsertBelow extends NotebookCellAction {
473
472
  executeThisCellCondition,
474
473
  (NOTEBOOK_CELL_TYPE.isEqualTo('markup'))
475
474
  ))),
476
- title: ( localizeWithPath(_moduleId, 8, "Execute Notebook Cell and Insert Below")),
475
+ title: ( localize(7832, "Execute Notebook Cell and Insert Below")),
477
476
  keybinding: {
478
477
  when: NOTEBOOK_CELL_LIST_FOCUSED,
479
478
  primary: KeyMod.Alt | KeyCode.Enter,
@@ -510,7 +509,7 @@ registerAction2(class CancelAllNotebook extends CancelNotebook {
510
509
  constructor() {
511
510
  super({
512
511
  id: CANCEL_NOTEBOOK_COMMAND_ID,
513
- title: ( localize2WithPath(_moduleId, 9, "Stop Execution")),
512
+ title: ( localize2(7833, "Stop Execution")),
514
513
  icon: stopIcon,
515
514
  menu: [
516
515
  {
@@ -542,7 +541,7 @@ registerAction2(class InterruptNotebook extends CancelNotebook {
542
541
  constructor() {
543
542
  super({
544
543
  id: INTERRUPT_NOTEBOOK_COMMAND_ID,
545
- title: ( localize2WithPath(_moduleId, 10, "Interrupt")),
544
+ title: ( localize2(7834, "Interrupt")),
546
545
  precondition: ( (ContextKeyExpr.and(NOTEBOOK_HAS_SOMETHING_RUNNING, NOTEBOOK_INTERRUPTIBLE_KERNEL))),
547
546
  icon: stopIcon,
548
547
  menu: [
@@ -576,7 +575,7 @@ registerAction2(class InterruptNotebook extends CancelNotebook {
576
575
  }
577
576
  });
578
577
  MenuRegistry.appendMenuItem(MenuId.NotebookToolbar, {
579
- title: ( localizeWithPath(_moduleId, 11, "Go To")),
578
+ title: ( localize(7835, "Go To")),
580
579
  submenu: MenuId.NotebookCellExecuteGoTo,
581
580
  group: 'navigation/execute',
582
581
  order: 20,
@@ -586,9 +585,9 @@ registerAction2(class RevealRunningCellAction extends NotebookAction {
586
585
  constructor() {
587
586
  super({
588
587
  id: REVEAL_RUNNING_CELL,
589
- title: ( localizeWithPath(_moduleId, 12, "Go to Running Cell")),
590
- tooltip: ( localizeWithPath(_moduleId, 12, "Go to Running Cell")),
591
- shortTitle: ( localizeWithPath(_moduleId, 12, "Go to Running Cell")),
588
+ title: ( localize(7836, "Go to Running Cell")),
589
+ tooltip: ( localize(7836, "Go to Running Cell")),
590
+ shortTitle: ( localize(7836, "Go to Running Cell")),
592
591
  precondition: NOTEBOOK_HAS_RUNNING_CELL,
593
592
  menu: [
594
593
  {
@@ -657,9 +656,9 @@ registerAction2(class RevealLastFailedCellAction extends NotebookAction {
657
656
  constructor() {
658
657
  super({
659
658
  id: REVEAL_LAST_FAILED_CELL,
660
- title: ( localizeWithPath(_moduleId, 13, "Go to Most Recently Failed Cell")),
661
- tooltip: ( localizeWithPath(_moduleId, 13, "Go to Most Recently Failed Cell")),
662
- shortTitle: ( localizeWithPath(_moduleId, 14, "Go to Most Recently Failed Cell")),
659
+ title: ( localize(7837, "Go to Most Recently Failed Cell")),
660
+ tooltip: ( localize(7837, "Go to Most Recently Failed Cell")),
661
+ shortTitle: ( localize(7838, "Go to Most Recently Failed Cell")),
663
662
  precondition: NOTEBOOK_LAST_CELL_FAILED,
664
663
  menu: [
665
664
  {
@@ -1,7 +1,7 @@
1
1
  import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
2
2
  import { KeyMod, KeyCode } from 'vscode/vscode/vs/base/common/keyCodes';
3
3
  import { ILanguageService } from 'vscode/vscode/vs/editor/common/languages/language';
4
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
4
+ import { localize } from 'vscode/vscode/vs/nls';
5
5
  import { registerAction2, MenuId, MenuRegistry } from 'vscode/vscode/vs/platform/actions/common/actions';
6
6
  import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
7
7
  import { InputFocusedContext } from 'vscode/vscode/vs/platform/contextkey/common/contextkeys';
@@ -12,7 +12,6 @@ import { NOTEBOOK_CELL_LIST_FOCUSED, NOTEBOOK_EDITOR_EDITABLE } from 'vscode/vsc
12
12
  import { CellKind, NotebookSetting } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
13
13
  import { CTX_NOTEBOOK_CHAT_OUTER_FOCUS_POSITION } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext';
14
14
 
15
- const _moduleId = "vs/workbench/contrib/notebook/browser/controller/insertCellActions";
16
15
  const INSERT_CODE_CELL_ABOVE_COMMAND_ID = 'notebook.cell.insertCodeCellAbove';
17
16
  const INSERT_CODE_CELL_BELOW_COMMAND_ID = 'notebook.cell.insertCodeCellBelow';
18
17
  const INSERT_CODE_CELL_ABOVE_AND_FOCUS_CONTAINER_COMMAND_ID = 'notebook.cell.insertCodeCellAboveAndFocusContainer';
@@ -56,7 +55,7 @@ registerAction2(class InsertCodeCellAboveAction extends InsertCellCommand {
56
55
  constructor() {
57
56
  super({
58
57
  id: INSERT_CODE_CELL_ABOVE_COMMAND_ID,
59
- title: ( localizeWithPath(_moduleId, 0, "Insert Code Cell Above")),
58
+ title: ( localize(7808, "Insert Code Cell Above")),
60
59
  keybinding: {
61
60
  primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.Enter,
62
61
  when: ( (ContextKeyExpr.and(
@@ -76,7 +75,7 @@ registerAction2(class InsertCodeCellAboveAndFocusContainerAction extends InsertC
76
75
  constructor() {
77
76
  super({
78
77
  id: INSERT_CODE_CELL_ABOVE_AND_FOCUS_CONTAINER_COMMAND_ID,
79
- title: ( localizeWithPath(_moduleId, 1, "Insert Code Cell Above and Focus Container"))
78
+ title: ( localize(7809, "Insert Code Cell Above and Focus Container"))
80
79
  }, CellKind.Code, 'above', false);
81
80
  }
82
81
  });
@@ -84,7 +83,7 @@ registerAction2(class InsertCodeCellBelowAction extends InsertCellCommand {
84
83
  constructor() {
85
84
  super({
86
85
  id: INSERT_CODE_CELL_BELOW_COMMAND_ID,
87
- title: ( localizeWithPath(_moduleId, 2, "Insert Code Cell Below")),
86
+ title: ( localize(7810, "Insert Code Cell Below")),
88
87
  keybinding: {
89
88
  primary: KeyMod.CtrlCmd | KeyCode.Enter,
90
89
  when: ( (ContextKeyExpr.and(
@@ -105,7 +104,7 @@ registerAction2(class InsertCodeCellBelowAndFocusContainerAction extends InsertC
105
104
  constructor() {
106
105
  super({
107
106
  id: INSERT_CODE_CELL_BELOW_AND_FOCUS_CONTAINER_COMMAND_ID,
108
- title: ( localizeWithPath(_moduleId, 3, "Insert Code Cell Below and Focus Container")),
107
+ title: ( localize(7811, "Insert Code Cell Below and Focus Container")),
109
108
  }, CellKind.Code, 'below', false);
110
109
  }
111
110
  });
@@ -113,7 +112,7 @@ registerAction2(class InsertMarkdownCellAboveAction extends InsertCellCommand {
113
112
  constructor() {
114
113
  super({
115
114
  id: INSERT_MARKDOWN_CELL_ABOVE_COMMAND_ID,
116
- title: ( localizeWithPath(_moduleId, 4, "Insert Markdown Cell Above")),
115
+ title: ( localize(7812, "Insert Markdown Cell Above")),
117
116
  menu: {
118
117
  id: MenuId.NotebookCellInsert,
119
118
  order: 2
@@ -125,7 +124,7 @@ registerAction2(class InsertMarkdownCellBelowAction extends InsertCellCommand {
125
124
  constructor() {
126
125
  super({
127
126
  id: INSERT_MARKDOWN_CELL_BELOW_COMMAND_ID,
128
- title: ( localizeWithPath(_moduleId, 5, "Insert Markdown Cell Below")),
127
+ title: ( localize(7813, "Insert Markdown Cell Below")),
129
128
  menu: {
130
129
  id: MenuId.NotebookCellInsert,
131
130
  order: 3
@@ -137,7 +136,7 @@ registerAction2(class InsertCodeCellAtTopAction extends NotebookAction {
137
136
  constructor() {
138
137
  super({
139
138
  id: INSERT_CODE_CELL_AT_TOP_COMMAND_ID,
140
- title: ( localizeWithPath(_moduleId, 6, "Add Code Cell At Top")),
139
+ title: ( localize(7814, "Add Code Cell At Top")),
141
140
  f1: false
142
141
  });
143
142
  }
@@ -159,7 +158,7 @@ registerAction2(class InsertMarkdownCellAtTopAction extends NotebookAction {
159
158
  constructor() {
160
159
  super({
161
160
  id: INSERT_MARKDOWN_CELL_AT_TOP_COMMAND_ID,
162
- title: ( localizeWithPath(_moduleId, 7, "Add Markdown Cell At Top")),
161
+ title: ( localize(7815, "Add Markdown Cell At Top")),
163
162
  f1: false
164
163
  });
165
164
  }
@@ -180,8 +179,8 @@ registerAction2(class InsertMarkdownCellAtTopAction extends NotebookAction {
180
179
  MenuRegistry.appendMenuItem(MenuId.NotebookCellBetween, {
181
180
  command: {
182
181
  id: INSERT_CODE_CELL_BELOW_COMMAND_ID,
183
- title: '$(add) ' + ( localizeWithPath(_moduleId, 8, "Code")),
184
- tooltip: ( localizeWithPath(_moduleId, 9, "Add Code Cell"))
182
+ title: '$(add) ' + ( localize(7816, "Code")),
183
+ tooltip: ( localize(7817, "Add Code Cell"))
185
184
  },
186
185
  order: 0,
187
186
  group: 'inline',
@@ -193,9 +192,9 @@ MenuRegistry.appendMenuItem(MenuId.NotebookCellBetween, {
193
192
  MenuRegistry.appendMenuItem(MenuId.NotebookCellBetween, {
194
193
  command: {
195
194
  id: INSERT_CODE_CELL_BELOW_COMMAND_ID,
196
- title: ( localizeWithPath(_moduleId, 10, "Add Code")),
195
+ title: ( localize(7818, "Add Code")),
197
196
  icon: Codicon.add,
198
- tooltip: ( localizeWithPath(_moduleId, 9, "Add Code Cell"))
197
+ tooltip: ( localize(7818, "Add Code Cell"))
199
198
  },
200
199
  order: 0,
201
200
  group: 'inline',
@@ -208,8 +207,8 @@ MenuRegistry.appendMenuItem(MenuId.NotebookToolbar, {
208
207
  command: {
209
208
  id: INSERT_CODE_CELL_BELOW_COMMAND_ID,
210
209
  icon: Codicon.add,
211
- title: ( localizeWithPath(_moduleId, 11, "Code")),
212
- tooltip: ( localizeWithPath(_moduleId, 9, "Add Code Cell"))
210
+ title: ( localize(7819, "Code")),
211
+ tooltip: ( localize(7819, "Add Code Cell"))
213
212
  },
214
213
  order: -5,
215
214
  group: 'navigation/add',
@@ -222,8 +221,8 @@ MenuRegistry.appendMenuItem(MenuId.NotebookToolbar, {
222
221
  MenuRegistry.appendMenuItem(MenuId.NotebookCellListTop, {
223
222
  command: {
224
223
  id: INSERT_CODE_CELL_AT_TOP_COMMAND_ID,
225
- title: '$(add) ' + ( localizeWithPath(_moduleId, 8, "Code")),
226
- tooltip: ( localizeWithPath(_moduleId, 9, "Add Code Cell"))
224
+ title: '$(add) ' + ( localize(7819, "Code")),
225
+ tooltip: ( localize(7819, "Add Code Cell"))
227
226
  },
228
227
  order: 0,
229
228
  group: 'inline',
@@ -235,9 +234,9 @@ MenuRegistry.appendMenuItem(MenuId.NotebookCellListTop, {
235
234
  MenuRegistry.appendMenuItem(MenuId.NotebookCellListTop, {
236
235
  command: {
237
236
  id: INSERT_CODE_CELL_AT_TOP_COMMAND_ID,
238
- title: ( localizeWithPath(_moduleId, 12, "Add Code")),
237
+ title: ( localize(7820, "Add Code")),
239
238
  icon: Codicon.add,
240
- tooltip: ( localizeWithPath(_moduleId, 9, "Add Code Cell"))
239
+ tooltip: ( localize(7820, "Add Code Cell"))
241
240
  },
242
241
  order: 0,
243
242
  group: 'inline',
@@ -249,8 +248,8 @@ MenuRegistry.appendMenuItem(MenuId.NotebookCellListTop, {
249
248
  MenuRegistry.appendMenuItem(MenuId.NotebookCellBetween, {
250
249
  command: {
251
250
  id: INSERT_MARKDOWN_CELL_BELOW_COMMAND_ID,
252
- title: '$(add) ' + ( localizeWithPath(_moduleId, 13, "Markdown")),
253
- tooltip: ( localizeWithPath(_moduleId, 14, "Add Markdown Cell"))
251
+ title: '$(add) ' + ( localize(7821, "Markdown")),
252
+ tooltip: ( localize(7822, "Add Markdown Cell"))
254
253
  },
255
254
  order: 1,
256
255
  group: 'inline',
@@ -263,8 +262,8 @@ MenuRegistry.appendMenuItem(MenuId.NotebookToolbar, {
263
262
  command: {
264
263
  id: INSERT_MARKDOWN_CELL_BELOW_COMMAND_ID,
265
264
  icon: Codicon.add,
266
- title: ( localizeWithPath(_moduleId, 15, "Markdown")),
267
- tooltip: ( localizeWithPath(_moduleId, 14, "Add Markdown Cell"))
265
+ title: ( localize(7823, "Markdown")),
266
+ tooltip: ( localize(7823, "Add Markdown Cell"))
268
267
  },
269
268
  order: -5,
270
269
  group: 'navigation/add',
@@ -279,8 +278,8 @@ MenuRegistry.appendMenuItem(MenuId.NotebookToolbar, {
279
278
  MenuRegistry.appendMenuItem(MenuId.NotebookCellListTop, {
280
279
  command: {
281
280
  id: INSERT_MARKDOWN_CELL_AT_TOP_COMMAND_ID,
282
- title: '$(add) ' + ( localizeWithPath(_moduleId, 13, "Markdown")),
283
- tooltip: ( localizeWithPath(_moduleId, 14, "Add Markdown Cell"))
281
+ title: '$(add) ' + ( localize(7823, "Markdown")),
282
+ tooltip: ( localize(7823, "Add Markdown Cell"))
284
283
  },
285
284
  order: 1,
286
285
  group: 'inline',
@@ -1,6 +1,6 @@
1
1
  import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
2
2
  import { URI } from 'vscode/vscode/vs/base/common/uri';
3
- import { localize2WithPath, localizeWithPath } from 'vscode/vscode/vs/nls';
3
+ import { localize2, localize } from 'vscode/vscode/vs/nls';
4
4
  import { Categories } from 'vscode/vscode/vs/platform/action/common/actionCommonCategories';
5
5
  import { registerAction2, Action2, MenuId, MenuRegistry } from 'vscode/vscode/vs/platform/actions/common/actions';
6
6
  import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands.service';
@@ -17,12 +17,11 @@ import { INotebookService } from 'vscode/vscode/vs/workbench/contrib/notebook/co
17
17
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
18
18
  import { IPreferencesService } from 'vscode/vscode/vs/workbench/services/preferences/common/preferences.service';
19
19
 
20
- const _moduleId = "vs/workbench/contrib/notebook/browser/controller/layoutActions";
21
20
  registerAction2(class NotebookConfigureLayoutAction extends Action2 {
22
21
  constructor() {
23
22
  super({
24
23
  id: 'workbench.notebook.layout.select',
25
- title: ( localize2WithPath(_moduleId, 0, "Select between Notebook Layouts")),
24
+ title: ( localize2(7847, "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: ( localize2WithPath(_moduleId, 1, "Customize Notebook Layout")),
59
+ title: ( localize2(7848, "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: ( localize2WithPath(_moduleId, 1, "Customize Notebook Layout")),
80
+ title: ( localize2(7848, "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: ( localize2WithPath(_moduleId, 2, "Customize Notebook...")),
100
+ title: ( localize2(7849, "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: ( localize2WithPath(_moduleId, 3, 'Toggle Notebook Line Numbers')),
110
+ title: ( localize2(7850, '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: ( localizeWithPath(_moduleId, 4, "Notebook Line Numbers")),
124
+ title: ( localize(7851, "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: ( localize2WithPath(_moduleId, 5, 'Toggle Cell Toolbar Position')),
136
+ title: ( localize2(7852, '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: ( localize2WithPath(_moduleId, 6, 'Toggle Breadcrumbs')),
154
+ title: ( localize2(7853, '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: ( localize2WithPath(_moduleId, 7, "Save Mimetype Display Order")),
171
+ title: ( localize2(7854, "Save Mimetype Display Order")),
173
172
  f1: true,
174
173
  category: NOTEBOOK_ACTIONS_CATEGORY,
175
174
  precondition: NOTEBOOK_IS_ACTIVE_EDITOR,
@@ -178,10 +177,10 @@ registerAction2(class SaveMimeTypeDisplayOrder extends Action2 {
178
177
  run(accessor) {
179
178
  const service = accessor.get(INotebookService);
180
179
  const qp = accessor.get(IQuickInputService).createQuickPick();
181
- qp.placeholder = ( localizeWithPath(_moduleId, 8, 'Settings file to save in'));
180
+ qp.placeholder = ( localize(7855, 'Settings file to save in'));
182
181
  qp.items = [
183
- { target: ConfigurationTarget.USER, label: ( localizeWithPath(_moduleId, 9, 'User Settings')) },
184
- { target: ConfigurationTarget.WORKSPACE, label: ( localizeWithPath(_moduleId, 10, 'Workspace Settings')) },
182
+ { target: ConfigurationTarget.USER, label: ( localize(7856, 'User Settings')) },
183
+ { target: ConfigurationTarget.WORKSPACE, label: ( localize(7857, 'Workspace Settings')) },
185
184
  ];
186
185
  qp.onDidAccept(() => {
187
186
  const target = qp.selectedItems[0]?.target;
@@ -198,7 +197,7 @@ registerAction2(class NotebookWebviewResetAction extends Action2 {
198
197
  constructor() {
199
198
  super({
200
199
  id: 'workbench.notebook.layout.webview.reset',
201
- title: ( localize2WithPath(_moduleId, 11, "Reset Notebook Webview")),
200
+ title: ( localize2(7858, "Reset Notebook Webview")),
202
201
  f1: false,
203
202
  category: NOTEBOOK_ACTIONS_CATEGORY
204
203
  });
@@ -229,14 +228,14 @@ registerAction2(class ToggleNotebookStickyScroll extends Action2 {
229
228
  super({
230
229
  id: 'notebook.action.toggleNotebookStickyScroll',
231
230
  title: {
232
- ...( localize2WithPath(_moduleId, 12, "Toggle Notebook Sticky Scroll")),
233
- mnemonicTitle: ( localizeWithPath(_moduleId, 13, "&&Toggle Notebook Sticky Scroll")),
231
+ ...( localize2(7859, "Toggle Notebook Sticky Scroll")),
232
+ mnemonicTitle: ( localize(7860, "&&Toggle Notebook Sticky Scroll")),
234
233
  },
235
234
  category: Categories.View,
236
235
  toggled: {
237
236
  condition: ( (ContextKeyExpr.equals('config.notebook.stickyScroll.enabled', true))),
238
- title: ( localizeWithPath(_moduleId, 14, "Toggle Notebook Sticky Scroll")),
239
- mnemonicTitle: ( localizeWithPath(_moduleId, 13, "&&Toggle Notebook Sticky Scroll")),
237
+ title: ( localize(7861, "Toggle Notebook Sticky Scroll")),
238
+ mnemonicTitle: ( localize(7861, "&&Toggle Notebook Sticky Scroll")),
240
239
  },
241
240
  menu: [
242
241
  { id: MenuId.CommandPalette },