@codingame/monaco-vscode-notebook-service-override 10.0.1 → 10.0.2
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/cellDiagnostics/cellDiagnosticsActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.js +1 -1
- 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/multicursor/notebookMulticursor.js +4 -4
- 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/notebookVariables/notebookVariablesDataSource.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.js +2 -2
- 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 +27 -27
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +1 -1
- 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/notebookIndentationActions.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +19 -19
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +60 -60
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +33 -33
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +12 -12
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +1 -1
|
@@ -88,7 +88,7 @@ registerAction2(class RenderAllMarkdownCellsAction extends NotebookAction {
|
|
|
88
88
|
constructor() {
|
|
89
89
|
super({
|
|
90
90
|
id: RENDER_ALL_MARKDOWN_CELLS,
|
|
91
|
-
title: ( localize(
|
|
91
|
+
title: ( localize(7954, "Render All Markdown Cells")),
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
94
|
async runWithContext(accessor, context) {
|
|
@@ -99,10 +99,10 @@ registerAction2(class ExecuteNotebookAction extends NotebookAction {
|
|
|
99
99
|
constructor() {
|
|
100
100
|
super({
|
|
101
101
|
id: EXECUTE_NOTEBOOK_COMMAND_ID,
|
|
102
|
-
title: ( localize(
|
|
102
|
+
title: ( localize(7955, "Run All")),
|
|
103
103
|
icon: executeAllIcon,
|
|
104
104
|
metadata: {
|
|
105
|
-
description: ( localize(
|
|
105
|
+
description: ( localize(7955, "Run All")),
|
|
106
106
|
args: [
|
|
107
107
|
{
|
|
108
108
|
name: 'uri',
|
|
@@ -160,7 +160,7 @@ registerAction2(class ExecuteCell extends NotebookMultiCellAction {
|
|
|
160
160
|
super({
|
|
161
161
|
id: EXECUTE_CELL_COMMAND_ID,
|
|
162
162
|
precondition: executeThisCellCondition,
|
|
163
|
-
title: ( localize(
|
|
163
|
+
title: ( localize(7956, "Execute Cell")),
|
|
164
164
|
keybinding: {
|
|
165
165
|
when: ( (ContextKeyExpr.or(
|
|
166
166
|
NOTEBOOK_CELL_LIST_FOCUSED,
|
|
@@ -178,7 +178,7 @@ registerAction2(class ExecuteCell extends NotebookMultiCellAction {
|
|
|
178
178
|
group: 'inline'
|
|
179
179
|
},
|
|
180
180
|
metadata: {
|
|
181
|
-
description: ( localize(
|
|
181
|
+
description: ( localize(7956, "Execute Cell")),
|
|
182
182
|
args: cellExecutionArgs
|
|
183
183
|
},
|
|
184
184
|
icon: executeIcon
|
|
@@ -212,7 +212,7 @@ registerAction2(class ExecuteAboveCells extends NotebookMultiCellAction {
|
|
|
212
212
|
super({
|
|
213
213
|
id: EXECUTE_CELLS_ABOVE,
|
|
214
214
|
precondition: executeCondition,
|
|
215
|
-
title: ( localize(
|
|
215
|
+
title: ( localize(7957, "Execute Above Cells")),
|
|
216
216
|
menu: [
|
|
217
217
|
{
|
|
218
218
|
id: MenuId.NotebookCellExecute,
|
|
@@ -258,7 +258,7 @@ registerAction2(class ExecuteCellAndBelow extends NotebookMultiCellAction {
|
|
|
258
258
|
super({
|
|
259
259
|
id: EXECUTE_CELL_AND_BELOW,
|
|
260
260
|
precondition: executeCondition,
|
|
261
|
-
title: ( localize(
|
|
261
|
+
title: ( localize(7958, "Execute Cell and Below")),
|
|
262
262
|
menu: [
|
|
263
263
|
{
|
|
264
264
|
id: MenuId.NotebookCellExecute,
|
|
@@ -304,9 +304,9 @@ registerAction2(class ExecuteCellFocusContainer extends NotebookMultiCellAction
|
|
|
304
304
|
super({
|
|
305
305
|
id: EXECUTE_CELL_FOCUS_CONTAINER_COMMAND_ID,
|
|
306
306
|
precondition: executeThisCellCondition,
|
|
307
|
-
title: ( localize(
|
|
307
|
+
title: ( localize(7959, "Execute Cell and Focus Container")),
|
|
308
308
|
metadata: {
|
|
309
|
-
description: ( localize(
|
|
309
|
+
description: ( localize(7959, "Execute Cell and Focus Container")),
|
|
310
310
|
args: cellExecutionArgs
|
|
311
311
|
},
|
|
312
312
|
icon: executeIcon
|
|
@@ -338,7 +338,7 @@ registerAction2(class CancelExecuteCell extends NotebookMultiCellAction {
|
|
|
338
338
|
super({
|
|
339
339
|
id: CANCEL_CELL_COMMAND_ID,
|
|
340
340
|
precondition: cellCancelCondition,
|
|
341
|
-
title: ( localize(
|
|
341
|
+
title: ( localize(7960, "Stop Cell Execution")),
|
|
342
342
|
icon: stopIcon,
|
|
343
343
|
menu: {
|
|
344
344
|
id: MenuId.NotebookCellExecutePrimary,
|
|
@@ -346,7 +346,7 @@ registerAction2(class CancelExecuteCell extends NotebookMultiCellAction {
|
|
|
346
346
|
group: 'inline'
|
|
347
347
|
},
|
|
348
348
|
metadata: {
|
|
349
|
-
description: ( localize(
|
|
349
|
+
description: ( localize(7960, "Stop Cell Execution")),
|
|
350
350
|
args: [
|
|
351
351
|
{
|
|
352
352
|
name: 'options',
|
|
@@ -404,7 +404,7 @@ registerAction2(class ExecuteCellSelectBelow extends NotebookCellAction {
|
|
|
404
404
|
executeThisCellCondition,
|
|
405
405
|
(NOTEBOOK_CELL_TYPE.isEqualTo('markup'))
|
|
406
406
|
))),
|
|
407
|
-
title: ( localize(
|
|
407
|
+
title: ( localize(7961, "Execute Notebook Cell and Select Below")),
|
|
408
408
|
keybinding: {
|
|
409
409
|
when: ( (ContextKeyExpr.and(
|
|
410
410
|
NOTEBOOK_CELL_LIST_FOCUSED,
|
|
@@ -470,7 +470,7 @@ registerAction2(class ExecuteCellInsertBelow extends NotebookCellAction {
|
|
|
470
470
|
executeThisCellCondition,
|
|
471
471
|
(NOTEBOOK_CELL_TYPE.isEqualTo('markup'))
|
|
472
472
|
))),
|
|
473
|
-
title: ( localize(
|
|
473
|
+
title: ( localize(7962, "Execute Notebook Cell and Insert Below")),
|
|
474
474
|
keybinding: {
|
|
475
475
|
when: NOTEBOOK_CELL_LIST_FOCUSED,
|
|
476
476
|
primary: 512 | 3 ,
|
|
@@ -507,7 +507,7 @@ registerAction2(class CancelAllNotebook extends CancelNotebook {
|
|
|
507
507
|
constructor() {
|
|
508
508
|
super({
|
|
509
509
|
id: CANCEL_NOTEBOOK_COMMAND_ID,
|
|
510
|
-
title: ( localize2(
|
|
510
|
+
title: ( localize2(7963, "Stop Execution")),
|
|
511
511
|
icon: stopIcon,
|
|
512
512
|
menu: [
|
|
513
513
|
{
|
|
@@ -539,7 +539,7 @@ registerAction2(class InterruptNotebook extends CancelNotebook {
|
|
|
539
539
|
constructor() {
|
|
540
540
|
super({
|
|
541
541
|
id: INTERRUPT_NOTEBOOK_COMMAND_ID,
|
|
542
|
-
title: ( localize2(
|
|
542
|
+
title: ( localize2(7964, "Interrupt")),
|
|
543
543
|
precondition: ( (ContextKeyExpr.and(NOTEBOOK_HAS_SOMETHING_RUNNING, NOTEBOOK_INTERRUPTIBLE_KERNEL))),
|
|
544
544
|
icon: stopIcon,
|
|
545
545
|
menu: [
|
|
@@ -573,7 +573,7 @@ registerAction2(class InterruptNotebook extends CancelNotebook {
|
|
|
573
573
|
}
|
|
574
574
|
});
|
|
575
575
|
MenuRegistry.appendMenuItem(MenuId.NotebookToolbar, {
|
|
576
|
-
title: ( localize(
|
|
576
|
+
title: ( localize(7965, "Go To")),
|
|
577
577
|
submenu: MenuId.NotebookCellExecuteGoTo,
|
|
578
578
|
group: 'navigation/execute',
|
|
579
579
|
order: 20,
|
|
@@ -583,9 +583,9 @@ registerAction2(class RevealRunningCellAction extends NotebookAction {
|
|
|
583
583
|
constructor() {
|
|
584
584
|
super({
|
|
585
585
|
id: REVEAL_RUNNING_CELL,
|
|
586
|
-
title: ( localize(
|
|
587
|
-
tooltip: ( localize(
|
|
588
|
-
shortTitle: ( localize(
|
|
586
|
+
title: ( localize(7966, "Go to Running Cell")),
|
|
587
|
+
tooltip: ( localize(7966, "Go to Running Cell")),
|
|
588
|
+
shortTitle: ( localize(7966, "Go to Running Cell")),
|
|
589
589
|
precondition: NOTEBOOK_HAS_RUNNING_CELL,
|
|
590
590
|
menu: [
|
|
591
591
|
{
|
|
@@ -654,9 +654,9 @@ registerAction2(class RevealLastFailedCellAction extends NotebookAction {
|
|
|
654
654
|
constructor() {
|
|
655
655
|
super({
|
|
656
656
|
id: REVEAL_LAST_FAILED_CELL,
|
|
657
|
-
title: ( localize(
|
|
658
|
-
tooltip: ( localize(
|
|
659
|
-
shortTitle: ( localize(
|
|
657
|
+
title: ( localize(7967, "Go to Most Recently Failed Cell")),
|
|
658
|
+
tooltip: ( localize(7967, "Go to Most Recently Failed Cell")),
|
|
659
|
+
shortTitle: ( localize(7968, "Go to Most Recently Failed Cell")),
|
|
660
660
|
precondition: NOTEBOOK_LAST_CELL_FAILED,
|
|
661
661
|
menu: [
|
|
662
662
|
{
|
|
@@ -53,7 +53,7 @@ registerAction2(class InsertCodeCellAboveAction extends InsertCellCommand {
|
|
|
53
53
|
constructor() {
|
|
54
54
|
super({
|
|
55
55
|
id: INSERT_CODE_CELL_ABOVE_COMMAND_ID,
|
|
56
|
-
title: ( localize(
|
|
56
|
+
title: ( localize(7938, "Insert Code Cell Above")),
|
|
57
57
|
keybinding: {
|
|
58
58
|
primary: 2048 | 1024 | 3 ,
|
|
59
59
|
when: ( (ContextKeyExpr.and(
|
|
@@ -73,7 +73,7 @@ registerAction2(class InsertCodeCellAboveAndFocusContainerAction extends InsertC
|
|
|
73
73
|
constructor() {
|
|
74
74
|
super({
|
|
75
75
|
id: INSERT_CODE_CELL_ABOVE_AND_FOCUS_CONTAINER_COMMAND_ID,
|
|
76
|
-
title: ( localize(
|
|
76
|
+
title: ( localize(7939, "Insert Code Cell Above and Focus Container"))
|
|
77
77
|
}, CellKind.Code, 'above', false);
|
|
78
78
|
}
|
|
79
79
|
});
|
|
@@ -81,7 +81,7 @@ registerAction2(class InsertCodeCellBelowAction extends InsertCellCommand {
|
|
|
81
81
|
constructor() {
|
|
82
82
|
super({
|
|
83
83
|
id: INSERT_CODE_CELL_BELOW_COMMAND_ID,
|
|
84
|
-
title: ( localize(
|
|
84
|
+
title: ( localize(7940, "Insert Code Cell Below")),
|
|
85
85
|
keybinding: {
|
|
86
86
|
primary: 2048 | 3 ,
|
|
87
87
|
when: ( (ContextKeyExpr.and(
|
|
@@ -102,7 +102,7 @@ registerAction2(class InsertCodeCellBelowAndFocusContainerAction extends InsertC
|
|
|
102
102
|
constructor() {
|
|
103
103
|
super({
|
|
104
104
|
id: INSERT_CODE_CELL_BELOW_AND_FOCUS_CONTAINER_COMMAND_ID,
|
|
105
|
-
title: ( localize(
|
|
105
|
+
title: ( localize(7941, "Insert Code Cell Below and Focus Container")),
|
|
106
106
|
}, CellKind.Code, 'below', false);
|
|
107
107
|
}
|
|
108
108
|
});
|
|
@@ -110,7 +110,7 @@ registerAction2(class InsertMarkdownCellAboveAction extends InsertCellCommand {
|
|
|
110
110
|
constructor() {
|
|
111
111
|
super({
|
|
112
112
|
id: INSERT_MARKDOWN_CELL_ABOVE_COMMAND_ID,
|
|
113
|
-
title: ( localize(
|
|
113
|
+
title: ( localize(7942, "Insert Markdown Cell Above")),
|
|
114
114
|
menu: {
|
|
115
115
|
id: MenuId.NotebookCellInsert,
|
|
116
116
|
order: 2
|
|
@@ -122,7 +122,7 @@ registerAction2(class InsertMarkdownCellBelowAction extends InsertCellCommand {
|
|
|
122
122
|
constructor() {
|
|
123
123
|
super({
|
|
124
124
|
id: INSERT_MARKDOWN_CELL_BELOW_COMMAND_ID,
|
|
125
|
-
title: ( localize(
|
|
125
|
+
title: ( localize(7943, "Insert Markdown Cell Below")),
|
|
126
126
|
menu: {
|
|
127
127
|
id: MenuId.NotebookCellInsert,
|
|
128
128
|
order: 3
|
|
@@ -134,7 +134,7 @@ registerAction2(class InsertCodeCellAtTopAction extends NotebookAction {
|
|
|
134
134
|
constructor() {
|
|
135
135
|
super({
|
|
136
136
|
id: INSERT_CODE_CELL_AT_TOP_COMMAND_ID,
|
|
137
|
-
title: ( localize(
|
|
137
|
+
title: ( localize(7944, "Add Code Cell At Top")),
|
|
138
138
|
f1: false
|
|
139
139
|
});
|
|
140
140
|
}
|
|
@@ -156,7 +156,7 @@ registerAction2(class InsertMarkdownCellAtTopAction extends NotebookAction {
|
|
|
156
156
|
constructor() {
|
|
157
157
|
super({
|
|
158
158
|
id: INSERT_MARKDOWN_CELL_AT_TOP_COMMAND_ID,
|
|
159
|
-
title: ( localize(
|
|
159
|
+
title: ( localize(7945, "Add Markdown Cell At Top")),
|
|
160
160
|
f1: false
|
|
161
161
|
});
|
|
162
162
|
}
|
|
@@ -177,8 +177,8 @@ registerAction2(class InsertMarkdownCellAtTopAction extends NotebookAction {
|
|
|
177
177
|
MenuRegistry.appendMenuItem(MenuId.NotebookCellBetween, {
|
|
178
178
|
command: {
|
|
179
179
|
id: INSERT_CODE_CELL_BELOW_COMMAND_ID,
|
|
180
|
-
title: '$(add) ' + ( localize(
|
|
181
|
-
tooltip: ( localize(
|
|
180
|
+
title: '$(add) ' + ( localize(7946, "Code")),
|
|
181
|
+
tooltip: ( localize(7947, "Add Code Cell"))
|
|
182
182
|
},
|
|
183
183
|
order: 0,
|
|
184
184
|
group: 'inline',
|
|
@@ -190,9 +190,9 @@ MenuRegistry.appendMenuItem(MenuId.NotebookCellBetween, {
|
|
|
190
190
|
MenuRegistry.appendMenuItem(MenuId.NotebookCellBetween, {
|
|
191
191
|
command: {
|
|
192
192
|
id: INSERT_CODE_CELL_BELOW_COMMAND_ID,
|
|
193
|
-
title: ( localize(
|
|
193
|
+
title: ( localize(7948, "Add Code")),
|
|
194
194
|
icon: Codicon.add,
|
|
195
|
-
tooltip: ( localize(
|
|
195
|
+
tooltip: ( localize(7947, "Add Code Cell"))
|
|
196
196
|
},
|
|
197
197
|
order: 0,
|
|
198
198
|
group: 'inline',
|
|
@@ -205,8 +205,8 @@ MenuRegistry.appendMenuItem(MenuId.NotebookToolbar, {
|
|
|
205
205
|
command: {
|
|
206
206
|
id: INSERT_CODE_CELL_BELOW_COMMAND_ID,
|
|
207
207
|
icon: Codicon.add,
|
|
208
|
-
title: ( localize(
|
|
209
|
-
tooltip: ( localize(
|
|
208
|
+
title: ( localize(7949, "Code")),
|
|
209
|
+
tooltip: ( localize(7947, "Add Code Cell"))
|
|
210
210
|
},
|
|
211
211
|
order: -5,
|
|
212
212
|
group: 'navigation/add',
|
|
@@ -219,8 +219,8 @@ MenuRegistry.appendMenuItem(MenuId.NotebookToolbar, {
|
|
|
219
219
|
MenuRegistry.appendMenuItem(MenuId.NotebookCellListTop, {
|
|
220
220
|
command: {
|
|
221
221
|
id: INSERT_CODE_CELL_AT_TOP_COMMAND_ID,
|
|
222
|
-
title: '$(add) ' + ( localize(
|
|
223
|
-
tooltip: ( localize(
|
|
222
|
+
title: '$(add) ' + ( localize(7946, "Code")),
|
|
223
|
+
tooltip: ( localize(7947, "Add Code Cell"))
|
|
224
224
|
},
|
|
225
225
|
order: 0,
|
|
226
226
|
group: 'inline',
|
|
@@ -232,9 +232,9 @@ MenuRegistry.appendMenuItem(MenuId.NotebookCellListTop, {
|
|
|
232
232
|
MenuRegistry.appendMenuItem(MenuId.NotebookCellListTop, {
|
|
233
233
|
command: {
|
|
234
234
|
id: INSERT_CODE_CELL_AT_TOP_COMMAND_ID,
|
|
235
|
-
title: ( localize(
|
|
235
|
+
title: ( localize(7950, "Add Code")),
|
|
236
236
|
icon: Codicon.add,
|
|
237
|
-
tooltip: ( localize(
|
|
237
|
+
tooltip: ( localize(7947, "Add Code Cell"))
|
|
238
238
|
},
|
|
239
239
|
order: 0,
|
|
240
240
|
group: 'inline',
|
|
@@ -246,8 +246,8 @@ MenuRegistry.appendMenuItem(MenuId.NotebookCellListTop, {
|
|
|
246
246
|
MenuRegistry.appendMenuItem(MenuId.NotebookCellBetween, {
|
|
247
247
|
command: {
|
|
248
248
|
id: INSERT_MARKDOWN_CELL_BELOW_COMMAND_ID,
|
|
249
|
-
title: '$(add) ' + ( localize(
|
|
250
|
-
tooltip: ( localize(
|
|
249
|
+
title: '$(add) ' + ( localize(7951, "Markdown")),
|
|
250
|
+
tooltip: ( localize(7952, "Add Markdown Cell"))
|
|
251
251
|
},
|
|
252
252
|
order: 1,
|
|
253
253
|
group: 'inline',
|
|
@@ -260,8 +260,8 @@ MenuRegistry.appendMenuItem(MenuId.NotebookToolbar, {
|
|
|
260
260
|
command: {
|
|
261
261
|
id: INSERT_MARKDOWN_CELL_BELOW_COMMAND_ID,
|
|
262
262
|
icon: Codicon.add,
|
|
263
|
-
title: ( localize(
|
|
264
|
-
tooltip: ( localize(
|
|
263
|
+
title: ( localize(7953, "Markdown")),
|
|
264
|
+
tooltip: ( localize(7952, "Add Markdown Cell"))
|
|
265
265
|
},
|
|
266
266
|
order: -5,
|
|
267
267
|
group: 'navigation/add',
|
|
@@ -276,8 +276,8 @@ MenuRegistry.appendMenuItem(MenuId.NotebookToolbar, {
|
|
|
276
276
|
MenuRegistry.appendMenuItem(MenuId.NotebookCellListTop, {
|
|
277
277
|
command: {
|
|
278
278
|
id: INSERT_MARKDOWN_CELL_AT_TOP_COMMAND_ID,
|
|
279
|
-
title: '$(add) ' + ( localize(
|
|
280
|
-
tooltip: ( localize(
|
|
279
|
+
title: '$(add) ' + ( localize(7951, "Markdown")),
|
|
280
|
+
tooltip: ( localize(7952, "Add Markdown Cell"))
|
|
281
281
|
},
|
|
282
282
|
order: 1,
|
|
283
283
|
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(7977, "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(7978, "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(7978, "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(7979, "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(7980, '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(7981, "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(7982, '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(7983, '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(7984, "Save Mimetype Display Order")),
|
|
172
172
|
f1: true,
|
|
173
173
|
category: NOTEBOOK_ACTIONS_CATEGORY,
|
|
174
174
|
precondition: NOTEBOOK_IS_ACTIVE_EDITOR,
|
|
@@ -178,10 +178,10 @@ registerAction2(class SaveMimeTypeDisplayOrder extends Action2 {
|
|
|
178
178
|
const service = accessor.get(INotebookService);
|
|
179
179
|
const disposables = ( (new DisposableStore()));
|
|
180
180
|
const qp = disposables.add(accessor.get(IQuickInputService).createQuickPick());
|
|
181
|
-
qp.placeholder = ( localize(
|
|
181
|
+
qp.placeholder = ( localize(7985, 'Settings file to save in'));
|
|
182
182
|
qp.items = [
|
|
183
|
-
{ target: 2 , label: ( localize(
|
|
184
|
-
{ target: 5 , label: ( localize(
|
|
183
|
+
{ target: 2 , label: ( localize(7986, 'User Settings')) },
|
|
184
|
+
{ target: 5 , label: ( localize(7987, 'Workspace Settings')) },
|
|
185
185
|
];
|
|
186
186
|
disposables.add(qp.onDidAccept(() => {
|
|
187
187
|
const target = qp.selectedItems[0]?.target;
|
|
@@ -198,7 +198,7 @@ registerAction2(class NotebookWebviewResetAction extends Action2 {
|
|
|
198
198
|
constructor() {
|
|
199
199
|
super({
|
|
200
200
|
id: 'workbench.notebook.layout.webview.reset',
|
|
201
|
-
title: ( localize2(
|
|
201
|
+
title: ( localize2(7988, "Reset Notebook Webview")),
|
|
202
202
|
f1: false,
|
|
203
203
|
category: NOTEBOOK_ACTIONS_CATEGORY
|
|
204
204
|
});
|
|
@@ -229,14 +229,14 @@ registerAction2(class ToggleNotebookStickyScroll extends Action2 {
|
|
|
229
229
|
super({
|
|
230
230
|
id: 'notebook.action.toggleNotebookStickyScroll',
|
|
231
231
|
title: {
|
|
232
|
-
...( localize2(
|
|
233
|
-
mnemonicTitle: ( localize(
|
|
232
|
+
...( localize2(7989, "Toggle Notebook Sticky Scroll")),
|
|
233
|
+
mnemonicTitle: ( localize(7990, "&&Toggle Notebook Sticky Scroll")),
|
|
234
234
|
},
|
|
235
235
|
category: Categories.View,
|
|
236
236
|
toggled: {
|
|
237
237
|
condition: ( (ContextKeyExpr.equals('config.notebook.stickyScroll.enabled', true))),
|
|
238
|
-
title: ( localize(
|
|
239
|
-
mnemonicTitle: ( localize(
|
|
238
|
+
title: ( localize(7991, "Toggle Notebook Sticky Scroll")),
|
|
239
|
+
mnemonicTitle: ( localize(7990, "&&Toggle Notebook Sticky Scroll")),
|
|
240
240
|
},
|
|
241
241
|
menu: [
|
|
242
242
|
{ id: MenuId.CommandPalette },
|
package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js
CHANGED
|
@@ -17,7 +17,7 @@ class NotebookIndentUsingTabs extends Action2 {
|
|
|
17
17
|
constructor() {
|
|
18
18
|
super({
|
|
19
19
|
id: NotebookIndentUsingTabs.ID,
|
|
20
|
-
title: ( localize(
|
|
20
|
+
title: ( localize(10826, "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(
|
|
33
|
+
title: ( localize(10827, "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(
|
|
46
|
+
title: ( localize(10828, "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(
|
|
59
|
+
title: ( localize(10829, "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(
|
|
72
|
+
title: ( localize(10830, "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(
|
|
104
|
+
quickInputService.pick(picks, { placeHolder: ( localize(10831, "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(
|
|
154
|
+
bulkEditService.apply(edits, { label: ( localize(10832, "Convert Indentation")), code: 'undoredo.convertIndentation', });
|
|
155
155
|
})))).then(() => {
|
|
156
156
|
const initialConfig = configurationService.getValue(NotebookSetting.cellEditorOptionsCustomizations);
|
|
157
157
|
const initialIndentSize = initialConfig['editor.indentSize'];
|
|
@@ -11,10 +11,10 @@ class NotebookRunSingleCellInSection extends Action2 {
|
|
|
11
11
|
super({
|
|
12
12
|
id: 'notebook.section.runSingleCell',
|
|
13
13
|
title: {
|
|
14
|
-
...( localize2(
|
|
15
|
-
mnemonicTitle: ( localize(
|
|
14
|
+
...( localize2(7969, "Run Cell")),
|
|
15
|
+
mnemonicTitle: ( localize(7970, "&&Run Cell")),
|
|
16
16
|
},
|
|
17
|
-
shortTitle: ( localize(
|
|
17
|
+
shortTitle: ( localize(7969, "Run Cell")),
|
|
18
18
|
icon: executeIcon,
|
|
19
19
|
menu: [
|
|
20
20
|
{
|
|
@@ -43,10 +43,10 @@ class NotebookRunCellsInSection extends Action2 {
|
|
|
43
43
|
super({
|
|
44
44
|
id: 'notebook.section.runCells',
|
|
45
45
|
title: {
|
|
46
|
-
...( localize2(
|
|
47
|
-
mnemonicTitle: ( localize(
|
|
46
|
+
...( localize2(7971, "Run Cells In Section")),
|
|
47
|
+
mnemonicTitle: ( localize(7972, "&&Run Cells In Section")),
|
|
48
48
|
},
|
|
49
|
-
shortTitle: ( localize(
|
|
49
|
+
shortTitle: ( localize(7971, "Run Cells In Section")),
|
|
50
50
|
menu: [
|
|
51
51
|
{
|
|
52
52
|
id: MenuId.NotebookStickyScrollContext,
|
|
@@ -89,10 +89,10 @@ class NotebookFoldSection extends Action2 {
|
|
|
89
89
|
super({
|
|
90
90
|
id: 'notebook.section.foldSection',
|
|
91
91
|
title: {
|
|
92
|
-
...( localize2(
|
|
93
|
-
mnemonicTitle: ( localize(
|
|
92
|
+
...( localize2(7973, "Fold Section")),
|
|
93
|
+
mnemonicTitle: ( localize(7974, "&&Fold Section")),
|
|
94
94
|
},
|
|
95
|
-
shortTitle: ( localize(
|
|
95
|
+
shortTitle: ( localize(7973, "Fold Section")),
|
|
96
96
|
menu: [
|
|
97
97
|
{
|
|
98
98
|
id: MenuId.NotebookOutlineActionMenu,
|
|
@@ -128,10 +128,10 @@ class NotebookExpandSection extends Action2 {
|
|
|
128
128
|
super({
|
|
129
129
|
id: 'notebook.section.expandSection',
|
|
130
130
|
title: {
|
|
131
|
-
...( localize2(
|
|
132
|
-
mnemonicTitle: ( localize(
|
|
131
|
+
...( localize2(7975, "Expand Section")),
|
|
132
|
+
mnemonicTitle: ( localize(7976, "&&Expand Section")),
|
|
133
133
|
},
|
|
134
|
-
shortTitle: ( localize(
|
|
134
|
+
shortTitle: ( localize(7975, "Expand Section")),
|
|
135
135
|
menu: [
|
|
136
136
|
{
|
|
137
137
|
id: MenuId.NotebookOutlineActionMenu,
|