@codingame/monaco-vscode-notebook-service-override 32.0.0 → 32.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 +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +7 -7
- 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 +4 -4
- 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 +9 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.js +4 -4
- 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 +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +13 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookInlineVariables.js +1 -1
- 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 +3 -3
- 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/editActions.js +25 -25
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +22 -22
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +21 -21
- 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/controller/variablesActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +21 -21
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +59 -59
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +31 -31
- package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditor.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditorInput.js +1 -1
- 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/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js +1 -1
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/repl.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorAccessibilityHelp.js +14 -14
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +12 -12
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +1 -1
|
@@ -148,7 +148,7 @@ registerAction2(class RenderAllMarkdownCellsAction extends NotebookAction {
|
|
|
148
148
|
constructor() {
|
|
149
149
|
super({
|
|
150
150
|
id: RENDER_ALL_MARKDOWN_CELLS,
|
|
151
|
-
title: ( localize(
|
|
151
|
+
title: ( localize(11593, "Render All Markdown Cells"))
|
|
152
152
|
});
|
|
153
153
|
}
|
|
154
154
|
async runWithContext(accessor, context) {
|
|
@@ -159,10 +159,10 @@ registerAction2(class ExecuteNotebookAction extends NotebookAction {
|
|
|
159
159
|
constructor() {
|
|
160
160
|
super({
|
|
161
161
|
id: EXECUTE_NOTEBOOK_COMMAND_ID,
|
|
162
|
-
title: ( localize(
|
|
162
|
+
title: ( localize(11594, "Run All")),
|
|
163
163
|
icon: executeAllIcon,
|
|
164
164
|
metadata: {
|
|
165
|
-
description: ( localize(
|
|
165
|
+
description: ( localize(11594, "Run All")),
|
|
166
166
|
args: [{
|
|
167
167
|
name: "uri",
|
|
168
168
|
description: "The document uri"
|
|
@@ -205,7 +205,7 @@ registerAction2(class ExecuteCell extends NotebookMultiCellAction {
|
|
|
205
205
|
super({
|
|
206
206
|
id: EXECUTE_CELL_COMMAND_ID,
|
|
207
207
|
precondition: executeThisCellCondition,
|
|
208
|
-
title: ( localize(
|
|
208
|
+
title: ( localize(11595, "Execute Cell")),
|
|
209
209
|
keybinding: {
|
|
210
210
|
when: NOTEBOOK_CELL_LIST_FOCUSED,
|
|
211
211
|
primary: KeyMod.WinCtrl | KeyCode.Enter,
|
|
@@ -220,7 +220,7 @@ registerAction2(class ExecuteCell extends NotebookMultiCellAction {
|
|
|
220
220
|
group: "inline"
|
|
221
221
|
},
|
|
222
222
|
metadata: {
|
|
223
|
-
description: ( localize(
|
|
223
|
+
description: ( localize(11595, "Execute Cell")),
|
|
224
224
|
args: cellExecutionArgs
|
|
225
225
|
},
|
|
226
226
|
icon: executeIcon
|
|
@@ -245,7 +245,7 @@ registerAction2(class ExecuteAboveCells extends NotebookMultiCellAction {
|
|
|
245
245
|
super({
|
|
246
246
|
id: EXECUTE_CELLS_ABOVE,
|
|
247
247
|
precondition: executeCondition,
|
|
248
|
-
title: ( localize(
|
|
248
|
+
title: ( localize(11596, "Execute Above Cells")),
|
|
249
249
|
menu: [{
|
|
250
250
|
id: MenuId.NotebookCellExecute,
|
|
251
251
|
when: ( ContextKeyExpr.and(executeCondition, ( ContextKeyExpr.equals(`config.${NotebookSetting.consolidatedRunButton}`, true))))
|
|
@@ -286,7 +286,7 @@ registerAction2(class ExecuteCellAndBelow extends NotebookMultiCellAction {
|
|
|
286
286
|
super({
|
|
287
287
|
id: EXECUTE_CELL_AND_BELOW,
|
|
288
288
|
precondition: executeCondition,
|
|
289
|
-
title: ( localize(
|
|
289
|
+
title: ( localize(11597, "Execute Cell and Below")),
|
|
290
290
|
menu: [{
|
|
291
291
|
id: MenuId.NotebookCellExecute,
|
|
292
292
|
when: ( ContextKeyExpr.and(executeCondition, ( ContextKeyExpr.equals(`config.${NotebookSetting.consolidatedRunButton}`, true))))
|
|
@@ -327,9 +327,9 @@ registerAction2(class ExecuteCellFocusContainer extends NotebookMultiCellAction
|
|
|
327
327
|
super({
|
|
328
328
|
id: EXECUTE_CELL_FOCUS_CONTAINER_COMMAND_ID,
|
|
329
329
|
precondition: executeThisCellCondition,
|
|
330
|
-
title: ( localize(
|
|
330
|
+
title: ( localize(11598, "Execute Cell and Focus Container")),
|
|
331
331
|
metadata: {
|
|
332
|
-
description: ( localize(
|
|
332
|
+
description: ( localize(11598, "Execute Cell and Focus Container")),
|
|
333
333
|
args: cellExecutionArgs
|
|
334
334
|
},
|
|
335
335
|
icon: executeIcon
|
|
@@ -362,7 +362,7 @@ registerAction2(class CancelExecuteCell extends NotebookMultiCellAction {
|
|
|
362
362
|
super({
|
|
363
363
|
id: CANCEL_CELL_COMMAND_ID,
|
|
364
364
|
precondition: cellCancelCondition,
|
|
365
|
-
title: ( localize(
|
|
365
|
+
title: ( localize(11599, "Stop Cell Execution")),
|
|
366
366
|
icon: stopIcon,
|
|
367
367
|
menu: {
|
|
368
368
|
id: MenuId.NotebookCellExecutePrimary,
|
|
@@ -370,7 +370,7 @@ registerAction2(class CancelExecuteCell extends NotebookMultiCellAction {
|
|
|
370
370
|
group: "inline"
|
|
371
371
|
},
|
|
372
372
|
metadata: {
|
|
373
|
-
description: ( localize(
|
|
373
|
+
description: ( localize(11599, "Stop Cell Execution")),
|
|
374
374
|
args: [{
|
|
375
375
|
name: "options",
|
|
376
376
|
description: "The cell range options",
|
|
@@ -422,7 +422,7 @@ registerAction2(class ExecuteCellSelectBelow extends NotebookCellAction {
|
|
|
422
422
|
super({
|
|
423
423
|
id: EXECUTE_CELL_SELECT_BELOW,
|
|
424
424
|
precondition: ( ContextKeyExpr.or(executeThisCellCondition, ( NOTEBOOK_CELL_TYPE.isEqualTo("markup")))),
|
|
425
|
-
title: ( localize(
|
|
425
|
+
title: ( localize(11600, "Execute Notebook Cell and Select Below")),
|
|
426
426
|
keybinding: {
|
|
427
427
|
when: ( ContextKeyExpr.and(NOTEBOOK_CELL_LIST_FOCUSED, ( CTX_INLINE_CHAT_FOCUSED.negate()))),
|
|
428
428
|
primary: KeyMod.Shift | KeyCode.Enter,
|
|
@@ -481,7 +481,7 @@ registerAction2(class ExecuteCellInsertBelow extends NotebookCellAction {
|
|
|
481
481
|
super({
|
|
482
482
|
id: EXECUTE_CELL_INSERT_BELOW,
|
|
483
483
|
precondition: ( ContextKeyExpr.or(executeThisCellCondition, ( NOTEBOOK_CELL_TYPE.isEqualTo("markup")))),
|
|
484
|
-
title: ( localize(
|
|
484
|
+
title: ( localize(11601, "Execute Notebook Cell and Insert Below")),
|
|
485
485
|
keybinding: {
|
|
486
486
|
when: NOTEBOOK_CELL_LIST_FOCUSED,
|
|
487
487
|
primary: KeyMod.Alt | KeyCode.Enter,
|
|
@@ -524,7 +524,7 @@ registerAction2(class CancelAllNotebook extends CancelNotebook {
|
|
|
524
524
|
constructor() {
|
|
525
525
|
super({
|
|
526
526
|
id: CANCEL_NOTEBOOK_COMMAND_ID,
|
|
527
|
-
title: ( localize2(
|
|
527
|
+
title: ( localize2(11602, "Stop Execution")),
|
|
528
528
|
icon: stopIcon,
|
|
529
529
|
menu: [{
|
|
530
530
|
id: MenuId.EditorTitle,
|
|
@@ -544,7 +544,7 @@ registerAction2(class InterruptNotebook extends CancelNotebook {
|
|
|
544
544
|
constructor() {
|
|
545
545
|
super({
|
|
546
546
|
id: INTERRUPT_NOTEBOOK_COMMAND_ID,
|
|
547
|
-
title: ( localize2(
|
|
547
|
+
title: ( localize2(11603, "Interrupt")),
|
|
548
548
|
precondition: ( ContextKeyExpr.and(NOTEBOOK_HAS_SOMETHING_RUNNING, NOTEBOOK_INTERRUPTIBLE_KERNEL)),
|
|
549
549
|
icon: stopIcon,
|
|
550
550
|
menu: [{
|
|
@@ -574,7 +574,7 @@ registerAction2(class InterruptNotebook extends CancelNotebook {
|
|
|
574
574
|
}
|
|
575
575
|
});
|
|
576
576
|
MenuRegistry.appendMenuItem(MenuId.NotebookToolbar, {
|
|
577
|
-
title: ( localize(
|
|
577
|
+
title: ( localize(11604, "Go To")),
|
|
578
578
|
submenu: MenuId.NotebookCellExecuteGoTo,
|
|
579
579
|
group: "navigation/execute",
|
|
580
580
|
order: 20,
|
|
@@ -584,9 +584,9 @@ registerAction2(class RevealRunningCellAction extends NotebookAction {
|
|
|
584
584
|
constructor() {
|
|
585
585
|
super({
|
|
586
586
|
id: REVEAL_RUNNING_CELL,
|
|
587
|
-
title: ( localize(
|
|
588
|
-
tooltip: ( localize(
|
|
589
|
-
shortTitle: ( localize(
|
|
587
|
+
title: ( localize(11605, "Go to Running Cell")),
|
|
588
|
+
tooltip: ( localize(11605, "Go to Running Cell")),
|
|
589
|
+
shortTitle: ( localize(11605, "Go to Running Cell")),
|
|
590
590
|
precondition: NOTEBOOK_HAS_RUNNING_CELL,
|
|
591
591
|
menu: [{
|
|
592
592
|
id: MenuId.EditorTitle,
|
|
@@ -640,9 +640,9 @@ registerAction2(class RevealLastFailedCellAction extends NotebookAction {
|
|
|
640
640
|
constructor() {
|
|
641
641
|
super({
|
|
642
642
|
id: REVEAL_LAST_FAILED_CELL,
|
|
643
|
-
title: ( localize(
|
|
644
|
-
tooltip: ( localize(
|
|
645
|
-
shortTitle: ( localize(
|
|
643
|
+
title: ( localize(11606, "Go to Most Recently Failed Cell")),
|
|
644
|
+
tooltip: ( localize(11606, "Go to Most Recently Failed Cell")),
|
|
645
|
+
shortTitle: ( localize(11607, "Go to Most Recently Failed Cell")),
|
|
646
646
|
precondition: NOTEBOOK_LAST_CELL_FAILED,
|
|
647
647
|
menu: [{
|
|
648
648
|
id: MenuId.EditorTitle,
|
|
@@ -23,7 +23,7 @@ registerAction2(class NotebookConfigureLayoutAction extends Action2 {
|
|
|
23
23
|
constructor() {
|
|
24
24
|
super({
|
|
25
25
|
id: "workbench.notebook.layout.select",
|
|
26
|
-
title: ( localize2(
|
|
26
|
+
title: ( localize2(11626, "Select between Notebook Layouts")),
|
|
27
27
|
f1: true,
|
|
28
28
|
precondition: ( ContextKeyExpr.equals(`config.${NotebookSetting.openGettingStarted}`, true)),
|
|
29
29
|
category: NOTEBOOK_ACTIONS_CATEGORY,
|
|
@@ -51,7 +51,7 @@ registerAction2(class NotebookConfigureLayoutAction extends Action2 {
|
|
|
51
51
|
constructor() {
|
|
52
52
|
super({
|
|
53
53
|
id: "workbench.notebook.layout.configure",
|
|
54
|
-
title: ( localize2(
|
|
54
|
+
title: ( localize2(11627, "Customize Notebook Layout")),
|
|
55
55
|
f1: true,
|
|
56
56
|
category: NOTEBOOK_ACTIONS_CATEGORY,
|
|
57
57
|
menu: [{
|
|
@@ -73,7 +73,7 @@ registerAction2(class NotebookConfigureLayoutFromEditorTitle extends Action2 {
|
|
|
73
73
|
constructor() {
|
|
74
74
|
super({
|
|
75
75
|
id: "workbench.notebook.layout.configure.editorTitle",
|
|
76
|
-
title: ( localize2(
|
|
76
|
+
title: ( localize2(11627, "Customize Notebook Layout")),
|
|
77
77
|
f1: false,
|
|
78
78
|
category: NOTEBOOK_ACTIONS_CATEGORY,
|
|
79
79
|
menu: [{
|
|
@@ -93,7 +93,7 @@ registerAction2(class NotebookConfigureLayoutFromEditorTitle extends Action2 {
|
|
|
93
93
|
});
|
|
94
94
|
MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
|
|
95
95
|
submenu: MenuId.NotebookEditorLayoutConfigure,
|
|
96
|
-
title: ( localize2(
|
|
96
|
+
title: ( localize2(11628, "Customize Notebook...")),
|
|
97
97
|
icon: Codicon.gear,
|
|
98
98
|
group: "navigation",
|
|
99
99
|
order: -1,
|
|
@@ -103,8 +103,8 @@ registerAction2(class ToggleLineNumberFromEditorTitle extends Action2 {
|
|
|
103
103
|
constructor() {
|
|
104
104
|
super({
|
|
105
105
|
id: "notebook.toggleLineNumbersFromEditorTitle",
|
|
106
|
-
title: ( localize2(
|
|
107
|
-
shortTitle: ( localize2(
|
|
106
|
+
title: ( localize2(11629, "Toggle Notebook Line Numbers")),
|
|
107
|
+
shortTitle: ( localize2(11630, "Line Numbers")),
|
|
108
108
|
precondition: NOTEBOOK_EDITOR_FOCUSED,
|
|
109
109
|
menu: [{
|
|
110
110
|
id: MenuId.NotebookEditorLayoutConfigure,
|
|
@@ -116,7 +116,7 @@ registerAction2(class ToggleLineNumberFromEditorTitle extends Action2 {
|
|
|
116
116
|
f1: true,
|
|
117
117
|
toggled: {
|
|
118
118
|
condition: ( ContextKeyExpr.notEquals("config.notebook.lineNumbers", "off")),
|
|
119
|
-
title: ( localize(
|
|
119
|
+
title: ( localize(11631, "Line Numbers"))
|
|
120
120
|
}
|
|
121
121
|
});
|
|
122
122
|
}
|
|
@@ -128,7 +128,7 @@ registerAction2(class ToggleCellToolbarPositionFromEditorTitle extends Action2 {
|
|
|
128
128
|
constructor() {
|
|
129
129
|
super({
|
|
130
130
|
id: "notebook.toggleCellToolbarPositionFromEditorTitle",
|
|
131
|
-
title: ( localize2(
|
|
131
|
+
title: ( localize2(11632, "Toggle Cell Toolbar Position")),
|
|
132
132
|
menu: [{
|
|
133
133
|
id: MenuId.NotebookEditorLayoutConfigure,
|
|
134
134
|
group: "notebookLayoutDetails",
|
|
@@ -146,11 +146,11 @@ registerAction2(class ToggleBreadcrumbFromEditorTitle extends Action2 {
|
|
|
146
146
|
constructor() {
|
|
147
147
|
super({
|
|
148
148
|
id: "breadcrumbs.toggleFromEditorTitle",
|
|
149
|
-
title: ( localize2(
|
|
150
|
-
shortTitle: ( localize2(
|
|
149
|
+
title: ( localize2(11633, "Toggle Breadcrumbs")),
|
|
150
|
+
shortTitle: ( localize2(11634, "Breadcrumbs")),
|
|
151
151
|
toggled: {
|
|
152
152
|
condition: ( ContextKeyExpr.equals("config.breadcrumbs.enabled", true)),
|
|
153
|
-
title: ( localize(
|
|
153
|
+
title: ( localize(11635, "Breadcrumbs"))
|
|
154
154
|
},
|
|
155
155
|
menu: [{
|
|
156
156
|
id: MenuId.NotebookEditorLayoutConfigure,
|
|
@@ -169,7 +169,7 @@ registerAction2(class SaveMimeTypeDisplayOrder extends Action2 {
|
|
|
169
169
|
constructor() {
|
|
170
170
|
super({
|
|
171
171
|
id: "notebook.saveMimeTypeOrder",
|
|
172
|
-
title: ( localize2(
|
|
172
|
+
title: ( localize2(11636, "Save Mimetype Display Order")),
|
|
173
173
|
f1: true,
|
|
174
174
|
category: NOTEBOOK_ACTIONS_CATEGORY,
|
|
175
175
|
precondition: NOTEBOOK_IS_ACTIVE_EDITOR
|
|
@@ -179,13 +179,13 @@ registerAction2(class SaveMimeTypeDisplayOrder extends Action2 {
|
|
|
179
179
|
const service = accessor.get(INotebookService);
|
|
180
180
|
const disposables = ( new DisposableStore());
|
|
181
181
|
const qp = disposables.add(accessor.get(IQuickInputService).createQuickPick());
|
|
182
|
-
qp.placeholder = ( localize(
|
|
182
|
+
qp.placeholder = ( localize(11637, "Settings file to save in"));
|
|
183
183
|
qp.items = [{
|
|
184
184
|
target: ConfigurationTarget.USER,
|
|
185
|
-
label: ( localize(
|
|
185
|
+
label: ( localize(11638, "User Settings"))
|
|
186
186
|
}, {
|
|
187
187
|
target: ConfigurationTarget.WORKSPACE,
|
|
188
|
-
label: ( localize(
|
|
188
|
+
label: ( localize(11639, "Workspace Settings"))
|
|
189
189
|
}];
|
|
190
190
|
disposables.add(qp.onDidAccept(() => {
|
|
191
191
|
const target = qp.selectedItems[0]?.target;
|
|
@@ -202,7 +202,7 @@ registerAction2(class NotebookWebviewResetAction extends Action2 {
|
|
|
202
202
|
constructor() {
|
|
203
203
|
super({
|
|
204
204
|
id: "workbench.notebook.layout.webview.reset",
|
|
205
|
-
title: ( localize2(
|
|
205
|
+
title: ( localize2(11640, "Reset Notebook Webview")),
|
|
206
206
|
f1: false,
|
|
207
207
|
category: NOTEBOOK_ACTIONS_CATEGORY
|
|
208
208
|
});
|
|
@@ -232,15 +232,15 @@ registerAction2(class ToggleNotebookStickyScroll extends Action2 {
|
|
|
232
232
|
super({
|
|
233
233
|
id: "notebook.action.toggleNotebookStickyScroll",
|
|
234
234
|
title: {
|
|
235
|
-
...( localize2(
|
|
236
|
-
mnemonicTitle: ( localize(
|
|
235
|
+
...( localize2(11641, "Toggle Notebook Sticky Scroll")),
|
|
236
|
+
mnemonicTitle: ( localize(11642, "&&Sticky Scroll"))
|
|
237
237
|
},
|
|
238
|
-
shortTitle: ( localize2(
|
|
238
|
+
shortTitle: ( localize2(11643, "Sticky Scroll")),
|
|
239
239
|
category: Categories.View,
|
|
240
240
|
toggled: {
|
|
241
241
|
condition: ( ContextKeyExpr.equals("config.notebook.stickyScroll.enabled", true)),
|
|
242
|
-
title: ( localize(
|
|
243
|
-
mnemonicTitle: ( localize(
|
|
242
|
+
title: ( localize(11644, "Sticky Scroll")),
|
|
243
|
+
mnemonicTitle: ( localize(11642, "&&Sticky Scroll"))
|
|
244
244
|
},
|
|
245
245
|
menu: [{
|
|
246
246
|
id: MenuId.CommandPalette
|
package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js
CHANGED
|
@@ -21,7 +21,7 @@ class NotebookIndentUsingTabs extends Action2 {
|
|
|
21
21
|
constructor() {
|
|
22
22
|
super({
|
|
23
23
|
id: NotebookIndentUsingTabs.ID,
|
|
24
|
-
title: ( localize(
|
|
24
|
+
title: ( localize(11645, "Indent Using Tabs")),
|
|
25
25
|
precondition: undefined
|
|
26
26
|
});
|
|
27
27
|
}
|
|
@@ -36,7 +36,7 @@ class NotebookIndentUsingSpaces extends Action2 {
|
|
|
36
36
|
constructor() {
|
|
37
37
|
super({
|
|
38
38
|
id: NotebookIndentUsingSpaces.ID,
|
|
39
|
-
title: ( localize(
|
|
39
|
+
title: ( localize(11646, "Indent Using Spaces")),
|
|
40
40
|
precondition: undefined
|
|
41
41
|
});
|
|
42
42
|
}
|
|
@@ -51,7 +51,7 @@ class NotebookChangeTabDisplaySize extends Action2 {
|
|
|
51
51
|
constructor() {
|
|
52
52
|
super({
|
|
53
53
|
id: NotebookChangeTabDisplaySize.ID,
|
|
54
|
-
title: ( localize(
|
|
54
|
+
title: ( localize(11647, "Change Tab Display Size")),
|
|
55
55
|
precondition: undefined
|
|
56
56
|
});
|
|
57
57
|
}
|
|
@@ -66,7 +66,7 @@ class NotebookIndentationToSpacesAction extends Action2 {
|
|
|
66
66
|
constructor() {
|
|
67
67
|
super({
|
|
68
68
|
id: NotebookIndentationToSpacesAction.ID,
|
|
69
|
-
title: ( localize(
|
|
69
|
+
title: ( localize(11648, "Convert Indentation to Spaces")),
|
|
70
70
|
precondition: undefined
|
|
71
71
|
});
|
|
72
72
|
}
|
|
@@ -81,7 +81,7 @@ class NotebookIndentationToTabsAction extends Action2 {
|
|
|
81
81
|
constructor() {
|
|
82
82
|
super({
|
|
83
83
|
id: NotebookIndentationToTabsAction.ID,
|
|
84
|
-
title: ( localize(
|
|
84
|
+
title: ( localize(11649, "Convert Indentation to Tabs")),
|
|
85
85
|
precondition: undefined
|
|
86
86
|
});
|
|
87
87
|
}
|
|
@@ -114,7 +114,7 @@ function changeNotebookIndentation(accessor, insertSpaces, displaySizeOnly) {
|
|
|
114
114
|
delete initialConfig["editor.insertSpaces"];
|
|
115
115
|
setTimeout(() => {
|
|
116
116
|
quickInputService.pick(picks, {
|
|
117
|
-
placeHolder: ( localize(
|
|
117
|
+
placeHolder: ( localize(11650, "Select Tab Size for Current File"))
|
|
118
118
|
}).then(pick => {
|
|
119
119
|
if (pick) {
|
|
120
120
|
const pickedVal = parseInt(pick.label, 10);
|
|
@@ -165,7 +165,7 @@ function convertNotebookIndentation(accessor, tabsToSpaces) {
|
|
|
165
165
|
}
|
|
166
166
|
const edits = getIndentationEditOperations(textEditorModel, modelOpts.tabSize, tabsToSpaces);
|
|
167
167
|
bulkEditService.apply(edits, {
|
|
168
|
-
label: ( localize(
|
|
168
|
+
label: ( localize(11651, "Convert Indentation")),
|
|
169
169
|
code: "undoredo.convertIndentation"
|
|
170
170
|
});
|
|
171
171
|
}))).then(() => {
|
|
@@ -16,10 +16,10 @@ class NotebookRunSingleCellInSection extends Action2 {
|
|
|
16
16
|
super({
|
|
17
17
|
id: "notebook.section.runSingleCell",
|
|
18
18
|
title: {
|
|
19
|
-
...( localize2(
|
|
20
|
-
mnemonicTitle: ( localize(
|
|
19
|
+
...( localize2(11652, "Run Cell")),
|
|
20
|
+
mnemonicTitle: ( localize(11653, "&&Run Cell"))
|
|
21
21
|
},
|
|
22
|
-
shortTitle: ( localize(
|
|
22
|
+
shortTitle: ( localize(11652, "Run Cell")),
|
|
23
23
|
icon: executeIcon,
|
|
24
24
|
menu: [{
|
|
25
25
|
id: MenuId.NotebookOutlineActionMenu,
|
|
@@ -41,10 +41,10 @@ class NotebookRunCellsInSection extends Action2 {
|
|
|
41
41
|
super({
|
|
42
42
|
id: "notebook.section.runCells",
|
|
43
43
|
title: {
|
|
44
|
-
...( localize2(
|
|
45
|
-
mnemonicTitle: ( localize(
|
|
44
|
+
...( localize2(11654, "Run Cells In Section")),
|
|
45
|
+
mnemonicTitle: ( localize(11655, "&&Run Cells In Section"))
|
|
46
46
|
},
|
|
47
|
-
shortTitle: ( localize(
|
|
47
|
+
shortTitle: ( localize(11654, "Run Cells In Section")),
|
|
48
48
|
icon: executeIcon,
|
|
49
49
|
menu: [{
|
|
50
50
|
id: MenuId.NotebookStickyScrollContext,
|
|
@@ -100,10 +100,10 @@ class NotebookFoldSection extends Action2 {
|
|
|
100
100
|
super({
|
|
101
101
|
id: "notebook.section.foldSection",
|
|
102
102
|
title: {
|
|
103
|
-
...( localize2(
|
|
104
|
-
mnemonicTitle: ( localize(
|
|
103
|
+
...( localize2(11656, "Fold Section")),
|
|
104
|
+
mnemonicTitle: ( localize(11657, "&&Fold Section"))
|
|
105
105
|
},
|
|
106
|
-
shortTitle: ( localize(
|
|
106
|
+
shortTitle: ( localize(11656, "Fold Section")),
|
|
107
107
|
menu: [{
|
|
108
108
|
id: MenuId.NotebookOutlineActionMenu,
|
|
109
109
|
group: "notebookFolding",
|
|
@@ -131,10 +131,10 @@ class NotebookExpandSection extends Action2 {
|
|
|
131
131
|
super({
|
|
132
132
|
id: "notebook.section.expandSection",
|
|
133
133
|
title: {
|
|
134
|
-
...( localize2(
|
|
135
|
-
mnemonicTitle: ( localize(
|
|
134
|
+
...( localize2(11658, "Expand Section")),
|
|
135
|
+
mnemonicTitle: ( localize(11659, "&&Expand Section"))
|
|
136
136
|
},
|
|
137
|
-
shortTitle: ( localize(
|
|
137
|
+
shortTitle: ( localize(11658, "Expand Section")),
|
|
138
138
|
menu: [{
|
|
139
139
|
id: MenuId.NotebookOutlineActionMenu,
|
|
140
140
|
group: "notebookFolding",
|
|
@@ -13,7 +13,7 @@ registerAction2(class OpenVariablesViewAction extends NotebookAction {
|
|
|
13
13
|
constructor() {
|
|
14
14
|
super({
|
|
15
15
|
id: OPEN_VARIABLES_VIEW_COMMAND_ID,
|
|
16
|
-
title: ( localize2(
|
|
16
|
+
title: ( localize2(11660, "Variables")),
|
|
17
17
|
icon: variablesViewIcon,
|
|
18
18
|
menu: [{
|
|
19
19
|
id: MenuId.InteractiveToolbar,
|
|
@@ -29,7 +29,7 @@ registerAction2(class extends Action2 {
|
|
|
29
29
|
super({
|
|
30
30
|
id: "notebook.diff.openFile",
|
|
31
31
|
icon: Codicon.goToFile,
|
|
32
|
-
title: ( localize2(
|
|
32
|
+
title: ( localize2(11672, "Open File")),
|
|
33
33
|
precondition: ( ContextKeyExpr.or(( ActiveEditorContext.isEqualTo(NotebookTextDiffEditor.ID)), ( ActiveEditorContext.isEqualTo(NotebookMultiTextDiffEditor.ID)))),
|
|
34
34
|
menu: [{
|
|
35
35
|
id: MenuId.EditorTitle,
|
|
@@ -57,7 +57,7 @@ registerAction2(class extends Action2 {
|
|
|
57
57
|
constructor() {
|
|
58
58
|
super({
|
|
59
59
|
id: "notebook.diff.cell.toggleCollapseUnchangedRegions",
|
|
60
|
-
title: ( localize2(
|
|
60
|
+
title: ( localize2(11673, "Toggle Collapse Unchanged Regions")),
|
|
61
61
|
icon: Codicon.map,
|
|
62
62
|
toggled: ( ContextKeyExpr.has("config.diffEditor.hideUnchangedRegions.enabled")),
|
|
63
63
|
precondition: ( ActiveEditorContext.isEqualTo(NotebookTextDiffEditor.ID)),
|
|
@@ -79,7 +79,7 @@ registerAction2(class extends Action2 {
|
|
|
79
79
|
super({
|
|
80
80
|
id: "notebook.diff.switchToText",
|
|
81
81
|
icon: openAsTextIcon,
|
|
82
|
-
title: ( localize2(
|
|
82
|
+
title: ( localize2(11674, "Open Text Diff Editor")),
|
|
83
83
|
precondition: ( ContextKeyExpr.or(( ActiveEditorContext.isEqualTo(NotebookTextDiffEditor.ID)), ( ActiveEditorContext.isEqualTo(NotebookMultiTextDiffEditor.ID)))),
|
|
84
84
|
menu: [{
|
|
85
85
|
id: MenuId.EditorTitle,
|
|
@@ -116,7 +116,7 @@ registerAction2(class extends Action2 {
|
|
|
116
116
|
constructor() {
|
|
117
117
|
super({
|
|
118
118
|
id: "notebook.diffEditor.showUnchangedCells",
|
|
119
|
-
title: ( localize2(
|
|
119
|
+
title: ( localize2(11675, "Show Unchanged Cells")),
|
|
120
120
|
icon: Codicon.unfold,
|
|
121
121
|
precondition: ( ContextKeyExpr.and(( ActiveEditorContext.isEqualTo(NotebookMultiTextDiffEditor.ID)), ( ContextKeyExpr.has(NOTEBOOK_DIFF_HAS_UNCHANGED_CELLS.key)))),
|
|
122
122
|
menu: {
|
|
@@ -141,7 +141,7 @@ registerAction2(class extends Action2 {
|
|
|
141
141
|
constructor() {
|
|
142
142
|
super({
|
|
143
143
|
id: "notebook.diffEditor.hideUnchangedCells",
|
|
144
|
-
title: ( localize2(
|
|
144
|
+
title: ( localize2(11676, "Hide Unchanged Cells")),
|
|
145
145
|
icon: Codicon.fold,
|
|
146
146
|
precondition: ( ContextKeyExpr.and(( ActiveEditorContext.isEqualTo(NotebookMultiTextDiffEditor.ID)), ( ContextKeyExpr.has(NOTEBOOK_DIFF_HAS_UNCHANGED_CELLS.key)))),
|
|
147
147
|
menu: {
|
|
@@ -166,7 +166,7 @@ registerAction2(class GoToFileAction extends Action2 {
|
|
|
166
166
|
constructor() {
|
|
167
167
|
super({
|
|
168
168
|
id: "notebook.diffEditor.2.goToCell",
|
|
169
|
-
title: ( localize2(
|
|
169
|
+
title: ( localize2(11677, "Go To Cell")),
|
|
170
170
|
icon: Codicon.goToFile,
|
|
171
171
|
menu: {
|
|
172
172
|
when: ( ContextKeyExpr.and(( ActiveEditorContext.isEqualTo(NotebookMultiTextDiffEditor.ID)), ( ContextKeyExpr.equals(NOTEBOOK_DIFF_ITEM_KIND.key, "Cell")), ( ContextKeyExpr.notEquals(NOTEBOOK_DIFF_ITEM_DIFF_STATE.key, "delete")))),
|
|
@@ -195,7 +195,7 @@ registerAction2(class extends Action2 {
|
|
|
195
195
|
constructor() {
|
|
196
196
|
super({
|
|
197
197
|
id: "notebook.diff.revertMetadata",
|
|
198
|
-
title: ( localize(
|
|
198
|
+
title: ( localize(11678, "Revert Notebook Metadata")),
|
|
199
199
|
icon: revertIcon,
|
|
200
200
|
f1: false,
|
|
201
201
|
menu: {
|
|
@@ -220,7 +220,7 @@ registerAction2(class extends Action2 {
|
|
|
220
220
|
}], true, undefined, () => undefined, undefined, true);
|
|
221
221
|
}
|
|
222
222
|
});
|
|
223
|
-
const revertInput = ( localize(
|
|
223
|
+
const revertInput = ( localize(11679, "Revert Input"));
|
|
224
224
|
registerAction2(class extends Action2 {
|
|
225
225
|
constructor() {
|
|
226
226
|
super({
|
|
@@ -259,7 +259,7 @@ registerAction2(class extends Action2 {
|
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
261
|
});
|
|
262
|
-
const revertOutputs = ( localize(
|
|
262
|
+
const revertOutputs = ( localize(11680, "Revert Outputs"));
|
|
263
263
|
registerAction2(class extends Action2 {
|
|
264
264
|
constructor() {
|
|
265
265
|
super({
|
|
@@ -297,7 +297,7 @@ registerAction2(class extends Action2 {
|
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
299
|
});
|
|
300
|
-
const revertMetadata = ( localize(
|
|
300
|
+
const revertMetadata = ( localize(11681, "Revert Metadata"));
|
|
301
301
|
registerAction2(class extends Action2 {
|
|
302
302
|
constructor() {
|
|
303
303
|
super({
|
|
@@ -381,7 +381,7 @@ registerAction2(class extends Action2 {
|
|
|
381
381
|
constructor() {
|
|
382
382
|
super({
|
|
383
383
|
id: "notebook.diff.cell.switchOutputRenderingStyleToText",
|
|
384
|
-
title: ( localize(
|
|
384
|
+
title: ( localize(11682, "Switch Output Rendering")),
|
|
385
385
|
icon: renderOutputIcon,
|
|
386
386
|
f1: false,
|
|
387
387
|
menu: {
|
|
@@ -401,7 +401,7 @@ registerAction2(class extends Action2 {
|
|
|
401
401
|
constructor() {
|
|
402
402
|
super({
|
|
403
403
|
id: "notebook.diff.cell.revertOutputs",
|
|
404
|
-
title: ( localize(
|
|
404
|
+
title: ( localize(11680, "Revert Outputs")),
|
|
405
405
|
icon: revertIcon,
|
|
406
406
|
f1: false,
|
|
407
407
|
menu: {
|
|
@@ -435,7 +435,7 @@ registerAction2(class extends Action2 {
|
|
|
435
435
|
constructor() {
|
|
436
436
|
super({
|
|
437
437
|
id: "notebook.toggle.diff.cell.ignoreTrimWhitespace",
|
|
438
|
-
title: ( localize(
|
|
438
|
+
title: ( localize(11683, "Show Leading/Trailing Whitespace Differences")),
|
|
439
439
|
icon: toggleWhitespace,
|
|
440
440
|
f1: false,
|
|
441
441
|
menu: {
|
|
@@ -523,19 +523,19 @@ class ToggleRenderAction extends Action2 {
|
|
|
523
523
|
}
|
|
524
524
|
registerAction2(class extends ToggleRenderAction {
|
|
525
525
|
constructor() {
|
|
526
|
-
super("notebook.diff.showOutputs", ( localize2(
|
|
526
|
+
super("notebook.diff.showOutputs", ( localize2(11684, "Show Outputs Differences")), ( ContextKeyExpr.or(( ActiveEditorContext.isEqualTo(NotebookTextDiffEditor.ID)), ( ActiveEditorContext.isEqualTo(NotebookMultiTextDiffEditor.ID)))), ( ContextKeyExpr.notEquals("config.notebook.diff.ignoreOutputs", true)), 2, true, undefined);
|
|
527
527
|
}
|
|
528
528
|
});
|
|
529
529
|
registerAction2(class extends ToggleRenderAction {
|
|
530
530
|
constructor() {
|
|
531
|
-
super("notebook.diff.showMetadata", ( localize2(
|
|
531
|
+
super("notebook.diff.showMetadata", ( localize2(11685, "Show Metadata Differences")), ( ContextKeyExpr.or(( ActiveEditorContext.isEqualTo(NotebookTextDiffEditor.ID)), ( ActiveEditorContext.isEqualTo(NotebookMultiTextDiffEditor.ID)))), ( ContextKeyExpr.notEquals("config.notebook.diff.ignoreMetadata", true)), 1, undefined, true);
|
|
532
532
|
}
|
|
533
533
|
});
|
|
534
534
|
registerAction2(class extends Action2 {
|
|
535
535
|
constructor() {
|
|
536
536
|
super({
|
|
537
537
|
id: "notebook.diff.action.previous",
|
|
538
|
-
title: ( localize(
|
|
538
|
+
title: ( localize(11686, "Show Previous Change")),
|
|
539
539
|
icon: previousChangeIcon,
|
|
540
540
|
f1: false,
|
|
541
541
|
keybinding: {
|
|
@@ -563,7 +563,7 @@ registerAction2(class extends Action2 {
|
|
|
563
563
|
constructor() {
|
|
564
564
|
super({
|
|
565
565
|
id: "notebook.diff.action.next",
|
|
566
|
-
title: ( localize(
|
|
566
|
+
title: ( localize(11687, "Show Next Change")),
|
|
567
567
|
icon: nextChangeIcon,
|
|
568
568
|
f1: false,
|
|
569
569
|
keybinding: {
|
|
@@ -591,7 +591,7 @@ registerAction2(class extends Action2 {
|
|
|
591
591
|
constructor() {
|
|
592
592
|
super({
|
|
593
593
|
id: "notebook.diff.inline.toggle",
|
|
594
|
-
title: ( localize(
|
|
594
|
+
title: ( localize(11688, "Toggle Inline View")),
|
|
595
595
|
menu: {
|
|
596
596
|
id: MenuId.EditorTitle,
|
|
597
597
|
group: "1_diff",
|
|
@@ -617,18 +617,18 @@ registerAction2(class extends Action2 {
|
|
|
617
617
|
"notebook.diff.ignoreMetadata": {
|
|
618
618
|
type: "boolean",
|
|
619
619
|
default: false,
|
|
620
|
-
markdownDescription: ( localize(
|
|
620
|
+
markdownDescription: ( localize(11689, "Hide Metadata Differences"))
|
|
621
621
|
},
|
|
622
622
|
"notebook.diff.ignoreOutputs": {
|
|
623
623
|
type: "boolean",
|
|
624
624
|
default: false,
|
|
625
|
-
markdownDescription: ( localize(
|
|
625
|
+
markdownDescription: ( localize(11690, "Hide Outputs Differences"))
|
|
626
626
|
},
|
|
627
627
|
"notebook.diff.experimental.toggleInline": {
|
|
628
628
|
type: "boolean",
|
|
629
629
|
default: typeof product.quality === "string" && product.quality !== "stable",
|
|
630
630
|
markdownDescription: ( localize(
|
|
631
|
-
|
|
631
|
+
11691,
|
|
632
632
|
"Enable the command to toggle the experimental notebook inline diff editor."
|
|
633
633
|
))
|
|
634
634
|
}
|
|
@@ -254,15 +254,15 @@ let WorkbenchUIElementFactory = class WorkbenchUIElementFactory {
|
|
|
254
254
|
const notebookDocument = uri.scheme === Schemas.vscodeNotebookCell ? that.notebookDocumentService.getNotebook(uri) : undefined;
|
|
255
255
|
const cellIndex = Schemas.vscodeNotebookCell ? that.notebookDocumentService.getNotebook(uri)?.getCellIndex(uri) : undefined;
|
|
256
256
|
if (notebookDocument && cellIndex !== undefined) {
|
|
257
|
-
name = ( localize(
|
|
257
|
+
name = ( localize(11699, "Cell {0}", `${cellIndex + 1}`));
|
|
258
258
|
const nb = notebookDocument ? that.notebookService.getNotebookTextModel(notebookDocument?.uri) : undefined;
|
|
259
259
|
const cellLanguage = nb && cellIndex !== undefined ? nb.cells[cellIndex].language : undefined;
|
|
260
260
|
extraClasses = cellLanguage ? getIconClassesForLanguageId(cellLanguage) : undefined;
|
|
261
261
|
}
|
|
262
262
|
} else if (uri.scheme === Schemas.vscodeNotebookCellMetadata || uri.scheme === Schemas.vscodeNotebookCellMetadataDiff) {
|
|
263
|
-
description = ( localize(
|
|
263
|
+
description = ( localize(11700, "Metadata"));
|
|
264
264
|
} else if (uri.scheme === Schemas.vscodeNotebookCellOutput || uri.scheme === Schemas.vscodeNotebookCellOutputDiff) {
|
|
265
|
-
description = ( localize(
|
|
265
|
+
description = ( localize(11701, "Output"));
|
|
266
266
|
}
|
|
267
267
|
label.element.setResource({
|
|
268
268
|
name,
|