@codingame/monaco-vscode-notebook-service-override 8.0.2 → 8.0.3
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.
- package/package.json +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +21 -21
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +13 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +9 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/profile/notebookProfile.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.js +12 -12
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +24 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +24 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +22 -22
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +24 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +17 -17
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +11 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.js +10 -10
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +12 -12
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +1 -1
|
@@ -90,7 +90,7 @@ registerAction2(class RenderAllMarkdownCellsAction extends NotebookAction {
|
|
|
90
90
|
constructor() {
|
|
91
91
|
super({
|
|
92
92
|
id: RENDER_ALL_MARKDOWN_CELLS,
|
|
93
|
-
title: ( localize(
|
|
93
|
+
title: ( localize(7860, "Render All Markdown Cells")),
|
|
94
94
|
});
|
|
95
95
|
}
|
|
96
96
|
async runWithContext(accessor, context) {
|
|
@@ -101,10 +101,10 @@ registerAction2(class ExecuteNotebookAction extends NotebookAction {
|
|
|
101
101
|
constructor() {
|
|
102
102
|
super({
|
|
103
103
|
id: EXECUTE_NOTEBOOK_COMMAND_ID,
|
|
104
|
-
title: ( localize(
|
|
104
|
+
title: ( localize(7861, "Run All")),
|
|
105
105
|
icon: executeAllIcon,
|
|
106
106
|
metadata: {
|
|
107
|
-
description: ( localize(
|
|
107
|
+
description: ( localize(7861, "Run All")),
|
|
108
108
|
args: [
|
|
109
109
|
{
|
|
110
110
|
name: 'uri',
|
|
@@ -162,7 +162,7 @@ registerAction2(class ExecuteCell extends NotebookMultiCellAction {
|
|
|
162
162
|
super({
|
|
163
163
|
id: EXECUTE_CELL_COMMAND_ID,
|
|
164
164
|
precondition: executeThisCellCondition,
|
|
165
|
-
title: ( localize(
|
|
165
|
+
title: ( localize(7862, "Execute Cell")),
|
|
166
166
|
keybinding: {
|
|
167
167
|
when: ( (ContextKeyExpr.or(
|
|
168
168
|
NOTEBOOK_CELL_LIST_FOCUSED,
|
|
@@ -180,7 +180,7 @@ registerAction2(class ExecuteCell extends NotebookMultiCellAction {
|
|
|
180
180
|
group: 'inline'
|
|
181
181
|
},
|
|
182
182
|
metadata: {
|
|
183
|
-
description: ( localize(
|
|
183
|
+
description: ( localize(7862, "Execute Cell")),
|
|
184
184
|
args: cellExecutionArgs
|
|
185
185
|
},
|
|
186
186
|
icon: executeIcon
|
|
@@ -214,7 +214,7 @@ registerAction2(class ExecuteAboveCells extends NotebookMultiCellAction {
|
|
|
214
214
|
super({
|
|
215
215
|
id: EXECUTE_CELLS_ABOVE,
|
|
216
216
|
precondition: executeCondition,
|
|
217
|
-
title: ( localize(
|
|
217
|
+
title: ( localize(7863, "Execute Above Cells")),
|
|
218
218
|
menu: [
|
|
219
219
|
{
|
|
220
220
|
id: MenuId.NotebookCellExecute,
|
|
@@ -260,7 +260,7 @@ registerAction2(class ExecuteCellAndBelow extends NotebookMultiCellAction {
|
|
|
260
260
|
super({
|
|
261
261
|
id: EXECUTE_CELL_AND_BELOW,
|
|
262
262
|
precondition: executeCondition,
|
|
263
|
-
title: ( localize(
|
|
263
|
+
title: ( localize(7864, "Execute Cell and Below")),
|
|
264
264
|
menu: [
|
|
265
265
|
{
|
|
266
266
|
id: MenuId.NotebookCellExecute,
|
|
@@ -306,9 +306,9 @@ registerAction2(class ExecuteCellFocusContainer extends NotebookMultiCellAction
|
|
|
306
306
|
super({
|
|
307
307
|
id: EXECUTE_CELL_FOCUS_CONTAINER_COMMAND_ID,
|
|
308
308
|
precondition: executeThisCellCondition,
|
|
309
|
-
title: ( localize(
|
|
309
|
+
title: ( localize(7865, "Execute Cell and Focus Container")),
|
|
310
310
|
metadata: {
|
|
311
|
-
description: ( localize(
|
|
311
|
+
description: ( localize(7865, "Execute Cell and Focus Container")),
|
|
312
312
|
args: cellExecutionArgs
|
|
313
313
|
},
|
|
314
314
|
icon: executeIcon
|
|
@@ -340,7 +340,7 @@ registerAction2(class CancelExecuteCell extends NotebookMultiCellAction {
|
|
|
340
340
|
super({
|
|
341
341
|
id: CANCEL_CELL_COMMAND_ID,
|
|
342
342
|
precondition: cellCancelCondition,
|
|
343
|
-
title: ( localize(
|
|
343
|
+
title: ( localize(7866, "Stop Cell Execution")),
|
|
344
344
|
icon: stopIcon,
|
|
345
345
|
menu: {
|
|
346
346
|
id: MenuId.NotebookCellExecutePrimary,
|
|
@@ -348,7 +348,7 @@ registerAction2(class CancelExecuteCell extends NotebookMultiCellAction {
|
|
|
348
348
|
group: 'inline'
|
|
349
349
|
},
|
|
350
350
|
metadata: {
|
|
351
|
-
description: ( localize(
|
|
351
|
+
description: ( localize(7866, "Stop Cell Execution")),
|
|
352
352
|
args: [
|
|
353
353
|
{
|
|
354
354
|
name: 'options',
|
|
@@ -406,7 +406,7 @@ registerAction2(class ExecuteCellSelectBelow extends NotebookCellAction {
|
|
|
406
406
|
executeThisCellCondition,
|
|
407
407
|
(NOTEBOOK_CELL_TYPE.isEqualTo('markup'))
|
|
408
408
|
))),
|
|
409
|
-
title: ( localize(
|
|
409
|
+
title: ( localize(7867, "Execute Notebook Cell and Select Below")),
|
|
410
410
|
keybinding: {
|
|
411
411
|
when: ( (ContextKeyExpr.and(
|
|
412
412
|
NOTEBOOK_CELL_LIST_FOCUSED,
|
|
@@ -472,7 +472,7 @@ registerAction2(class ExecuteCellInsertBelow extends NotebookCellAction {
|
|
|
472
472
|
executeThisCellCondition,
|
|
473
473
|
(NOTEBOOK_CELL_TYPE.isEqualTo('markup'))
|
|
474
474
|
))),
|
|
475
|
-
title: ( localize(
|
|
475
|
+
title: ( localize(7868, "Execute Notebook Cell and Insert Below")),
|
|
476
476
|
keybinding: {
|
|
477
477
|
when: NOTEBOOK_CELL_LIST_FOCUSED,
|
|
478
478
|
primary: KeyMod.Alt | KeyCode.Enter,
|
|
@@ -509,7 +509,7 @@ registerAction2(class CancelAllNotebook extends CancelNotebook {
|
|
|
509
509
|
constructor() {
|
|
510
510
|
super({
|
|
511
511
|
id: CANCEL_NOTEBOOK_COMMAND_ID,
|
|
512
|
-
title: ( localize2(
|
|
512
|
+
title: ( localize2(7869, "Stop Execution")),
|
|
513
513
|
icon: stopIcon,
|
|
514
514
|
menu: [
|
|
515
515
|
{
|
|
@@ -541,7 +541,7 @@ registerAction2(class InterruptNotebook extends CancelNotebook {
|
|
|
541
541
|
constructor() {
|
|
542
542
|
super({
|
|
543
543
|
id: INTERRUPT_NOTEBOOK_COMMAND_ID,
|
|
544
|
-
title: ( localize2(
|
|
544
|
+
title: ( localize2(7870, "Interrupt")),
|
|
545
545
|
precondition: ( (ContextKeyExpr.and(NOTEBOOK_HAS_SOMETHING_RUNNING, NOTEBOOK_INTERRUPTIBLE_KERNEL))),
|
|
546
546
|
icon: stopIcon,
|
|
547
547
|
menu: [
|
|
@@ -575,7 +575,7 @@ registerAction2(class InterruptNotebook extends CancelNotebook {
|
|
|
575
575
|
}
|
|
576
576
|
});
|
|
577
577
|
MenuRegistry.appendMenuItem(MenuId.NotebookToolbar, {
|
|
578
|
-
title: ( localize(
|
|
578
|
+
title: ( localize(7871, "Go To")),
|
|
579
579
|
submenu: MenuId.NotebookCellExecuteGoTo,
|
|
580
580
|
group: 'navigation/execute',
|
|
581
581
|
order: 20,
|
|
@@ -585,9 +585,9 @@ registerAction2(class RevealRunningCellAction extends NotebookAction {
|
|
|
585
585
|
constructor() {
|
|
586
586
|
super({
|
|
587
587
|
id: REVEAL_RUNNING_CELL,
|
|
588
|
-
title: ( localize(
|
|
589
|
-
tooltip: ( localize(
|
|
590
|
-
shortTitle: ( localize(
|
|
588
|
+
title: ( localize(7872, "Go to Running Cell")),
|
|
589
|
+
tooltip: ( localize(7872, "Go to Running Cell")),
|
|
590
|
+
shortTitle: ( localize(7872, "Go to Running Cell")),
|
|
591
591
|
precondition: NOTEBOOK_HAS_RUNNING_CELL,
|
|
592
592
|
menu: [
|
|
593
593
|
{
|
|
@@ -656,9 +656,9 @@ registerAction2(class RevealLastFailedCellAction extends NotebookAction {
|
|
|
656
656
|
constructor() {
|
|
657
657
|
super({
|
|
658
658
|
id: REVEAL_LAST_FAILED_CELL,
|
|
659
|
-
title: ( localize(
|
|
660
|
-
tooltip: ( localize(
|
|
661
|
-
shortTitle: ( localize(
|
|
659
|
+
title: ( localize(7873, "Go to Most Recently Failed Cell")),
|
|
660
|
+
tooltip: ( localize(7873, "Go to Most Recently Failed Cell")),
|
|
661
|
+
shortTitle: ( localize(7874, "Go to Most Recently Failed Cell")),
|
|
662
662
|
precondition: NOTEBOOK_LAST_CELL_FAILED,
|
|
663
663
|
menu: [
|
|
664
664
|
{
|
|
@@ -55,7 +55,7 @@ registerAction2(class InsertCodeCellAboveAction extends InsertCellCommand {
|
|
|
55
55
|
constructor() {
|
|
56
56
|
super({
|
|
57
57
|
id: INSERT_CODE_CELL_ABOVE_COMMAND_ID,
|
|
58
|
-
title: ( localize(
|
|
58
|
+
title: ( localize(7844, "Insert Code Cell Above")),
|
|
59
59
|
keybinding: {
|
|
60
60
|
primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.Enter,
|
|
61
61
|
when: ( (ContextKeyExpr.and(
|
|
@@ -75,7 +75,7 @@ registerAction2(class InsertCodeCellAboveAndFocusContainerAction extends InsertC
|
|
|
75
75
|
constructor() {
|
|
76
76
|
super({
|
|
77
77
|
id: INSERT_CODE_CELL_ABOVE_AND_FOCUS_CONTAINER_COMMAND_ID,
|
|
78
|
-
title: ( localize(
|
|
78
|
+
title: ( localize(7845, "Insert Code Cell Above and Focus Container"))
|
|
79
79
|
}, CellKind.Code, 'above', false);
|
|
80
80
|
}
|
|
81
81
|
});
|
|
@@ -83,7 +83,7 @@ registerAction2(class InsertCodeCellBelowAction extends InsertCellCommand {
|
|
|
83
83
|
constructor() {
|
|
84
84
|
super({
|
|
85
85
|
id: INSERT_CODE_CELL_BELOW_COMMAND_ID,
|
|
86
|
-
title: ( localize(
|
|
86
|
+
title: ( localize(7846, "Insert Code Cell Below")),
|
|
87
87
|
keybinding: {
|
|
88
88
|
primary: KeyMod.CtrlCmd | KeyCode.Enter,
|
|
89
89
|
when: ( (ContextKeyExpr.and(
|
|
@@ -104,7 +104,7 @@ registerAction2(class InsertCodeCellBelowAndFocusContainerAction extends InsertC
|
|
|
104
104
|
constructor() {
|
|
105
105
|
super({
|
|
106
106
|
id: INSERT_CODE_CELL_BELOW_AND_FOCUS_CONTAINER_COMMAND_ID,
|
|
107
|
-
title: ( localize(
|
|
107
|
+
title: ( localize(7847, "Insert Code Cell Below and Focus Container")),
|
|
108
108
|
}, CellKind.Code, 'below', false);
|
|
109
109
|
}
|
|
110
110
|
});
|
|
@@ -112,7 +112,7 @@ registerAction2(class InsertMarkdownCellAboveAction extends InsertCellCommand {
|
|
|
112
112
|
constructor() {
|
|
113
113
|
super({
|
|
114
114
|
id: INSERT_MARKDOWN_CELL_ABOVE_COMMAND_ID,
|
|
115
|
-
title: ( localize(
|
|
115
|
+
title: ( localize(7848, "Insert Markdown Cell Above")),
|
|
116
116
|
menu: {
|
|
117
117
|
id: MenuId.NotebookCellInsert,
|
|
118
118
|
order: 2
|
|
@@ -124,7 +124,7 @@ registerAction2(class InsertMarkdownCellBelowAction extends InsertCellCommand {
|
|
|
124
124
|
constructor() {
|
|
125
125
|
super({
|
|
126
126
|
id: INSERT_MARKDOWN_CELL_BELOW_COMMAND_ID,
|
|
127
|
-
title: ( localize(
|
|
127
|
+
title: ( localize(7849, "Insert Markdown Cell Below")),
|
|
128
128
|
menu: {
|
|
129
129
|
id: MenuId.NotebookCellInsert,
|
|
130
130
|
order: 3
|
|
@@ -136,7 +136,7 @@ registerAction2(class InsertCodeCellAtTopAction extends NotebookAction {
|
|
|
136
136
|
constructor() {
|
|
137
137
|
super({
|
|
138
138
|
id: INSERT_CODE_CELL_AT_TOP_COMMAND_ID,
|
|
139
|
-
title: ( localize(
|
|
139
|
+
title: ( localize(7850, "Add Code Cell At Top")),
|
|
140
140
|
f1: false
|
|
141
141
|
});
|
|
142
142
|
}
|
|
@@ -158,7 +158,7 @@ registerAction2(class InsertMarkdownCellAtTopAction extends NotebookAction {
|
|
|
158
158
|
constructor() {
|
|
159
159
|
super({
|
|
160
160
|
id: INSERT_MARKDOWN_CELL_AT_TOP_COMMAND_ID,
|
|
161
|
-
title: ( localize(
|
|
161
|
+
title: ( localize(7851, "Add Markdown Cell At Top")),
|
|
162
162
|
f1: false
|
|
163
163
|
});
|
|
164
164
|
}
|
|
@@ -179,8 +179,8 @@ registerAction2(class InsertMarkdownCellAtTopAction extends NotebookAction {
|
|
|
179
179
|
MenuRegistry.appendMenuItem(MenuId.NotebookCellBetween, {
|
|
180
180
|
command: {
|
|
181
181
|
id: INSERT_CODE_CELL_BELOW_COMMAND_ID,
|
|
182
|
-
title: '$(add) ' + ( localize(
|
|
183
|
-
tooltip: ( localize(
|
|
182
|
+
title: '$(add) ' + ( localize(7852, "Code")),
|
|
183
|
+
tooltip: ( localize(7853, "Add Code Cell"))
|
|
184
184
|
},
|
|
185
185
|
order: 0,
|
|
186
186
|
group: 'inline',
|
|
@@ -192,9 +192,9 @@ MenuRegistry.appendMenuItem(MenuId.NotebookCellBetween, {
|
|
|
192
192
|
MenuRegistry.appendMenuItem(MenuId.NotebookCellBetween, {
|
|
193
193
|
command: {
|
|
194
194
|
id: INSERT_CODE_CELL_BELOW_COMMAND_ID,
|
|
195
|
-
title: ( localize(
|
|
195
|
+
title: ( localize(7854, "Add Code")),
|
|
196
196
|
icon: Codicon.add,
|
|
197
|
-
tooltip: ( localize(
|
|
197
|
+
tooltip: ( localize(7853, "Add Code Cell"))
|
|
198
198
|
},
|
|
199
199
|
order: 0,
|
|
200
200
|
group: 'inline',
|
|
@@ -207,8 +207,8 @@ MenuRegistry.appendMenuItem(MenuId.NotebookToolbar, {
|
|
|
207
207
|
command: {
|
|
208
208
|
id: INSERT_CODE_CELL_BELOW_COMMAND_ID,
|
|
209
209
|
icon: Codicon.add,
|
|
210
|
-
title: ( localize(
|
|
211
|
-
tooltip: ( localize(
|
|
210
|
+
title: ( localize(7855, "Code")),
|
|
211
|
+
tooltip: ( localize(7853, "Add Code Cell"))
|
|
212
212
|
},
|
|
213
213
|
order: -5,
|
|
214
214
|
group: 'navigation/add',
|
|
@@ -221,8 +221,8 @@ MenuRegistry.appendMenuItem(MenuId.NotebookToolbar, {
|
|
|
221
221
|
MenuRegistry.appendMenuItem(MenuId.NotebookCellListTop, {
|
|
222
222
|
command: {
|
|
223
223
|
id: INSERT_CODE_CELL_AT_TOP_COMMAND_ID,
|
|
224
|
-
title: '$(add) ' + ( localize(
|
|
225
|
-
tooltip: ( localize(
|
|
224
|
+
title: '$(add) ' + ( localize(7852, "Code")),
|
|
225
|
+
tooltip: ( localize(7853, "Add Code Cell"))
|
|
226
226
|
},
|
|
227
227
|
order: 0,
|
|
228
228
|
group: 'inline',
|
|
@@ -234,9 +234,9 @@ MenuRegistry.appendMenuItem(MenuId.NotebookCellListTop, {
|
|
|
234
234
|
MenuRegistry.appendMenuItem(MenuId.NotebookCellListTop, {
|
|
235
235
|
command: {
|
|
236
236
|
id: INSERT_CODE_CELL_AT_TOP_COMMAND_ID,
|
|
237
|
-
title: ( localize(
|
|
237
|
+
title: ( localize(7856, "Add Code")),
|
|
238
238
|
icon: Codicon.add,
|
|
239
|
-
tooltip: ( localize(
|
|
239
|
+
tooltip: ( localize(7853, "Add Code Cell"))
|
|
240
240
|
},
|
|
241
241
|
order: 0,
|
|
242
242
|
group: 'inline',
|
|
@@ -248,8 +248,8 @@ MenuRegistry.appendMenuItem(MenuId.NotebookCellListTop, {
|
|
|
248
248
|
MenuRegistry.appendMenuItem(MenuId.NotebookCellBetween, {
|
|
249
249
|
command: {
|
|
250
250
|
id: INSERT_MARKDOWN_CELL_BELOW_COMMAND_ID,
|
|
251
|
-
title: '$(add) ' + ( localize(
|
|
252
|
-
tooltip: ( localize(
|
|
251
|
+
title: '$(add) ' + ( localize(7857, "Markdown")),
|
|
252
|
+
tooltip: ( localize(7858, "Add Markdown Cell"))
|
|
253
253
|
},
|
|
254
254
|
order: 1,
|
|
255
255
|
group: 'inline',
|
|
@@ -262,8 +262,8 @@ MenuRegistry.appendMenuItem(MenuId.NotebookToolbar, {
|
|
|
262
262
|
command: {
|
|
263
263
|
id: INSERT_MARKDOWN_CELL_BELOW_COMMAND_ID,
|
|
264
264
|
icon: Codicon.add,
|
|
265
|
-
title: ( localize(
|
|
266
|
-
tooltip: ( localize(
|
|
265
|
+
title: ( localize(7859, "Markdown")),
|
|
266
|
+
tooltip: ( localize(7858, "Add Markdown Cell"))
|
|
267
267
|
},
|
|
268
268
|
order: -5,
|
|
269
269
|
group: 'navigation/add',
|
|
@@ -278,8 +278,8 @@ MenuRegistry.appendMenuItem(MenuId.NotebookToolbar, {
|
|
|
278
278
|
MenuRegistry.appendMenuItem(MenuId.NotebookCellListTop, {
|
|
279
279
|
command: {
|
|
280
280
|
id: INSERT_MARKDOWN_CELL_AT_TOP_COMMAND_ID,
|
|
281
|
-
title: '$(add) ' + ( localize(
|
|
282
|
-
tooltip: ( localize(
|
|
281
|
+
title: '$(add) ' + ( localize(7857, "Markdown")),
|
|
282
|
+
tooltip: ( localize(7858, "Add Markdown Cell"))
|
|
283
283
|
},
|
|
284
284
|
order: 1,
|
|
285
285
|
group: 'inline',
|
|
@@ -21,7 +21,7 @@ registerAction2(class NotebookConfigureLayoutAction extends Action2 {
|
|
|
21
21
|
constructor() {
|
|
22
22
|
super({
|
|
23
23
|
id: 'workbench.notebook.layout.select',
|
|
24
|
-
title: ( localize2(
|
|
24
|
+
title: ( localize2(7883, "Select between Notebook Layouts")),
|
|
25
25
|
f1: true,
|
|
26
26
|
precondition: ( (ContextKeyExpr.equals(`config.${NotebookSetting.openGettingStarted}`, true))),
|
|
27
27
|
category: NOTEBOOK_ACTIONS_CATEGORY,
|
|
@@ -56,7 +56,7 @@ registerAction2(class NotebookConfigureLayoutAction extends Action2 {
|
|
|
56
56
|
constructor() {
|
|
57
57
|
super({
|
|
58
58
|
id: 'workbench.notebook.layout.configure',
|
|
59
|
-
title: ( localize2(
|
|
59
|
+
title: ( localize2(7884, "Customize Notebook Layout")),
|
|
60
60
|
f1: true,
|
|
61
61
|
category: NOTEBOOK_ACTIONS_CATEGORY,
|
|
62
62
|
menu: [
|
|
@@ -77,7 +77,7 @@ registerAction2(class NotebookConfigureLayoutFromEditorTitle extends Action2 {
|
|
|
77
77
|
constructor() {
|
|
78
78
|
super({
|
|
79
79
|
id: 'workbench.notebook.layout.configure.editorTitle',
|
|
80
|
-
title: ( localize2(
|
|
80
|
+
title: ( localize2(7884, "Customize Notebook Layout")),
|
|
81
81
|
f1: false,
|
|
82
82
|
category: NOTEBOOK_ACTIONS_CATEGORY,
|
|
83
83
|
menu: [
|
|
@@ -97,7 +97,7 @@ registerAction2(class NotebookConfigureLayoutFromEditorTitle extends Action2 {
|
|
|
97
97
|
MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
|
|
98
98
|
submenu: MenuId.NotebookEditorLayoutConfigure,
|
|
99
99
|
rememberDefaultAction: false,
|
|
100
|
-
title: ( localize2(
|
|
100
|
+
title: ( localize2(7885, "Customize Notebook...")),
|
|
101
101
|
icon: Codicon.gear,
|
|
102
102
|
group: 'navigation',
|
|
103
103
|
order: -1,
|
|
@@ -107,7 +107,7 @@ registerAction2(class ToggleLineNumberFromEditorTitle extends Action2 {
|
|
|
107
107
|
constructor() {
|
|
108
108
|
super({
|
|
109
109
|
id: 'notebook.toggleLineNumbersFromEditorTitle',
|
|
110
|
-
title: ( localize2(
|
|
110
|
+
title: ( localize2(7886, 'Toggle Notebook Line Numbers')),
|
|
111
111
|
precondition: NOTEBOOK_EDITOR_FOCUSED,
|
|
112
112
|
menu: [
|
|
113
113
|
{
|
|
@@ -121,7 +121,7 @@ registerAction2(class ToggleLineNumberFromEditorTitle extends Action2 {
|
|
|
121
121
|
f1: true,
|
|
122
122
|
toggled: {
|
|
123
123
|
condition: ( (ContextKeyExpr.notEquals('config.notebook.lineNumbers', 'off'))),
|
|
124
|
-
title: ( localize(
|
|
124
|
+
title: ( localize(7887, "Notebook Line Numbers")),
|
|
125
125
|
}
|
|
126
126
|
});
|
|
127
127
|
}
|
|
@@ -133,7 +133,7 @@ registerAction2(class ToggleCellToolbarPositionFromEditorTitle extends Action2 {
|
|
|
133
133
|
constructor() {
|
|
134
134
|
super({
|
|
135
135
|
id: 'notebook.toggleCellToolbarPositionFromEditorTitle',
|
|
136
|
-
title: ( localize2(
|
|
136
|
+
title: ( localize2(7888, 'Toggle Cell Toolbar Position')),
|
|
137
137
|
menu: [{
|
|
138
138
|
id: MenuId.NotebookEditorLayoutConfigure,
|
|
139
139
|
group: 'notebookLayoutDetails',
|
|
@@ -151,7 +151,7 @@ registerAction2(class ToggleBreadcrumbFromEditorTitle extends Action2 {
|
|
|
151
151
|
constructor() {
|
|
152
152
|
super({
|
|
153
153
|
id: 'breadcrumbs.toggleFromEditorTitle',
|
|
154
|
-
title: ( localize2(
|
|
154
|
+
title: ( localize2(7889, 'Toggle Breadcrumbs')),
|
|
155
155
|
menu: [{
|
|
156
156
|
id: MenuId.NotebookEditorLayoutConfigure,
|
|
157
157
|
group: 'notebookLayoutDetails',
|
|
@@ -168,7 +168,7 @@ registerAction2(class SaveMimeTypeDisplayOrder extends Action2 {
|
|
|
168
168
|
constructor() {
|
|
169
169
|
super({
|
|
170
170
|
id: 'notebook.saveMimeTypeOrder',
|
|
171
|
-
title: ( localize2(
|
|
171
|
+
title: ( localize2(7890, "Save Mimetype Display Order")),
|
|
172
172
|
f1: true,
|
|
173
173
|
category: NOTEBOOK_ACTIONS_CATEGORY,
|
|
174
174
|
precondition: NOTEBOOK_IS_ACTIVE_EDITOR,
|
|
@@ -177,10 +177,10 @@ registerAction2(class SaveMimeTypeDisplayOrder extends Action2 {
|
|
|
177
177
|
run(accessor) {
|
|
178
178
|
const service = accessor.get(INotebookService);
|
|
179
179
|
const qp = accessor.get(IQuickInputService).createQuickPick();
|
|
180
|
-
qp.placeholder = ( localize(
|
|
180
|
+
qp.placeholder = ( localize(7891, 'Settings file to save in'));
|
|
181
181
|
qp.items = [
|
|
182
|
-
{ target: ConfigurationTarget.USER, label: ( localize(
|
|
183
|
-
{ target: ConfigurationTarget.WORKSPACE, label: ( localize(
|
|
182
|
+
{ target: ConfigurationTarget.USER, label: ( localize(7892, 'User Settings')) },
|
|
183
|
+
{ target: ConfigurationTarget.WORKSPACE, label: ( localize(7893, 'Workspace Settings')) },
|
|
184
184
|
];
|
|
185
185
|
qp.onDidAccept(() => {
|
|
186
186
|
const target = qp.selectedItems[0]?.target;
|
|
@@ -197,7 +197,7 @@ registerAction2(class NotebookWebviewResetAction extends Action2 {
|
|
|
197
197
|
constructor() {
|
|
198
198
|
super({
|
|
199
199
|
id: 'workbench.notebook.layout.webview.reset',
|
|
200
|
-
title: ( localize2(
|
|
200
|
+
title: ( localize2(7894, "Reset Notebook Webview")),
|
|
201
201
|
f1: false,
|
|
202
202
|
category: NOTEBOOK_ACTIONS_CATEGORY
|
|
203
203
|
});
|
|
@@ -228,14 +228,14 @@ registerAction2(class ToggleNotebookStickyScroll extends Action2 {
|
|
|
228
228
|
super({
|
|
229
229
|
id: 'notebook.action.toggleNotebookStickyScroll',
|
|
230
230
|
title: {
|
|
231
|
-
...( localize2(
|
|
232
|
-
mnemonicTitle: ( localize(
|
|
231
|
+
...( localize2(7895, "Toggle Notebook Sticky Scroll")),
|
|
232
|
+
mnemonicTitle: ( localize(7896, "&&Toggle Notebook Sticky Scroll")),
|
|
233
233
|
},
|
|
234
234
|
category: Categories.View,
|
|
235
235
|
toggled: {
|
|
236
236
|
condition: ( (ContextKeyExpr.equals('config.notebook.stickyScroll.enabled', true))),
|
|
237
|
-
title: ( localize(
|
|
238
|
-
mnemonicTitle: ( localize(
|
|
237
|
+
title: ( localize(7897, "Toggle Notebook Sticky Scroll")),
|
|
238
|
+
mnemonicTitle: ( localize(7896, "&&Toggle Notebook Sticky Scroll")),
|
|
239
239
|
},
|
|
240
240
|
menu: [
|
|
241
241
|
{ id: MenuId.CommandPalette },
|
|
@@ -13,10 +13,10 @@ class NotebookRunSingleCellInSection extends Action2 {
|
|
|
13
13
|
super({
|
|
14
14
|
id: 'notebook.section.runSingleCell',
|
|
15
15
|
title: {
|
|
16
|
-
...( localize2(
|
|
17
|
-
mnemonicTitle: ( localize(
|
|
16
|
+
...( localize2(7875, "Run Cell")),
|
|
17
|
+
mnemonicTitle: ( localize(7876, "&&Run Cell")),
|
|
18
18
|
},
|
|
19
|
-
shortTitle: ( localize(
|
|
19
|
+
shortTitle: ( localize(7875, "Run Cell")),
|
|
20
20
|
icon: executeIcon,
|
|
21
21
|
menu: [
|
|
22
22
|
{
|
|
@@ -45,10 +45,10 @@ class NotebookRunCellsInSection extends Action2 {
|
|
|
45
45
|
super({
|
|
46
46
|
id: 'notebook.section.runCells',
|
|
47
47
|
title: {
|
|
48
|
-
...( localize2(
|
|
49
|
-
mnemonicTitle: ( localize(
|
|
48
|
+
...( localize2(7877, "Run Cells In Section")),
|
|
49
|
+
mnemonicTitle: ( localize(7878, "&&Run Cells In Section")),
|
|
50
50
|
},
|
|
51
|
-
shortTitle: ( localize(
|
|
51
|
+
shortTitle: ( localize(7877, "Run Cells In Section")),
|
|
52
52
|
menu: [
|
|
53
53
|
{
|
|
54
54
|
id: MenuId.NotebookStickyScrollContext,
|
|
@@ -91,10 +91,10 @@ class NotebookFoldSection extends Action2 {
|
|
|
91
91
|
super({
|
|
92
92
|
id: 'notebook.section.foldSection',
|
|
93
93
|
title: {
|
|
94
|
-
...( localize2(
|
|
95
|
-
mnemonicTitle: ( localize(
|
|
94
|
+
...( localize2(7879, "Fold Section")),
|
|
95
|
+
mnemonicTitle: ( localize(7880, "&&Fold Section")),
|
|
96
96
|
},
|
|
97
|
-
shortTitle: ( localize(
|
|
97
|
+
shortTitle: ( localize(7879, "Fold Section")),
|
|
98
98
|
menu: [
|
|
99
99
|
{
|
|
100
100
|
id: MenuId.NotebookOutlineActionMenu,
|
|
@@ -130,10 +130,10 @@ class NotebookExpandSection extends Action2 {
|
|
|
130
130
|
super({
|
|
131
131
|
id: 'notebook.section.expandSection',
|
|
132
132
|
title: {
|
|
133
|
-
...( localize2(
|
|
134
|
-
mnemonicTitle: ( localize(
|
|
133
|
+
...( localize2(7881, "Expand Section")),
|
|
134
|
+
mnemonicTitle: ( localize(7882, "&&Expand Section")),
|
|
135
135
|
},
|
|
136
|
-
shortTitle: ( localize(
|
|
136
|
+
shortTitle: ( localize(7881, "Expand Section")),
|
|
137
137
|
menu: [
|
|
138
138
|
{
|
|
139
139
|
id: MenuId.NotebookOutlineActionMenu,
|
|
@@ -21,7 +21,7 @@ registerAction2(class extends Action2 {
|
|
|
21
21
|
super({
|
|
22
22
|
id: 'notebook.diff.switchToText',
|
|
23
23
|
icon: openAsTextIcon,
|
|
24
|
-
title: ( localize2(
|
|
24
|
+
title: ( localize2(8014, 'Open Text Diff Editor')),
|
|
25
25
|
precondition: ( (ActiveEditorContext.isEqualTo(NotebookTextDiffEditor.ID))),
|
|
26
26
|
menu: [{
|
|
27
27
|
id: MenuId.EditorTitle,
|
|
@@ -51,7 +51,7 @@ registerAction2(class extends Action2 {
|
|
|
51
51
|
constructor() {
|
|
52
52
|
super({
|
|
53
53
|
id: 'notebook.diff.cell.revertMetadata',
|
|
54
|
-
title: ( localize(
|
|
54
|
+
title: ( localize(8015, "Revert Metadata")),
|
|
55
55
|
icon: revertIcon,
|
|
56
56
|
f1: false,
|
|
57
57
|
menu: {
|
|
@@ -77,7 +77,7 @@ registerAction2(class extends Action2 {
|
|
|
77
77
|
constructor() {
|
|
78
78
|
super({
|
|
79
79
|
id: 'notebook.diff.cell.switchOutputRenderingStyleToText',
|
|
80
|
-
title: ( localize(
|
|
80
|
+
title: ( localize(8016, "Switch Output Rendering")),
|
|
81
81
|
icon: renderOutputIcon,
|
|
82
82
|
f1: false,
|
|
83
83
|
menu: {
|
|
@@ -97,7 +97,7 @@ registerAction2(class extends Action2 {
|
|
|
97
97
|
constructor() {
|
|
98
98
|
super({
|
|
99
99
|
id: 'notebook.diff.cell.revertOutputs',
|
|
100
|
-
title: ( localize(
|
|
100
|
+
title: ( localize(8017, "Revert Outputs")),
|
|
101
101
|
icon: revertIcon,
|
|
102
102
|
f1: false,
|
|
103
103
|
menu: {
|
|
@@ -129,7 +129,7 @@ registerAction2(class extends Action2 {
|
|
|
129
129
|
constructor() {
|
|
130
130
|
super({
|
|
131
131
|
id: 'notebook.diff.cell.revertInput',
|
|
132
|
-
title: ( localize(
|
|
132
|
+
title: ( localize(8018, "Revert Input")),
|
|
133
133
|
icon: revertIcon,
|
|
134
134
|
f1: false,
|
|
135
135
|
menu: {
|
|
@@ -188,19 +188,19 @@ class ToggleRenderAction extends Action2 {
|
|
|
188
188
|
}
|
|
189
189
|
registerAction2(class extends ToggleRenderAction {
|
|
190
190
|
constructor() {
|
|
191
|
-
super('notebook.diff.showOutputs', ( localize2(
|
|
191
|
+
super('notebook.diff.showOutputs', ( localize2(8019, 'Show Outputs Differences')), ( (ActiveEditorContext.isEqualTo(NotebookTextDiffEditor.ID))), ( (ContextKeyExpr.notEquals('config.notebook.diff.ignoreOutputs', true))), 2, true, undefined);
|
|
192
192
|
}
|
|
193
193
|
});
|
|
194
194
|
registerAction2(class extends ToggleRenderAction {
|
|
195
195
|
constructor() {
|
|
196
|
-
super('notebook.diff.showMetadata', ( localize2(
|
|
196
|
+
super('notebook.diff.showMetadata', ( localize2(8020, 'Show Metadata Differences')), ( (ActiveEditorContext.isEqualTo(NotebookTextDiffEditor.ID))), ( (ContextKeyExpr.notEquals('config.notebook.diff.ignoreMetadata', true))), 1, undefined, true);
|
|
197
197
|
}
|
|
198
198
|
});
|
|
199
199
|
registerAction2(class extends Action2 {
|
|
200
200
|
constructor() {
|
|
201
201
|
super({
|
|
202
202
|
id: 'notebook.diff.action.previous',
|
|
203
|
-
title: ( localize(
|
|
203
|
+
title: ( localize(8021, "Show Previous Change")),
|
|
204
204
|
icon: previousChangeIcon,
|
|
205
205
|
f1: false,
|
|
206
206
|
keybinding: {
|
|
@@ -228,7 +228,7 @@ registerAction2(class extends Action2 {
|
|
|
228
228
|
constructor() {
|
|
229
229
|
super({
|
|
230
230
|
id: 'notebook.diff.action.next',
|
|
231
|
-
title: ( localize(
|
|
231
|
+
title: ( localize(8022, "Show Next Change")),
|
|
232
232
|
icon: nextChangeIcon,
|
|
233
233
|
f1: false,
|
|
234
234
|
keybinding: {
|
|
@@ -260,12 +260,12 @@ registerAction2(class extends Action2 {
|
|
|
260
260
|
'notebook.diff.ignoreMetadata': {
|
|
261
261
|
type: 'boolean',
|
|
262
262
|
default: false,
|
|
263
|
-
markdownDescription: ( localize(
|
|
263
|
+
markdownDescription: ( localize(8023, "Hide Metadata Differences"))
|
|
264
264
|
},
|
|
265
265
|
'notebook.diff.ignoreOutputs': {
|
|
266
266
|
type: 'boolean',
|
|
267
267
|
default: false,
|
|
268
|
-
markdownDescription: ( localize(
|
|
268
|
+
markdownDescription: ( localize(8024, "Hide Outputs Differences"))
|
|
269
269
|
},
|
|
270
270
|
}
|
|
271
271
|
});
|
|
@@ -240,7 +240,7 @@ let NotebookTextDiffEditor = class NotebookTextDiffEditor extends EditorPane {
|
|
|
240
240
|
accessibilityProvider: {
|
|
241
241
|
getAriaLabel() { return null; },
|
|
242
242
|
getWidgetAriaLabel() {
|
|
243
|
-
return ( localize(
|
|
243
|
+
return ( localize(7843, "Notebook Text Diff"));
|
|
244
244
|
}
|
|
245
245
|
},
|
|
246
246
|
});
|
|
@@ -25,43 +25,43 @@ class NotebookAccessibilityHelp {
|
|
|
25
25
|
function getAccessibilityHelpText() {
|
|
26
26
|
return [
|
|
27
27
|
( localize(
|
|
28
|
-
|
|
28
|
+
8028,
|
|
29
29
|
'The notebook view is a collection of code and markdown cells. Code cells can be executed and will produce output directly below the cell.'
|
|
30
30
|
)),
|
|
31
31
|
( localize(
|
|
32
|
-
|
|
32
|
+
8029,
|
|
33
33
|
'The Edit Cell command<keybinding:notebook.cell.edit> will focus on the cell input.'
|
|
34
34
|
)),
|
|
35
35
|
( localize(
|
|
36
|
-
|
|
36
|
+
8030,
|
|
37
37
|
'The Quit Edit command<keybinding:notebook.cell.quitEdit> will set focus on the cell container. The default (Escape) key may need to be pressed twice first exit the virtual cursor if active.'
|
|
38
38
|
)),
|
|
39
39
|
( localize(
|
|
40
|
-
|
|
40
|
+
8031,
|
|
41
41
|
'The Focus Output command<keybinding:notebook.cell.focusInOutput> will set focus in the cell\'s output.'
|
|
42
42
|
)),
|
|
43
43
|
( localize(
|
|
44
|
-
|
|
44
|
+
8032,
|
|
45
45
|
'The Focus Next Cell Editor command<keybinding:notebook.focusNextEditor> will set focus in the next cell\'s editor.'
|
|
46
46
|
)),
|
|
47
47
|
( localize(
|
|
48
|
-
|
|
48
|
+
8033,
|
|
49
49
|
'The Focus Previous Cell Editor command<keybinding:notebook.focusPreviousEditor> will set focus in the previous cell\'s editor.'
|
|
50
50
|
)),
|
|
51
51
|
( localize(
|
|
52
|
-
|
|
52
|
+
8034,
|
|
53
53
|
'The up and down arrows will also move focus between cells while focused on the outer cell container.'
|
|
54
54
|
)),
|
|
55
55
|
( localize(
|
|
56
|
-
|
|
56
|
+
8035,
|
|
57
57
|
'The Execute Cell command<keybinding:notebook.cell.executeAndFocusContainer> executes the cell that currently has focus.'
|
|
58
58
|
)),
|
|
59
59
|
( localize(
|
|
60
|
-
|
|
60
|
+
8036,
|
|
61
61
|
'The Insert Cell Above/Below commands will create new empty code cells.'
|
|
62
62
|
)),
|
|
63
63
|
( localize(
|
|
64
|
-
|
|
64
|
+
8037,
|
|
65
65
|
'The Change Cell to Code/Markdown commands are used to switch between cell types.'
|
|
66
66
|
))
|
|
67
67
|
].join('\n');
|