@codingame/monaco-vscode-notebook-service-override 7.1.1 → 8.0.1
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/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/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/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 +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/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/contrib/notebook/browser/notebookExtensionPoint.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-notebook-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.1",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -29,6 +29,6 @@
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"vscode": "npm:@codingame/monaco-vscode-api@
|
|
32
|
+
"vscode": "npm:@codingame/monaco-vscode-api@8.0.1"
|
|
33
33
|
}
|
|
34
34
|
}
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js
CHANGED
|
@@ -25,7 +25,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
25
25
|
constructor() {
|
|
26
26
|
super({
|
|
27
27
|
id: MOVE_CELL_UP_COMMAND_ID,
|
|
28
|
-
title: ( localize2(
|
|
28
|
+
title: ( localize2(7991, "Move Cell Up")),
|
|
29
29
|
icon: moveUpIcon,
|
|
30
30
|
keybinding: {
|
|
31
31
|
primary: KeyMod.Alt | KeyCode.UpArrow,
|
|
@@ -48,7 +48,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
48
48
|
constructor() {
|
|
49
49
|
super({
|
|
50
50
|
id: MOVE_CELL_DOWN_COMMAND_ID,
|
|
51
|
-
title: ( localize2(
|
|
51
|
+
title: ( localize2(7992, "Move Cell Down")),
|
|
52
52
|
icon: moveDownIcon,
|
|
53
53
|
keybinding: {
|
|
54
54
|
primary: KeyMod.Alt | KeyCode.DownArrow,
|
|
@@ -71,7 +71,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
71
71
|
constructor() {
|
|
72
72
|
super({
|
|
73
73
|
id: COPY_CELL_UP_COMMAND_ID,
|
|
74
|
-
title: ( localize2(
|
|
74
|
+
title: ( localize2(7993, "Copy Cell Up")),
|
|
75
75
|
keybinding: {
|
|
76
76
|
primary: KeyMod.Alt | KeyMod.Shift | KeyCode.UpArrow,
|
|
77
77
|
when: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, (InputFocusedContext.toNegated())))),
|
|
@@ -87,7 +87,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
87
87
|
constructor() {
|
|
88
88
|
super({
|
|
89
89
|
id: COPY_CELL_DOWN_COMMAND_ID,
|
|
90
|
-
title: ( localize2(
|
|
90
|
+
title: ( localize2(7994, "Copy Cell Down")),
|
|
91
91
|
keybinding: {
|
|
92
92
|
primary: KeyMod.Alt | KeyMod.Shift | KeyCode.DownArrow,
|
|
93
93
|
when: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, (InputFocusedContext.toNegated())))),
|
|
@@ -113,7 +113,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
113
113
|
constructor() {
|
|
114
114
|
super({
|
|
115
115
|
id: SPLIT_CELL_COMMAND_ID,
|
|
116
|
-
title: ( localize2(
|
|
116
|
+
title: ( localize2(7995, "Split Cell")),
|
|
117
117
|
menu: {
|
|
118
118
|
id: MenuId.NotebookCellTitle,
|
|
119
119
|
when: ( (ContextKeyExpr.and(
|
|
@@ -183,7 +183,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
183
183
|
constructor() {
|
|
184
184
|
super({
|
|
185
185
|
id: JOIN_CELL_ABOVE_COMMAND_ID,
|
|
186
|
-
title: ( localize2(
|
|
186
|
+
title: ( localize2(7996, "Join With Previous Cell")),
|
|
187
187
|
keybinding: {
|
|
188
188
|
when: NOTEBOOK_EDITOR_FOCUSED,
|
|
189
189
|
primary: KeyMod.WinCtrl | KeyMod.Alt | KeyMod.Shift | KeyCode.KeyJ,
|
|
@@ -206,7 +206,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
206
206
|
constructor() {
|
|
207
207
|
super({
|
|
208
208
|
id: JOIN_CELL_BELOW_COMMAND_ID,
|
|
209
|
-
title: ( localize2(
|
|
209
|
+
title: ( localize2(7997, "Join With Next Cell")),
|
|
210
210
|
keybinding: {
|
|
211
211
|
when: NOTEBOOK_EDITOR_FOCUSED,
|
|
212
212
|
primary: KeyMod.WinCtrl | KeyMod.Alt | KeyCode.KeyJ,
|
|
@@ -229,7 +229,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
229
229
|
constructor() {
|
|
230
230
|
super({
|
|
231
231
|
id: JOIN_SELECTED_CELLS_COMMAND_ID,
|
|
232
|
-
title: ( localize2(
|
|
232
|
+
title: ( localize2(7998, "Join Selected Cells")),
|
|
233
233
|
menu: {
|
|
234
234
|
id: MenuId.NotebookCellTitle,
|
|
235
235
|
when: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EDITABLE))),
|
|
@@ -250,7 +250,7 @@ registerAction2(class ChangeCellToCodeAction extends NotebookMultiCellAction {
|
|
|
250
250
|
constructor() {
|
|
251
251
|
super({
|
|
252
252
|
id: CHANGE_CELL_TO_CODE_COMMAND_ID,
|
|
253
|
-
title: ( localize2(
|
|
253
|
+
title: ( localize2(7999, "Change Cell to Code")),
|
|
254
254
|
keybinding: {
|
|
255
255
|
when: ( (ContextKeyExpr.and(
|
|
256
256
|
NOTEBOOK_EDITOR_FOCUSED,
|
|
@@ -284,7 +284,7 @@ registerAction2(class ChangeCellToMarkdownAction extends NotebookMultiCellAction
|
|
|
284
284
|
constructor() {
|
|
285
285
|
super({
|
|
286
286
|
id: CHANGE_CELL_TO_MARKDOWN_COMMAND_ID,
|
|
287
|
-
title: ( localize2(
|
|
287
|
+
title: ( localize2(8000, "Change Cell to Markdown")),
|
|
288
288
|
keybinding: {
|
|
289
289
|
when: ( (ContextKeyExpr.and(
|
|
290
290
|
NOTEBOOK_EDITOR_FOCUSED,
|
|
@@ -326,7 +326,7 @@ registerAction2(class CollapseCellInputAction extends NotebookMultiCellAction {
|
|
|
326
326
|
constructor() {
|
|
327
327
|
super({
|
|
328
328
|
id: COLLAPSE_CELL_INPUT_COMMAND_ID,
|
|
329
|
-
title: ( localize2(
|
|
329
|
+
title: ( localize2(8001, "Collapse Cell Input")),
|
|
330
330
|
keybinding: {
|
|
331
331
|
when: ( (ContextKeyExpr.and(
|
|
332
332
|
NOTEBOOK_CELL_LIST_FOCUSED,
|
|
@@ -354,7 +354,7 @@ registerAction2(class ExpandCellInputAction extends NotebookMultiCellAction {
|
|
|
354
354
|
constructor() {
|
|
355
355
|
super({
|
|
356
356
|
id: EXPAND_CELL_INPUT_COMMAND_ID,
|
|
357
|
-
title: ( localize2(
|
|
357
|
+
title: ( localize2(8002, "Expand Cell Input")),
|
|
358
358
|
keybinding: {
|
|
359
359
|
when: ( (ContextKeyExpr.and(NOTEBOOK_CELL_LIST_FOCUSED, NOTEBOOK_CELL_INPUT_COLLAPSED))),
|
|
360
360
|
primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KeyK, KeyMod.CtrlCmd | KeyCode.KeyC),
|
|
@@ -378,7 +378,7 @@ registerAction2(class CollapseCellOutputAction extends NotebookMultiCellAction {
|
|
|
378
378
|
constructor() {
|
|
379
379
|
super({
|
|
380
380
|
id: COLLAPSE_CELL_OUTPUT_COMMAND_ID,
|
|
381
|
-
title: ( localize2(
|
|
381
|
+
title: ( localize2(8003, "Collapse Cell Output")),
|
|
382
382
|
keybinding: {
|
|
383
383
|
when: ( (ContextKeyExpr.and(
|
|
384
384
|
NOTEBOOK_CELL_LIST_FOCUSED,
|
|
@@ -404,7 +404,7 @@ registerAction2(class ExpandCellOuputAction extends NotebookMultiCellAction {
|
|
|
404
404
|
constructor() {
|
|
405
405
|
super({
|
|
406
406
|
id: EXPAND_CELL_OUTPUT_COMMAND_ID,
|
|
407
|
-
title: ( localize2(
|
|
407
|
+
title: ( localize2(8004, "Expand Cell Output")),
|
|
408
408
|
keybinding: {
|
|
409
409
|
when: ( (ContextKeyExpr.and(NOTEBOOK_CELL_LIST_FOCUSED, NOTEBOOK_CELL_OUTPUT_COLLAPSED))),
|
|
410
410
|
primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KeyK, KeyCode.KeyT),
|
|
@@ -426,9 +426,9 @@ registerAction2(class extends NotebookMultiCellAction {
|
|
|
426
426
|
super({
|
|
427
427
|
id: TOGGLE_CELL_OUTPUTS_COMMAND_ID,
|
|
428
428
|
precondition: NOTEBOOK_CELL_LIST_FOCUSED,
|
|
429
|
-
title: ( localize2(
|
|
429
|
+
title: ( localize2(8005, "Toggle Outputs")),
|
|
430
430
|
metadata: {
|
|
431
|
-
description: ( localize(
|
|
431
|
+
description: ( localize(8005, "Toggle Outputs")),
|
|
432
432
|
args: cellExecutionArgs
|
|
433
433
|
}
|
|
434
434
|
});
|
|
@@ -453,7 +453,7 @@ registerAction2(class CollapseAllCellInputsAction extends NotebookMultiCellActio
|
|
|
453
453
|
constructor() {
|
|
454
454
|
super({
|
|
455
455
|
id: COLLAPSE_ALL_CELL_INPUTS_COMMAND_ID,
|
|
456
|
-
title: ( localize2(
|
|
456
|
+
title: ( localize2(8006, "Collapse All Cell Inputs")),
|
|
457
457
|
f1: true,
|
|
458
458
|
});
|
|
459
459
|
}
|
|
@@ -465,7 +465,7 @@ registerAction2(class ExpandAllCellInputsAction extends NotebookMultiCellAction
|
|
|
465
465
|
constructor() {
|
|
466
466
|
super({
|
|
467
467
|
id: EXPAND_ALL_CELL_INPUTS_COMMAND_ID,
|
|
468
|
-
title: ( localize2(
|
|
468
|
+
title: ( localize2(8007, "Expand All Cell Inputs")),
|
|
469
469
|
f1: true
|
|
470
470
|
});
|
|
471
471
|
}
|
|
@@ -477,7 +477,7 @@ registerAction2(class CollapseAllCellOutputsAction extends NotebookMultiCellActi
|
|
|
477
477
|
constructor() {
|
|
478
478
|
super({
|
|
479
479
|
id: COLLAPSE_ALL_CELL_OUTPUTS_COMMAND_ID,
|
|
480
|
-
title: ( localize2(
|
|
480
|
+
title: ( localize2(8008, "Collapse All Cell Outputs")),
|
|
481
481
|
f1: true,
|
|
482
482
|
});
|
|
483
483
|
}
|
|
@@ -489,7 +489,7 @@ registerAction2(class ExpandAllCellOutputsAction extends NotebookMultiCellAction
|
|
|
489
489
|
constructor() {
|
|
490
490
|
super({
|
|
491
491
|
id: EXPAND_ALL_CELL_OUTPUTS_COMMAND_ID,
|
|
492
|
-
title: ( localize2(
|
|
492
|
+
title: ( localize2(8009, "Expand All Cell Outputs")),
|
|
493
493
|
f1: true
|
|
494
494
|
});
|
|
495
495
|
}
|
|
@@ -501,7 +501,7 @@ registerAction2(class ToggleCellOutputScrolling extends NotebookMultiCellAction
|
|
|
501
501
|
constructor() {
|
|
502
502
|
super({
|
|
503
503
|
id: TOGGLE_CELL_OUTPUT_SCROLLING,
|
|
504
|
-
title: ( localize2(
|
|
504
|
+
title: ( localize2(8010, "Toggle Scroll Cell Output")),
|
|
505
505
|
keybinding: {
|
|
506
506
|
when: ( (ContextKeyExpr.and(
|
|
507
507
|
NOTEBOOK_CELL_LIST_FOCUSED,
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js
CHANGED
|
@@ -40,7 +40,7 @@ let CellStatusBarLanguagePickerProvider = class CellStatusBarLanguagePickerProvi
|
|
|
40
40
|
}
|
|
41
41
|
else {
|
|
42
42
|
const searchTooltip = ( localize(
|
|
43
|
-
|
|
43
|
+
7973,
|
|
44
44
|
"Unknown cell language. Click to search for '{0}' extensions",
|
|
45
45
|
cell.language
|
|
46
46
|
));
|
|
@@ -56,7 +56,7 @@ let CellStatusBarLanguagePickerProvider = class CellStatusBarLanguagePickerProvi
|
|
|
56
56
|
statusBarItems.push({
|
|
57
57
|
text: displayLanguage,
|
|
58
58
|
command: CHANGE_CELL_LANGUAGE,
|
|
59
|
-
tooltip: ( localize(
|
|
59
|
+
tooltip: ( localize(7974, "Select Cell Language Mode")),
|
|
60
60
|
alignment: CellStatusbarAlignment.Right,
|
|
61
61
|
priority: -Number.MAX_SAFE_INTEGER
|
|
62
62
|
});
|
|
@@ -120,7 +120,7 @@ let CellStatusBarLanguageDetectionProvider = class CellStatusBarLanguageDetectio
|
|
|
120
120
|
const items = [];
|
|
121
121
|
if (cached.guess && currentLanguageId !== cached.guess) {
|
|
122
122
|
const detectedName = this._languageService.getLanguageName(cached.guess) || cached.guess;
|
|
123
|
-
let tooltip = ( localize(
|
|
123
|
+
let tooltip = ( localize(7975, "Accept Detected Language: {0}", detectedName));
|
|
124
124
|
const keybinding = this._keybindingService.lookupKeybinding(DETECT_CELL_LANGUAGE);
|
|
125
125
|
const label = keybinding?.getLabel();
|
|
126
126
|
if (label) {
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js
CHANGED
|
@@ -349,7 +349,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
349
349
|
constructor() {
|
|
350
350
|
super({
|
|
351
351
|
id: COPY_CELL_COMMAND_ID,
|
|
352
|
-
title: ( localize(
|
|
352
|
+
title: ( localize(7926, "Copy Cell")),
|
|
353
353
|
menu: {
|
|
354
354
|
id: MenuId.NotebookCellTitle,
|
|
355
355
|
when: NOTEBOOK_EDITOR_FOCUSED,
|
|
@@ -372,7 +372,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
372
372
|
constructor() {
|
|
373
373
|
super({
|
|
374
374
|
id: CUT_CELL_COMMAND_ID,
|
|
375
|
-
title: ( localize(
|
|
375
|
+
title: ( localize(7927, "Cut Cell")),
|
|
376
376
|
menu: {
|
|
377
377
|
id: MenuId.NotebookCellTitle,
|
|
378
378
|
when: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_EDITABLE))),
|
|
@@ -395,7 +395,7 @@ registerAction2(class extends NotebookAction {
|
|
|
395
395
|
constructor() {
|
|
396
396
|
super({
|
|
397
397
|
id: PASTE_CELL_COMMAND_ID,
|
|
398
|
-
title: ( localize(
|
|
398
|
+
title: ( localize(7928, "Paste Cell")),
|
|
399
399
|
menu: {
|
|
400
400
|
id: MenuId.NotebookCellTitle,
|
|
401
401
|
when: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EDITABLE))),
|
|
@@ -427,7 +427,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
427
427
|
constructor() {
|
|
428
428
|
super({
|
|
429
429
|
id: PASTE_CELL_ABOVE_COMMAND_ID,
|
|
430
|
-
title: ( localize(
|
|
430
|
+
title: ( localize(7929, "Paste Cell Above")),
|
|
431
431
|
keybinding: {
|
|
432
432
|
when: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ContextKeyExpr.not(InputFocusedContextKey)))),
|
|
433
433
|
primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyV,
|
|
@@ -471,7 +471,7 @@ registerAction2(class extends Action2 {
|
|
|
471
471
|
constructor() {
|
|
472
472
|
super({
|
|
473
473
|
id: 'workbench.action.toggleNotebookClipboardLog',
|
|
474
|
-
title: ( localize2(
|
|
474
|
+
title: ( localize2(7930, 'Toggle Notebook Clipboard Troubleshooting')),
|
|
475
475
|
category: Categories.Developer,
|
|
476
476
|
f1: true
|
|
477
477
|
});
|
|
@@ -488,7 +488,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
488
488
|
constructor() {
|
|
489
489
|
super({
|
|
490
490
|
id: 'notebook.cell.output.selectAll',
|
|
491
|
-
title: ( localize(
|
|
491
|
+
title: ( localize(7931, "Select All")),
|
|
492
492
|
keybinding: {
|
|
493
493
|
primary: KeyMod.CtrlCmd | KeyCode.KeyA,
|
|
494
494
|
when: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_OUTPUT_FOCUSED))),
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js
CHANGED
|
@@ -110,19 +110,19 @@ let KernelStatus = class KernelStatus extends Disposable {
|
|
|
110
110
|
}
|
|
111
111
|
const tooltip = kernel.description ?? kernel.detail ?? kernel.label;
|
|
112
112
|
this._kernelInfoElement.add(this._statusbarService.addEntry({
|
|
113
|
-
name: ( localize(
|
|
113
|
+
name: ( localize(7982, "Notebook Kernel Info")),
|
|
114
114
|
text: `$(notebook-kernel-select) ${kernel.label}`,
|
|
115
115
|
ariaLabel: kernel.label,
|
|
116
|
-
tooltip: isSuggested ? ( localize(
|
|
116
|
+
tooltip: isSuggested ? ( localize(7983, "{0} (suggestion)", tooltip)) : tooltip,
|
|
117
117
|
command: SELECT_KERNEL_ID,
|
|
118
118
|
}, SELECT_KERNEL_ID, StatusbarAlignment.RIGHT, 10));
|
|
119
119
|
this._kernelInfoElement.add(kernel.onDidChange(() => this._showKernelStatus(notebook)));
|
|
120
120
|
}
|
|
121
121
|
else {
|
|
122
122
|
this._kernelInfoElement.add(this._statusbarService.addEntry({
|
|
123
|
-
name: ( localize(
|
|
124
|
-
text: ( localize(
|
|
125
|
-
ariaLabel: ( localize(
|
|
123
|
+
name: ( localize(7984, "Notebook Kernel Selection")),
|
|
124
|
+
text: ( localize(7985, "Select Kernel")),
|
|
125
|
+
ariaLabel: ( localize(7985, "Select Kernel")),
|
|
126
126
|
command: SELECT_KERNEL_ID,
|
|
127
127
|
kind: 'prominent'
|
|
128
128
|
}, SELECT_KERNEL_ID, StatusbarAlignment.RIGHT, 10));
|
|
@@ -167,7 +167,7 @@ let ActiveCellStatus = class ActiveCellStatus extends Disposable {
|
|
|
167
167
|
return;
|
|
168
168
|
}
|
|
169
169
|
const entry = {
|
|
170
|
-
name: ( localize(
|
|
170
|
+
name: ( localize(7986, "Notebook Editor Selections")),
|
|
171
171
|
text: newText,
|
|
172
172
|
ariaLabel: newText,
|
|
173
173
|
command: CENTER_ACTIVE_CELL
|
|
@@ -191,8 +191,8 @@ let ActiveCellStatus = class ActiveCellStatus extends Disposable {
|
|
|
191
191
|
const numSelected = editor.getSelections().reduce((prev, range) => prev + (range.end - range.start), 0);
|
|
192
192
|
const totalCells = editor.getLength();
|
|
193
193
|
return numSelected > 1 ?
|
|
194
|
-
( localize(
|
|
195
|
-
( localize(
|
|
194
|
+
( localize(7987, "Cell {0} ({1} selected)", idxFocused, numSelected)) :
|
|
195
|
+
( localize(7988, "Cell {0} of {1}", idxFocused, totalCells));
|
|
196
196
|
}
|
|
197
197
|
};
|
|
198
198
|
ActiveCellStatus = ( (__decorate([
|
|
@@ -251,10 +251,10 @@ let NotebookIndentationStatus = class NotebookIndentationStatus extends Disposab
|
|
|
251
251
|
return;
|
|
252
252
|
}
|
|
253
253
|
const entry = {
|
|
254
|
-
name: ( localize(
|
|
254
|
+
name: ( localize(7989, "Notebook Indentation")),
|
|
255
255
|
text: newText,
|
|
256
256
|
ariaLabel: newText,
|
|
257
|
-
tooltip: ( localize(
|
|
257
|
+
tooltip: ( localize(7990, "Select Indentation")),
|
|
258
258
|
command: SELECT_NOTEBOOK_INDENTATION_ID
|
|
259
259
|
};
|
|
260
260
|
if (!this._accessor.value) {
|
|
@@ -23,7 +23,7 @@ registerAction2(class extends Action2 {
|
|
|
23
23
|
constructor() {
|
|
24
24
|
super({
|
|
25
25
|
id: 'notebook.hideFind',
|
|
26
|
-
title: ( localize2(
|
|
26
|
+
title: ( localize2(7932, 'Hide Find in Notebook')),
|
|
27
27
|
keybinding: {
|
|
28
28
|
when: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, KEYBINDING_CONTEXT_NOTEBOOK_FIND_WIDGET_FOCUSED))),
|
|
29
29
|
primary: KeyCode.Escape,
|
|
@@ -46,7 +46,7 @@ registerAction2(class extends NotebookMultiCellAction {
|
|
|
46
46
|
constructor() {
|
|
47
47
|
super({
|
|
48
48
|
id: 'notebook.find',
|
|
49
|
-
title: ( localize2(
|
|
49
|
+
title: ( localize2(7933, 'Find in Notebook')),
|
|
50
50
|
keybinding: {
|
|
51
51
|
when: ( (ContextKeyExpr.and(
|
|
52
52
|
NOTEBOOK_EDITOR_FOCUSED,
|
|
@@ -32,7 +32,7 @@ registerAction2(class extends Action2 {
|
|
|
32
32
|
constructor() {
|
|
33
33
|
super({
|
|
34
34
|
id: 'notebook.format',
|
|
35
|
-
title: ( localize2(
|
|
35
|
+
title: ( localize2(7934, 'Format Notebook')),
|
|
36
36
|
category: NOTEBOOK_ACTIONS_CATEGORY,
|
|
37
37
|
precondition: ( (ContextKeyExpr.and(NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_EDITOR_EDITABLE))),
|
|
38
38
|
keybinding: {
|
|
@@ -83,7 +83,7 @@ registerAction2(class extends Action2 {
|
|
|
83
83
|
}
|
|
84
84
|
return [];
|
|
85
85
|
}))));
|
|
86
|
-
await bulkEditService.apply( allCellEdits.flat(), { label: ( localize(
|
|
86
|
+
await bulkEditService.apply( allCellEdits.flat(), { label: ( localize(7935, "Format Notebook")), code: 'undoredo.formatNotebook', });
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
finally {
|
|
@@ -95,7 +95,7 @@ registerEditorAction(class FormatCellAction extends EditorAction {
|
|
|
95
95
|
constructor() {
|
|
96
96
|
super({
|
|
97
97
|
id: 'notebook.formatCell',
|
|
98
|
-
label: ( localize(
|
|
98
|
+
label: ( localize(7936, "Format Cell")),
|
|
99
99
|
alias: 'Format Cell',
|
|
100
100
|
precondition: ( (ContextKeyExpr.and(
|
|
101
101
|
NOTEBOOK_IS_ACTIVE_EDITOR,
|
|
@@ -167,7 +167,7 @@ let FormatOnCellExecutionParticipant = class FormatOnCellExecutionParticipant {
|
|
|
167
167
|
}
|
|
168
168
|
return [];
|
|
169
169
|
}))));
|
|
170
|
-
await this.bulkEditService.apply( allCellEdits.flat(), { label: ( localize(
|
|
170
|
+
await this.bulkEditService.apply( allCellEdits.flat(), { label: ( localize(7937, "Format Cells")), code: 'undoredo.notebooks.onWillExecuteFormat', });
|
|
171
171
|
}
|
|
172
172
|
finally {
|
|
173
173
|
disposable.dispose();
|
|
@@ -65,7 +65,7 @@ registerAction2(class NotebookClearNotebookLayoutAction extends Action2 {
|
|
|
65
65
|
constructor() {
|
|
66
66
|
super({
|
|
67
67
|
id: 'workbench.notebook.layout.gettingStarted',
|
|
68
|
-
title: ( localize2(
|
|
68
|
+
title: ( localize2(7948, "Reset notebook getting started")),
|
|
69
69
|
f1: true,
|
|
70
70
|
precondition: ( (ContextKeyExpr.equals(`config.${NotebookSetting.openGettingStarted}`, true))),
|
|
71
71
|
category: Categories.Developer,
|
|
@@ -9,7 +9,7 @@ class ToggleCellToolbarPositionAction extends Action2 {
|
|
|
9
9
|
constructor() {
|
|
10
10
|
super({
|
|
11
11
|
id: TOGGLE_CELL_TOOLBAR_POSITION,
|
|
12
|
-
title: ( localize2(
|
|
12
|
+
title: ( localize2(7949, 'Toggle Cell Toolbar Position')),
|
|
13
13
|
menu: [{
|
|
14
14
|
id: MenuId.NotebookCellTitle,
|
|
15
15
|
group: 'View',
|
|
@@ -33,7 +33,7 @@ registerAction2(class extends Action2 {
|
|
|
33
33
|
super({
|
|
34
34
|
id: 'notebook.cell.nullAction',
|
|
35
35
|
title: ( localize(
|
|
36
|
-
|
|
36
|
+
7950,
|
|
37
37
|
"Keypresses that should be handled by the focused element in the cell output."
|
|
38
38
|
)),
|
|
39
39
|
keybinding: [{
|
|
@@ -56,7 +56,7 @@ registerAction2(class FocusNextCellAction extends NotebookCellAction {
|
|
|
56
56
|
constructor() {
|
|
57
57
|
super({
|
|
58
58
|
id: NOTEBOOK_FOCUS_NEXT_EDITOR,
|
|
59
|
-
title: ( localize(
|
|
59
|
+
title: ( localize(7951, 'Focus Next Cell Editor')),
|
|
60
60
|
keybinding: [
|
|
61
61
|
{
|
|
62
62
|
when: ( (ContextKeyExpr.and(
|
|
@@ -131,7 +131,7 @@ registerAction2(class FocusPreviousCellAction extends NotebookCellAction {
|
|
|
131
131
|
constructor() {
|
|
132
132
|
super({
|
|
133
133
|
id: NOTEBOOK_FOCUS_PREVIOUS_EDITOR,
|
|
134
|
-
title: ( localize(
|
|
134
|
+
title: ( localize(7952, 'Focus Previous Cell Editor')),
|
|
135
135
|
keybinding: [
|
|
136
136
|
{
|
|
137
137
|
when: ( (ContextKeyExpr.and(
|
|
@@ -197,7 +197,7 @@ registerAction2(class extends NotebookAction {
|
|
|
197
197
|
constructor() {
|
|
198
198
|
super({
|
|
199
199
|
id: NOTEBOOK_FOCUS_TOP,
|
|
200
|
-
title: ( localize(
|
|
200
|
+
title: ( localize(7953, 'Focus First Cell')),
|
|
201
201
|
keybinding: [
|
|
202
202
|
{
|
|
203
203
|
when: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ContextKeyExpr.not(InputFocusedContextKey)))),
|
|
@@ -229,7 +229,7 @@ registerAction2(class extends NotebookAction {
|
|
|
229
229
|
constructor() {
|
|
230
230
|
super({
|
|
231
231
|
id: NOTEBOOK_FOCUS_BOTTOM,
|
|
232
|
-
title: ( localize(
|
|
232
|
+
title: ( localize(7954, 'Focus Last Cell')),
|
|
233
233
|
keybinding: [
|
|
234
234
|
{
|
|
235
235
|
when: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ContextKeyExpr.not(InputFocusedContextKey)))),
|
|
@@ -266,7 +266,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
266
266
|
constructor() {
|
|
267
267
|
super({
|
|
268
268
|
id: FOCUS_IN_OUTPUT_COMMAND_ID,
|
|
269
|
-
title: ( localize(
|
|
269
|
+
title: ( localize(7955, 'Focus In Active Cell Output')),
|
|
270
270
|
keybinding: {
|
|
271
271
|
when: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_CELL_HAS_OUTPUTS))),
|
|
272
272
|
primary: KeyMod.CtrlCmd | KeyCode.DownArrow,
|
|
@@ -285,7 +285,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
285
285
|
constructor() {
|
|
286
286
|
super({
|
|
287
287
|
id: FOCUS_OUT_OUTPUT_COMMAND_ID,
|
|
288
|
-
title: ( localize(
|
|
288
|
+
title: ( localize(7956, 'Focus Out Active Cell Output')),
|
|
289
289
|
keybinding: {
|
|
290
290
|
when: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_OUTPUT_FOCUSED))),
|
|
291
291
|
primary: KeyMod.CtrlCmd | KeyCode.UpArrow,
|
|
@@ -304,7 +304,7 @@ registerAction2(class CenterActiveCellAction extends NotebookCellAction {
|
|
|
304
304
|
constructor() {
|
|
305
305
|
super({
|
|
306
306
|
id: CENTER_ACTIVE_CELL,
|
|
307
|
-
title: ( localize(
|
|
307
|
+
title: ( localize(7957, "Center Active Cell")),
|
|
308
308
|
keybinding: {
|
|
309
309
|
when: NOTEBOOK_EDITOR_FOCUSED,
|
|
310
310
|
primary: KeyMod.CtrlCmd | KeyCode.KeyL,
|
|
@@ -323,7 +323,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
323
323
|
constructor() {
|
|
324
324
|
super({
|
|
325
325
|
id: NOTEBOOK_CURSOR_PAGEUP_COMMAND_ID,
|
|
326
|
-
title: ( localize(
|
|
326
|
+
title: ( localize(7958, "Cell Cursor Page Up")),
|
|
327
327
|
keybinding: [
|
|
328
328
|
{
|
|
329
329
|
when: ( (ContextKeyExpr.and(
|
|
@@ -345,7 +345,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
345
345
|
constructor() {
|
|
346
346
|
super({
|
|
347
347
|
id: NOTEBOOK_CURSOR_PAGEUP_SELECT_COMMAND_ID,
|
|
348
|
-
title: ( localize(
|
|
348
|
+
title: ( localize(7959, "Cell Cursor Page Up Select")),
|
|
349
349
|
keybinding: [
|
|
350
350
|
{
|
|
351
351
|
when: ( (ContextKeyExpr.and(
|
|
@@ -368,7 +368,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
368
368
|
constructor() {
|
|
369
369
|
super({
|
|
370
370
|
id: NOTEBOOK_CURSOR_PAGEDOWN_COMMAND_ID,
|
|
371
|
-
title: ( localize(
|
|
371
|
+
title: ( localize(7960, "Cell Cursor Page Down")),
|
|
372
372
|
keybinding: [
|
|
373
373
|
{
|
|
374
374
|
when: ( (ContextKeyExpr.and(
|
|
@@ -390,7 +390,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
390
390
|
constructor() {
|
|
391
391
|
super({
|
|
392
392
|
id: NOTEBOOK_CURSOR_PAGEDOWN_SELECT_COMMAND_ID,
|
|
393
|
-
title: ( localize(
|
|
393
|
+
title: ( localize(7961, "Cell Cursor Page Down Select")),
|
|
394
394
|
keybinding: [
|
|
395
395
|
{
|
|
396
396
|
when: ( (ContextKeyExpr.and(
|
|
@@ -424,7 +424,7 @@ function getPageSize(context) {
|
|
|
424
424
|
type: 'boolean',
|
|
425
425
|
default: true,
|
|
426
426
|
markdownDescription: ( localize(
|
|
427
|
-
|
|
427
|
+
7962,
|
|
428
428
|
"When enabled cursor can navigate to the next/previous cell when the current cursor in the cell editor is at the first/last line."
|
|
429
429
|
))
|
|
430
430
|
}
|
|
@@ -66,7 +66,7 @@ let NotebookVariables = class NotebookVariables extends Disposable {
|
|
|
66
66
|
if (debugViewContainer) {
|
|
67
67
|
const viewsRegistry = ( (Registry.as(Extensions.ViewsRegistry)));
|
|
68
68
|
const viewDescriptor = {
|
|
69
|
-
id: 'NOTEBOOK_VARIABLES', name: ( localize2(
|
|
69
|
+
id: 'NOTEBOOK_VARIABLES', name: ( localize2(8027, "Notebook Variables")),
|
|
70
70
|
containerIcon: variablesViewIcon, ctorDescriptor: ( (new SyncDescriptor(NotebookVariablesView))),
|
|
71
71
|
order: 50, weight: 5, canToggleVisibility: true, canMoveView: true, collapsed: true, when: NOTEBOOK_VARIABLE_VIEW_ENABLED,
|
|
72
72
|
};
|
|
@@ -74,7 +74,7 @@ class NotebookVariableDataSource {
|
|
|
74
74
|
notebook: parent.notebook,
|
|
75
75
|
id: parent.id + `${last + 1}`,
|
|
76
76
|
extHostId: parent.extHostId,
|
|
77
|
-
name: ( localize(
|
|
77
|
+
name: ( localize(11398, "Display limit reached")),
|
|
78
78
|
value: '',
|
|
79
79
|
indexedChildrenCount: 0,
|
|
80
80
|
hasNamedChildren: false
|
|
@@ -55,10 +55,10 @@ NotebookVariableRenderer = NotebookVariableRenderer_1 = ( (__decorate([
|
|
|
55
55
|
], NotebookVariableRenderer)));
|
|
56
56
|
class NotebookVariableAccessibilityProvider {
|
|
57
57
|
getWidgetAriaLabel() {
|
|
58
|
-
return ( localize(
|
|
58
|
+
return ( localize(11396, "Notebook Variables"));
|
|
59
59
|
}
|
|
60
60
|
getAriaLabel(element) {
|
|
61
|
-
return ( localize(
|
|
61
|
+
return ( localize(11397, "Variable {0}, value {1}", element.name, element.value));
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
|
|
@@ -718,33 +718,33 @@ const NotebookOutlineContext = {
|
|
|
718
718
|
type: 'boolean',
|
|
719
719
|
default: true,
|
|
720
720
|
markdownDescription: ( localize(
|
|
721
|
-
|
|
721
|
+
7963,
|
|
722
722
|
"When enabled, notebook outline will show only markdown cells containing a header."
|
|
723
723
|
))
|
|
724
724
|
},
|
|
725
725
|
[NotebookSetting.outlineShowCodeCells]: {
|
|
726
726
|
type: 'boolean',
|
|
727
727
|
default: false,
|
|
728
|
-
markdownDescription: ( localize(
|
|
728
|
+
markdownDescription: ( localize(7964, "When enabled, notebook outline shows code cells."))
|
|
729
729
|
},
|
|
730
730
|
[NotebookSetting.outlineShowCodeCellSymbols]: {
|
|
731
731
|
type: 'boolean',
|
|
732
732
|
default: true,
|
|
733
733
|
markdownDescription: ( localize(
|
|
734
|
-
|
|
734
|
+
7965,
|
|
735
735
|
"When enabled, notebook outline shows code cell symbols. Relies on `notebook.outline.showCodeCells` being enabled."
|
|
736
736
|
))
|
|
737
737
|
},
|
|
738
738
|
[NotebookSetting.breadcrumbsShowCodeCells]: {
|
|
739
739
|
type: 'boolean',
|
|
740
740
|
default: true,
|
|
741
|
-
markdownDescription: ( localize(
|
|
741
|
+
markdownDescription: ( localize(7966, "When enabled, notebook breadcrumbs contain code cells."))
|
|
742
742
|
},
|
|
743
743
|
[NotebookSetting.gotoSymbolsAllSymbols]: {
|
|
744
744
|
type: 'boolean',
|
|
745
745
|
default: true,
|
|
746
746
|
markdownDescription: ( localize(
|
|
747
|
-
|
|
747
|
+
7967,
|
|
748
748
|
"When enabled, the Go to Symbol Quick Pick will display full code symbols from the notebook, as well as Markdown headers."
|
|
749
749
|
))
|
|
750
750
|
},
|
|
@@ -752,7 +752,7 @@ const NotebookOutlineContext = {
|
|
|
752
752
|
});
|
|
753
753
|
MenuRegistry.appendMenuItem(MenuId.ViewTitle, {
|
|
754
754
|
submenu: MenuId.NotebookOutlineFilter,
|
|
755
|
-
title: ( localize(
|
|
755
|
+
title: ( localize(7968, "Filter Entries")),
|
|
756
756
|
icon: Codicon.filter,
|
|
757
757
|
group: 'navigation',
|
|
758
758
|
order: -1,
|
|
@@ -765,7 +765,7 @@ registerAction2(class ToggleShowMarkdownHeadersOnly extends Action2 {
|
|
|
765
765
|
constructor() {
|
|
766
766
|
super({
|
|
767
767
|
id: 'notebook.outline.toggleShowMarkdownHeadersOnly',
|
|
768
|
-
title: ( localize(
|
|
768
|
+
title: ( localize(7969, "Markdown Headers Only")),
|
|
769
769
|
f1: false,
|
|
770
770
|
toggled: {
|
|
771
771
|
condition: ( (ContextKeyExpr.equals('config.notebook.outline.showMarkdownHeadersOnly', true)))
|
|
@@ -786,7 +786,7 @@ registerAction2(class ToggleCodeCellEntries extends Action2 {
|
|
|
786
786
|
constructor() {
|
|
787
787
|
super({
|
|
788
788
|
id: 'notebook.outline.toggleCodeCells',
|
|
789
|
-
title: ( localize(
|
|
789
|
+
title: ( localize(7970, "Code Cells")),
|
|
790
790
|
f1: false,
|
|
791
791
|
toggled: {
|
|
792
792
|
condition: ( (ContextKeyExpr.equals('config.notebook.outline.showCodeCells', true)))
|
|
@@ -808,7 +808,7 @@ registerAction2(class ToggleCodeCellSymbolEntries extends Action2 {
|
|
|
808
808
|
constructor() {
|
|
809
809
|
super({
|
|
810
810
|
id: 'notebook.outline.toggleCodeCellSymbols',
|
|
811
|
-
title: ( localize(
|
|
811
|
+
title: ( localize(7971, "Code Cell Symbols")),
|
|
812
812
|
f1: false,
|
|
813
813
|
toggled: {
|
|
814
814
|
condition: ( (ContextKeyExpr.equals('config.notebook.outline.showCodeCellSymbols', true)))
|