@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
|
@@ -49,7 +49,7 @@ let FormatOnSaveParticipant = class FormatOnSaveParticipant {
|
|
|
49
49
|
if (!enabled) {
|
|
50
50
|
return undefined;
|
|
51
51
|
}
|
|
52
|
-
progress.report({ message: ( localize(
|
|
52
|
+
progress.report({ message: ( localize(7938, "Formatting")) });
|
|
53
53
|
const notebook = workingCopy.model.notebookModel;
|
|
54
54
|
const formatApplied = await this.instantiationService.invokeFunction(CodeActionParticipantUtils.checkAndRunFormatCodeAction, notebook, progress, token);
|
|
55
55
|
const disposable = ( (new DisposableStore()));
|
|
@@ -69,7 +69,7 @@ let FormatOnSaveParticipant = class FormatOnSaveParticipant {
|
|
|
69
69
|
}
|
|
70
70
|
return [];
|
|
71
71
|
}))));
|
|
72
|
-
await this.bulkEditService.apply( allCellEdits.flat(), { label: ( localize(
|
|
72
|
+
await this.bulkEditService.apply( allCellEdits.flat(), { label: ( localize(7939, "Format Notebook")), code: 'undoredo.formatNotebook', });
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
finally {
|
|
@@ -141,7 +141,7 @@ let TrimWhitespaceParticipant = class TrimWhitespaceParticipant {
|
|
|
141
141
|
);
|
|
142
142
|
}))));
|
|
143
143
|
const filteredEdits = allCellEdits.flat().filter(edit => edit !== undefined);
|
|
144
|
-
await this.bulkEditService.apply(filteredEdits, { label: ( localize(
|
|
144
|
+
await this.bulkEditService.apply(filteredEdits, { label: ( localize(7940, "Notebook Trim Trailing Whitespace")), code: 'undoredo.notebookTrimTrailingWhitespace' });
|
|
145
145
|
}
|
|
146
146
|
finally {
|
|
147
147
|
progress.report({ increment: 100 });
|
|
@@ -219,7 +219,7 @@ let TrimFinalNewLinesParticipant = class TrimFinalNewLinesParticipant {
|
|
|
219
219
|
);
|
|
220
220
|
}))));
|
|
221
221
|
const filteredEdits = allCellEdits.flat().filter(edit => edit !== undefined);
|
|
222
|
-
await this.bulkEditService.apply(filteredEdits, { label: ( localize(
|
|
222
|
+
await this.bulkEditService.apply(filteredEdits, { label: ( localize(7941, "Trim Final New Lines")), code: 'undoredo.trimFinalNewLines' });
|
|
223
223
|
}
|
|
224
224
|
finally {
|
|
225
225
|
progress.report({ increment: 100 });
|
|
@@ -274,7 +274,7 @@ let InsertFinalNewLineParticipant = class InsertFinalNewLineParticipant {
|
|
|
274
274
|
);
|
|
275
275
|
}))));
|
|
276
276
|
const filteredEdits = allCellEdits.filter(edit => edit !== undefined);
|
|
277
|
-
await this.bulkEditService.apply(filteredEdits, { label: ( localize(
|
|
277
|
+
await this.bulkEditService.apply(filteredEdits, { label: ( localize(7942, "Insert Final New Line")), code: 'undoredo.insertFinalNewLine' });
|
|
278
278
|
if (activeCellEditor && selections) {
|
|
279
279
|
activeCellEditor.setSelections(selections);
|
|
280
280
|
}
|
|
@@ -330,7 +330,7 @@ let CodeActionOnSaveParticipant = class CodeActionOnSaveParticipant {
|
|
|
330
330
|
const notebookCodeActionsOnSave = includedActions.filter(x => CodeActionKind.Notebook.contains(x));
|
|
331
331
|
if (notebookCodeActionsOnSave.length) {
|
|
332
332
|
const nbDisposable = ( (new DisposableStore()));
|
|
333
|
-
progress.report({ message: ( localize(
|
|
333
|
+
progress.report({ message: ( localize(7943, "Running 'Notebook' code actions")) });
|
|
334
334
|
try {
|
|
335
335
|
const cell = notebookModel.cells[0];
|
|
336
336
|
const ref = await this.textModelService.createModelReference(cell.uri);
|
|
@@ -362,7 +362,7 @@ let CodeActionOnSaveParticipant = class CodeActionOnSaveParticipant {
|
|
|
362
362
|
});
|
|
363
363
|
}
|
|
364
364
|
const cellDisposable = ( (new DisposableStore()));
|
|
365
|
-
progress.report({ message: ( localize(
|
|
365
|
+
progress.report({ message: ( localize(7944, "Running 'Cell' code actions")) });
|
|
366
366
|
try {
|
|
367
367
|
await Promise.all(( (notebookModel.cells.map(async (cell) => {
|
|
368
368
|
const ref = await this.textModelService.createModelReference(cell.uri);
|
|
@@ -402,7 +402,7 @@ class CodeActionParticipantUtils {
|
|
|
402
402
|
const configurationService = accessor.get(IConfigurationService);
|
|
403
403
|
const formatDisposable = ( (new DisposableStore()));
|
|
404
404
|
let formatResult = false;
|
|
405
|
-
progress.report({ message: ( localize(
|
|
405
|
+
progress.report({ message: ( localize(7945, "Running 'Format' code actions")) });
|
|
406
406
|
try {
|
|
407
407
|
const cell = notebookModel.cells[0];
|
|
408
408
|
const ref = await textModelService.createModelReference(cell.uri);
|
|
@@ -431,7 +431,7 @@ class CodeActionParticipantUtils {
|
|
|
431
431
|
_report() {
|
|
432
432
|
progress.report({
|
|
433
433
|
message: ( localize(
|
|
434
|
-
|
|
434
|
+
7946,
|
|
435
435
|
"Getting code actions from '{0}' ([configure]({1})).",
|
|
436
436
|
( ([...this._names].map(name => `'${name}'`))).join(', '),
|
|
437
437
|
'command:workbench.action.openSettings?%5B%22notebook.codeActionsOnSave%22%5D'
|
|
@@ -471,7 +471,7 @@ class CodeActionParticipantUtils {
|
|
|
471
471
|
logService.warn('Failed to apply code action on save, applied to multiple resources.');
|
|
472
472
|
continue;
|
|
473
473
|
}
|
|
474
|
-
progress.report({ message: ( localize(
|
|
474
|
+
progress.report({ message: ( localize(7947, "Applying code action '{0}'.", action.action.title)) });
|
|
475
475
|
await instantiationService.invokeFunction(applyCodeAction, action, ApplyCodeActionReason.OnSave, {}, token);
|
|
476
476
|
if (token.isCancellationRequested) {
|
|
477
477
|
return;
|
|
@@ -496,7 +496,7 @@ class CodeActionParticipantUtils {
|
|
|
496
496
|
_report() {
|
|
497
497
|
progress.report({
|
|
498
498
|
message: ( localize(
|
|
499
|
-
|
|
499
|
+
7946,
|
|
500
500
|
"Getting code actions from '{0}' ([configure]({1})).",
|
|
501
501
|
( ([...this._names].map(name => `'${name}'`))).join(', '),
|
|
502
502
|
'command:workbench.action.openSettings?%5B%22notebook.defaultFormatter%22%5D'
|
|
@@ -523,7 +523,7 @@ class CodeActionParticipantUtils {
|
|
|
523
523
|
if (!action) {
|
|
524
524
|
return false;
|
|
525
525
|
}
|
|
526
|
-
progress.report({ message: ( localize(
|
|
526
|
+
progress.report({ message: ( localize(7947, "Applying code action '{0}'.", action.action.title)) });
|
|
527
527
|
await instantiationService.invokeFunction(applyCodeAction, action, ApplyCodeActionReason.OnSave, {}, token);
|
|
528
528
|
if (token.isCancellationRequested) {
|
|
529
529
|
return false;
|
|
@@ -94,7 +94,7 @@ registerAction2(class extends Action2 {
|
|
|
94
94
|
constructor() {
|
|
95
95
|
super({
|
|
96
96
|
id: 'notebook.toggleLayoutTroubleshoot',
|
|
97
|
-
title: ( localize2(
|
|
97
|
+
title: ( localize2(8011, "Toggle Layout Troubleshoot")),
|
|
98
98
|
category: Categories.Developer,
|
|
99
99
|
f1: true
|
|
100
100
|
});
|
|
@@ -113,7 +113,7 @@ registerAction2(class extends Action2 {
|
|
|
113
113
|
constructor() {
|
|
114
114
|
super({
|
|
115
115
|
id: 'notebook.inspectLayout',
|
|
116
|
-
title: ( localize2(
|
|
116
|
+
title: ( localize2(8012, "Inspect Notebook Layout")),
|
|
117
117
|
category: Categories.Developer,
|
|
118
118
|
f1: true
|
|
119
119
|
});
|
|
@@ -134,7 +134,7 @@ registerAction2(class extends Action2 {
|
|
|
134
134
|
constructor() {
|
|
135
135
|
super({
|
|
136
136
|
id: 'notebook.clearNotebookEdtitorTypeCache',
|
|
137
|
-
title: ( localize2(
|
|
137
|
+
title: ( localize2(8013, "Clear Notebook Editor Type Cache")),
|
|
138
138
|
category: Categories.Developer,
|
|
139
139
|
f1: true
|
|
140
140
|
});
|
|
@@ -408,7 +408,7 @@ registerAction2(class extends NotebookAction {
|
|
|
408
408
|
super({
|
|
409
409
|
id: 'notebook.cell.chat.startAtTop',
|
|
410
410
|
title: {
|
|
411
|
-
value: '$(sparkle) ' + ( localize(
|
|
411
|
+
value: '$(sparkle) ' + ( localize(10704, "Generate")),
|
|
412
412
|
original: '$(sparkle) Generate',
|
|
413
413
|
},
|
|
414
414
|
tooltip: ( localize(10705, "Start Chat to Generate Code")),
|
|
@@ -43,7 +43,7 @@ registerAction2(class EditCellAction extends NotebookCellAction {
|
|
|
43
43
|
constructor() {
|
|
44
44
|
super({
|
|
45
45
|
id: EDIT_CELL_COMMAND_ID,
|
|
46
|
-
title: ( localize(
|
|
46
|
+
title: ( localize(7898, "Edit Cell")),
|
|
47
47
|
keybinding: {
|
|
48
48
|
when: ( (ContextKeyExpr.and(
|
|
49
49
|
NOTEBOOK_CELL_LIST_FOCUSED,
|
|
@@ -89,7 +89,7 @@ registerAction2(class QuitEditCellAction extends NotebookCellAction {
|
|
|
89
89
|
constructor() {
|
|
90
90
|
super({
|
|
91
91
|
id: QUIT_EDIT_CELL_COMMAND_ID,
|
|
92
|
-
title: ( localize(
|
|
92
|
+
title: ( localize(7899, "Stop Editing Cell")),
|
|
93
93
|
menu: {
|
|
94
94
|
id: MenuId.NotebookCellTitle,
|
|
95
95
|
when: ( (ContextKeyExpr.and(
|
|
@@ -139,7 +139,7 @@ registerAction2(class DeleteCellAction extends NotebookCellAction {
|
|
|
139
139
|
constructor() {
|
|
140
140
|
super({
|
|
141
141
|
id: DELETE_CELL_COMMAND_ID,
|
|
142
|
-
title: ( localize(
|
|
142
|
+
title: ( localize(7900, "Delete Cell")),
|
|
143
143
|
keybinding: {
|
|
144
144
|
primary: KeyCode.Delete,
|
|
145
145
|
mac: {
|
|
@@ -176,13 +176,13 @@ registerAction2(class DeleteCellAction extends NotebookCellAction {
|
|
|
176
176
|
const configService = accessor.get(IConfigurationService);
|
|
177
177
|
if (runState === NotebookCellExecutionState.Executing && configService.getValue(NotebookSetting.confirmDeleteRunningCell)) {
|
|
178
178
|
const dialogService = accessor.get(IDialogService);
|
|
179
|
-
const primaryButton = ( localize(
|
|
179
|
+
const primaryButton = ( localize(7901, "Delete"));
|
|
180
180
|
confirmation = await dialogService.confirm({
|
|
181
181
|
type: 'question',
|
|
182
|
-
message: ( localize(
|
|
182
|
+
message: ( localize(7902, "This cell is running, are you sure you want to delete it?")),
|
|
183
183
|
primaryButton: primaryButton,
|
|
184
184
|
checkbox: {
|
|
185
|
-
label: ( localize(
|
|
185
|
+
label: ( localize(7903, "Do not ask me again"))
|
|
186
186
|
}
|
|
187
187
|
});
|
|
188
188
|
}
|
|
@@ -202,7 +202,7 @@ registerAction2(class ClearCellOutputsAction extends NotebookCellAction {
|
|
|
202
202
|
constructor() {
|
|
203
203
|
super({
|
|
204
204
|
id: CLEAR_CELL_OUTPUTS_COMMAND_ID,
|
|
205
|
-
title: ( localize(
|
|
205
|
+
title: ( localize(7904, 'Clear Cell Outputs')),
|
|
206
206
|
menu: [
|
|
207
207
|
{
|
|
208
208
|
id: MenuId.NotebookCellTitle,
|
|
@@ -273,7 +273,7 @@ registerAction2(class ClearAllCellOutputsAction extends NotebookAction {
|
|
|
273
273
|
constructor() {
|
|
274
274
|
super({
|
|
275
275
|
id: CLEAR_ALL_CELLS_OUTPUTS_COMMAND_ID,
|
|
276
|
-
title: ( localize(
|
|
276
|
+
title: ( localize(7905, 'Clear All Outputs')),
|
|
277
277
|
precondition: NOTEBOOK_HAS_OUTPUTS,
|
|
278
278
|
menu: [
|
|
279
279
|
{
|
|
@@ -334,9 +334,9 @@ registerAction2(class ChangeCellLanguageAction extends NotebookCellAction {
|
|
|
334
334
|
constructor() {
|
|
335
335
|
super({
|
|
336
336
|
id: CHANGE_CELL_LANGUAGE,
|
|
337
|
-
title: ( localize(
|
|
337
|
+
title: ( localize(7906, 'Change Cell Language')),
|
|
338
338
|
metadata: {
|
|
339
|
-
description: ( localize(
|
|
339
|
+
description: ( localize(7906, 'Change Cell Language')),
|
|
340
340
|
args: [
|
|
341
341
|
{
|
|
342
342
|
name: 'range',
|
|
@@ -409,10 +409,10 @@ registerAction2(class ChangeCellLanguageAction extends NotebookCellAction {
|
|
|
409
409
|
providerLanguages.forEach(languageId => {
|
|
410
410
|
let description;
|
|
411
411
|
if (context.cell.cellKind === CellKind.Markup ? (languageId === 'markdown') : (languageId === context.cell.language)) {
|
|
412
|
-
description = ( localize(
|
|
412
|
+
description = ( localize(7907, "({0}) - Current Language", languageId));
|
|
413
413
|
}
|
|
414
414
|
else {
|
|
415
|
-
description = ( localize(
|
|
415
|
+
description = ( localize(7908, "({0})", languageId));
|
|
416
416
|
}
|
|
417
417
|
const languageName = languageService.getLanguageName(languageId);
|
|
418
418
|
if (!languageName) {
|
|
@@ -435,16 +435,16 @@ registerAction2(class ChangeCellLanguageAction extends NotebookCellAction {
|
|
|
435
435
|
return a.description.localeCompare(b.description);
|
|
436
436
|
});
|
|
437
437
|
const autoDetectMode = {
|
|
438
|
-
label: ( localize(
|
|
438
|
+
label: ( localize(7909, "Auto Detect"))
|
|
439
439
|
};
|
|
440
440
|
const picks = [
|
|
441
441
|
autoDetectMode,
|
|
442
|
-
{ type: 'separator', label: ( localize(
|
|
442
|
+
{ type: 'separator', label: ( localize(7910, "languages (identifier)")) },
|
|
443
443
|
...topItems,
|
|
444
444
|
{ type: 'separator' },
|
|
445
445
|
...mainItems
|
|
446
446
|
];
|
|
447
|
-
const selection = await quickInputService.pick(picks, { placeHolder: ( localize(
|
|
447
|
+
const selection = await quickInputService.pick(picks, { placeHolder: ( localize(7911, "Select Language Mode")) });
|
|
448
448
|
const languageId = selection === autoDetectMode
|
|
449
449
|
? await languageDetectionService.detectLanguage(context.cell.uri)
|
|
450
450
|
: selection?.languageId;
|
|
@@ -477,7 +477,7 @@ registerAction2(class DetectCellLanguageAction extends NotebookCellAction {
|
|
|
477
477
|
constructor() {
|
|
478
478
|
super({
|
|
479
479
|
id: DETECT_CELL_LANGUAGE,
|
|
480
|
-
title: ( localize2(
|
|
480
|
+
title: ( localize2(7912, "Accept Detected Language for Cell")),
|
|
481
481
|
f1: true,
|
|
482
482
|
precondition: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_EDITABLE))),
|
|
483
483
|
keybinding: { primary: KeyCode.KeyD | KeyMod.Alt | KeyMod.Shift, weight: KeybindingWeight.WorkbenchContrib }
|
|
@@ -495,7 +495,7 @@ registerAction2(class DetectCellLanguageAction extends NotebookCellAction {
|
|
|
495
495
|
setCellToLanguage(detection, context);
|
|
496
496
|
}
|
|
497
497
|
else {
|
|
498
|
-
notificationService.warn(( localize(
|
|
498
|
+
notificationService.warn(( localize(7913, "Unable to detect cell language")));
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
501
|
});
|
|
@@ -520,7 +520,7 @@ registerAction2(class SelectNotebookIndentation extends NotebookAction {
|
|
|
520
520
|
constructor() {
|
|
521
521
|
super({
|
|
522
522
|
id: SELECT_NOTEBOOK_INDENTATION_ID,
|
|
523
|
-
title: ( localize2(
|
|
523
|
+
title: ( localize2(7914, 'Select Indentation')),
|
|
524
524
|
f1: true,
|
|
525
525
|
precondition: ( (ContextKeyExpr.and(
|
|
526
526
|
NOTEBOOK_IS_ACTIVE_EDITOR,
|
|
@@ -538,10 +538,10 @@ registerAction2(class SelectNotebookIndentation extends NotebookAction {
|
|
|
538
538
|
const instantiationService = accessor.get(IInstantiationService);
|
|
539
539
|
const activeNotebook = getNotebookEditorFromEditorPane(editorService.activeEditorPane);
|
|
540
540
|
if (!activeNotebook || activeNotebook.isDisposed) {
|
|
541
|
-
return quickInputService.pick([{ label: ( localize(
|
|
541
|
+
return quickInputService.pick([{ label: ( localize(7915, "No notebook editor active at this time")) }]);
|
|
542
542
|
}
|
|
543
543
|
if (activeNotebook.isReadOnly) {
|
|
544
|
-
return quickInputService.pick([{ label: ( localize(
|
|
544
|
+
return quickInputService.pick([{ label: ( localize(7916, "The active notebook editor is read-only.")) }]);
|
|
545
545
|
}
|
|
546
546
|
const picks = ( ([
|
|
547
547
|
(
|
|
@@ -563,9 +563,9 @@ registerAction2(class SelectNotebookIndentation extends NotebookAction {
|
|
|
563
563
|
}
|
|
564
564
|
};
|
|
565
565
|
})));
|
|
566
|
-
picks.splice(3, 0, { type: 'separator', label: ( localize(
|
|
567
|
-
picks.unshift({ type: 'separator', label: ( localize(
|
|
568
|
-
const action = await quickInputService.pick(picks, { placeHolder: ( localize(
|
|
566
|
+
picks.splice(3, 0, { type: 'separator', label: ( localize(7917, "convert file")) });
|
|
567
|
+
picks.unshift({ type: 'separator', label: ( localize(7918, "change view")) });
|
|
568
|
+
const action = await quickInputService.pick(picks, { placeHolder: ( localize(7919, "Select Action")), matchOnDetail: true });
|
|
569
569
|
if (!action) {
|
|
570
570
|
return;
|
|
571
571
|
}
|
|
@@ -578,7 +578,7 @@ registerAction2(class CommentSelectedCellsAction extends NotebookMultiCellAction
|
|
|
578
578
|
constructor() {
|
|
579
579
|
super({
|
|
580
580
|
id: COMMENT_SELECTED_CELLS_ID,
|
|
581
|
-
title: ( localize(
|
|
581
|
+
title: ( localize(7920, "Comment Selected Cells")),
|
|
582
582
|
keybinding: {
|
|
583
583
|
when: ( (ContextKeyExpr.and(
|
|
584
584
|
NOTEBOOK_EDITOR_FOCUSED,
|
|
@@ -90,7 +90,7 @@ registerAction2(class RenderAllMarkdownCellsAction extends NotebookAction {
|
|
|
90
90
|
constructor() {
|
|
91
91
|
super({
|
|
92
92
|
id: RENDER_ALL_MARKDOWN_CELLS,
|
|
93
|
-
title: ( localize(
|
|
93
|
+
title: ( localize(7860, "Render All Markdown Cells")),
|
|
94
94
|
});
|
|
95
95
|
}
|
|
96
96
|
async runWithContext(accessor, context) {
|
|
@@ -101,10 +101,10 @@ registerAction2(class ExecuteNotebookAction extends NotebookAction {
|
|
|
101
101
|
constructor() {
|
|
102
102
|
super({
|
|
103
103
|
id: EXECUTE_NOTEBOOK_COMMAND_ID,
|
|
104
|
-
title: ( localize(
|
|
104
|
+
title: ( localize(7861, "Run All")),
|
|
105
105
|
icon: executeAllIcon,
|
|
106
106
|
metadata: {
|
|
107
|
-
description: ( localize(
|
|
107
|
+
description: ( localize(7861, "Run All")),
|
|
108
108
|
args: [
|
|
109
109
|
{
|
|
110
110
|
name: 'uri',
|
|
@@ -162,7 +162,7 @@ registerAction2(class ExecuteCell extends NotebookMultiCellAction {
|
|
|
162
162
|
super({
|
|
163
163
|
id: EXECUTE_CELL_COMMAND_ID,
|
|
164
164
|
precondition: executeThisCellCondition,
|
|
165
|
-
title: ( localize(
|
|
165
|
+
title: ( localize(7862, "Execute Cell")),
|
|
166
166
|
keybinding: {
|
|
167
167
|
when: ( (ContextKeyExpr.or(
|
|
168
168
|
NOTEBOOK_CELL_LIST_FOCUSED,
|
|
@@ -180,7 +180,7 @@ registerAction2(class ExecuteCell extends NotebookMultiCellAction {
|
|
|
180
180
|
group: 'inline'
|
|
181
181
|
},
|
|
182
182
|
metadata: {
|
|
183
|
-
description: ( localize(
|
|
183
|
+
description: ( localize(7862, "Execute Cell")),
|
|
184
184
|
args: cellExecutionArgs
|
|
185
185
|
},
|
|
186
186
|
icon: executeIcon
|
|
@@ -214,7 +214,7 @@ registerAction2(class ExecuteAboveCells extends NotebookMultiCellAction {
|
|
|
214
214
|
super({
|
|
215
215
|
id: EXECUTE_CELLS_ABOVE,
|
|
216
216
|
precondition: executeCondition,
|
|
217
|
-
title: ( localize(
|
|
217
|
+
title: ( localize(7863, "Execute Above Cells")),
|
|
218
218
|
menu: [
|
|
219
219
|
{
|
|
220
220
|
id: MenuId.NotebookCellExecute,
|
|
@@ -260,7 +260,7 @@ registerAction2(class ExecuteCellAndBelow extends NotebookMultiCellAction {
|
|
|
260
260
|
super({
|
|
261
261
|
id: EXECUTE_CELL_AND_BELOW,
|
|
262
262
|
precondition: executeCondition,
|
|
263
|
-
title: ( localize(
|
|
263
|
+
title: ( localize(7864, "Execute Cell and Below")),
|
|
264
264
|
menu: [
|
|
265
265
|
{
|
|
266
266
|
id: MenuId.NotebookCellExecute,
|
|
@@ -306,9 +306,9 @@ registerAction2(class ExecuteCellFocusContainer extends NotebookMultiCellAction
|
|
|
306
306
|
super({
|
|
307
307
|
id: EXECUTE_CELL_FOCUS_CONTAINER_COMMAND_ID,
|
|
308
308
|
precondition: executeThisCellCondition,
|
|
309
|
-
title: ( localize(
|
|
309
|
+
title: ( localize(7865, "Execute Cell and Focus Container")),
|
|
310
310
|
metadata: {
|
|
311
|
-
description: ( localize(
|
|
311
|
+
description: ( localize(7865, "Execute Cell and Focus Container")),
|
|
312
312
|
args: cellExecutionArgs
|
|
313
313
|
},
|
|
314
314
|
icon: executeIcon
|
|
@@ -340,7 +340,7 @@ registerAction2(class CancelExecuteCell extends NotebookMultiCellAction {
|
|
|
340
340
|
super({
|
|
341
341
|
id: CANCEL_CELL_COMMAND_ID,
|
|
342
342
|
precondition: cellCancelCondition,
|
|
343
|
-
title: ( localize(
|
|
343
|
+
title: ( localize(7866, "Stop Cell Execution")),
|
|
344
344
|
icon: stopIcon,
|
|
345
345
|
menu: {
|
|
346
346
|
id: MenuId.NotebookCellExecutePrimary,
|
|
@@ -348,7 +348,7 @@ registerAction2(class CancelExecuteCell extends NotebookMultiCellAction {
|
|
|
348
348
|
group: 'inline'
|
|
349
349
|
},
|
|
350
350
|
metadata: {
|
|
351
|
-
description: ( localize(
|
|
351
|
+
description: ( localize(7866, "Stop Cell Execution")),
|
|
352
352
|
args: [
|
|
353
353
|
{
|
|
354
354
|
name: 'options',
|
|
@@ -406,7 +406,7 @@ registerAction2(class ExecuteCellSelectBelow extends NotebookCellAction {
|
|
|
406
406
|
executeThisCellCondition,
|
|
407
407
|
(NOTEBOOK_CELL_TYPE.isEqualTo('markup'))
|
|
408
408
|
))),
|
|
409
|
-
title: ( localize(
|
|
409
|
+
title: ( localize(7867, "Execute Notebook Cell and Select Below")),
|
|
410
410
|
keybinding: {
|
|
411
411
|
when: ( (ContextKeyExpr.and(
|
|
412
412
|
NOTEBOOK_CELL_LIST_FOCUSED,
|
|
@@ -472,7 +472,7 @@ registerAction2(class ExecuteCellInsertBelow extends NotebookCellAction {
|
|
|
472
472
|
executeThisCellCondition,
|
|
473
473
|
(NOTEBOOK_CELL_TYPE.isEqualTo('markup'))
|
|
474
474
|
))),
|
|
475
|
-
title: ( localize(
|
|
475
|
+
title: ( localize(7868, "Execute Notebook Cell and Insert Below")),
|
|
476
476
|
keybinding: {
|
|
477
477
|
when: NOTEBOOK_CELL_LIST_FOCUSED,
|
|
478
478
|
primary: KeyMod.Alt | KeyCode.Enter,
|
|
@@ -509,7 +509,7 @@ registerAction2(class CancelAllNotebook extends CancelNotebook {
|
|
|
509
509
|
constructor() {
|
|
510
510
|
super({
|
|
511
511
|
id: CANCEL_NOTEBOOK_COMMAND_ID,
|
|
512
|
-
title: ( localize2(
|
|
512
|
+
title: ( localize2(7869, "Stop Execution")),
|
|
513
513
|
icon: stopIcon,
|
|
514
514
|
menu: [
|
|
515
515
|
{
|
|
@@ -541,7 +541,7 @@ registerAction2(class InterruptNotebook extends CancelNotebook {
|
|
|
541
541
|
constructor() {
|
|
542
542
|
super({
|
|
543
543
|
id: INTERRUPT_NOTEBOOK_COMMAND_ID,
|
|
544
|
-
title: ( localize2(
|
|
544
|
+
title: ( localize2(7870, "Interrupt")),
|
|
545
545
|
precondition: ( (ContextKeyExpr.and(NOTEBOOK_HAS_SOMETHING_RUNNING, NOTEBOOK_INTERRUPTIBLE_KERNEL))),
|
|
546
546
|
icon: stopIcon,
|
|
547
547
|
menu: [
|
|
@@ -575,7 +575,7 @@ registerAction2(class InterruptNotebook extends CancelNotebook {
|
|
|
575
575
|
}
|
|
576
576
|
});
|
|
577
577
|
MenuRegistry.appendMenuItem(MenuId.NotebookToolbar, {
|
|
578
|
-
title: ( localize(
|
|
578
|
+
title: ( localize(7871, "Go To")),
|
|
579
579
|
submenu: MenuId.NotebookCellExecuteGoTo,
|
|
580
580
|
group: 'navigation/execute',
|
|
581
581
|
order: 20,
|
|
@@ -585,9 +585,9 @@ registerAction2(class RevealRunningCellAction extends NotebookAction {
|
|
|
585
585
|
constructor() {
|
|
586
586
|
super({
|
|
587
587
|
id: REVEAL_RUNNING_CELL,
|
|
588
|
-
title: ( localize(
|
|
589
|
-
tooltip: ( localize(
|
|
590
|
-
shortTitle: ( localize(
|
|
588
|
+
title: ( localize(7872, "Go to Running Cell")),
|
|
589
|
+
tooltip: ( localize(7872, "Go to Running Cell")),
|
|
590
|
+
shortTitle: ( localize(7872, "Go to Running Cell")),
|
|
591
591
|
precondition: NOTEBOOK_HAS_RUNNING_CELL,
|
|
592
592
|
menu: [
|
|
593
593
|
{
|
|
@@ -656,9 +656,9 @@ registerAction2(class RevealLastFailedCellAction extends NotebookAction {
|
|
|
656
656
|
constructor() {
|
|
657
657
|
super({
|
|
658
658
|
id: REVEAL_LAST_FAILED_CELL,
|
|
659
|
-
title: ( localize(
|
|
660
|
-
tooltip: ( localize(
|
|
661
|
-
shortTitle: ( localize(
|
|
659
|
+
title: ( localize(7873, "Go to Most Recently Failed Cell")),
|
|
660
|
+
tooltip: ( localize(7873, "Go to Most Recently Failed Cell")),
|
|
661
|
+
shortTitle: ( localize(7874, "Go to Most Recently Failed Cell")),
|
|
662
662
|
precondition: NOTEBOOK_LAST_CELL_FAILED,
|
|
663
663
|
menu: [
|
|
664
664
|
{
|
|
@@ -55,7 +55,7 @@ registerAction2(class InsertCodeCellAboveAction extends InsertCellCommand {
|
|
|
55
55
|
constructor() {
|
|
56
56
|
super({
|
|
57
57
|
id: INSERT_CODE_CELL_ABOVE_COMMAND_ID,
|
|
58
|
-
title: ( localize(
|
|
58
|
+
title: ( localize(7844, "Insert Code Cell Above")),
|
|
59
59
|
keybinding: {
|
|
60
60
|
primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.Enter,
|
|
61
61
|
when: ( (ContextKeyExpr.and(
|
|
@@ -75,7 +75,7 @@ registerAction2(class InsertCodeCellAboveAndFocusContainerAction extends InsertC
|
|
|
75
75
|
constructor() {
|
|
76
76
|
super({
|
|
77
77
|
id: INSERT_CODE_CELL_ABOVE_AND_FOCUS_CONTAINER_COMMAND_ID,
|
|
78
|
-
title: ( localize(
|
|
78
|
+
title: ( localize(7845, "Insert Code Cell Above and Focus Container"))
|
|
79
79
|
}, CellKind.Code, 'above', false);
|
|
80
80
|
}
|
|
81
81
|
});
|
|
@@ -83,7 +83,7 @@ registerAction2(class InsertCodeCellBelowAction extends InsertCellCommand {
|
|
|
83
83
|
constructor() {
|
|
84
84
|
super({
|
|
85
85
|
id: INSERT_CODE_CELL_BELOW_COMMAND_ID,
|
|
86
|
-
title: ( localize(
|
|
86
|
+
title: ( localize(7846, "Insert Code Cell Below")),
|
|
87
87
|
keybinding: {
|
|
88
88
|
primary: KeyMod.CtrlCmd | KeyCode.Enter,
|
|
89
89
|
when: ( (ContextKeyExpr.and(
|
|
@@ -104,7 +104,7 @@ registerAction2(class InsertCodeCellBelowAndFocusContainerAction extends InsertC
|
|
|
104
104
|
constructor() {
|
|
105
105
|
super({
|
|
106
106
|
id: INSERT_CODE_CELL_BELOW_AND_FOCUS_CONTAINER_COMMAND_ID,
|
|
107
|
-
title: ( localize(
|
|
107
|
+
title: ( localize(7847, "Insert Code Cell Below and Focus Container")),
|
|
108
108
|
}, CellKind.Code, 'below', false);
|
|
109
109
|
}
|
|
110
110
|
});
|
|
@@ -112,7 +112,7 @@ registerAction2(class InsertMarkdownCellAboveAction extends InsertCellCommand {
|
|
|
112
112
|
constructor() {
|
|
113
113
|
super({
|
|
114
114
|
id: INSERT_MARKDOWN_CELL_ABOVE_COMMAND_ID,
|
|
115
|
-
title: ( localize(
|
|
115
|
+
title: ( localize(7848, "Insert Markdown Cell Above")),
|
|
116
116
|
menu: {
|
|
117
117
|
id: MenuId.NotebookCellInsert,
|
|
118
118
|
order: 2
|
|
@@ -124,7 +124,7 @@ registerAction2(class InsertMarkdownCellBelowAction extends InsertCellCommand {
|
|
|
124
124
|
constructor() {
|
|
125
125
|
super({
|
|
126
126
|
id: INSERT_MARKDOWN_CELL_BELOW_COMMAND_ID,
|
|
127
|
-
title: ( localize(
|
|
127
|
+
title: ( localize(7849, "Insert Markdown Cell Below")),
|
|
128
128
|
menu: {
|
|
129
129
|
id: MenuId.NotebookCellInsert,
|
|
130
130
|
order: 3
|
|
@@ -136,7 +136,7 @@ registerAction2(class InsertCodeCellAtTopAction extends NotebookAction {
|
|
|
136
136
|
constructor() {
|
|
137
137
|
super({
|
|
138
138
|
id: INSERT_CODE_CELL_AT_TOP_COMMAND_ID,
|
|
139
|
-
title: ( localize(
|
|
139
|
+
title: ( localize(7850, "Add Code Cell At Top")),
|
|
140
140
|
f1: false
|
|
141
141
|
});
|
|
142
142
|
}
|
|
@@ -158,7 +158,7 @@ registerAction2(class InsertMarkdownCellAtTopAction extends NotebookAction {
|
|
|
158
158
|
constructor() {
|
|
159
159
|
super({
|
|
160
160
|
id: INSERT_MARKDOWN_CELL_AT_TOP_COMMAND_ID,
|
|
161
|
-
title: ( localize(
|
|
161
|
+
title: ( localize(7851, "Add Markdown Cell At Top")),
|
|
162
162
|
f1: false
|
|
163
163
|
});
|
|
164
164
|
}
|
|
@@ -179,8 +179,8 @@ registerAction2(class InsertMarkdownCellAtTopAction extends NotebookAction {
|
|
|
179
179
|
MenuRegistry.appendMenuItem(MenuId.NotebookCellBetween, {
|
|
180
180
|
command: {
|
|
181
181
|
id: INSERT_CODE_CELL_BELOW_COMMAND_ID,
|
|
182
|
-
title: '$(add) ' + ( localize(
|
|
183
|
-
tooltip: ( localize(
|
|
182
|
+
title: '$(add) ' + ( localize(7852, "Code")),
|
|
183
|
+
tooltip: ( localize(7853, "Add Code Cell"))
|
|
184
184
|
},
|
|
185
185
|
order: 0,
|
|
186
186
|
group: 'inline',
|
|
@@ -192,9 +192,9 @@ MenuRegistry.appendMenuItem(MenuId.NotebookCellBetween, {
|
|
|
192
192
|
MenuRegistry.appendMenuItem(MenuId.NotebookCellBetween, {
|
|
193
193
|
command: {
|
|
194
194
|
id: INSERT_CODE_CELL_BELOW_COMMAND_ID,
|
|
195
|
-
title: ( localize(
|
|
195
|
+
title: ( localize(7854, "Add Code")),
|
|
196
196
|
icon: Codicon.add,
|
|
197
|
-
tooltip: ( localize(
|
|
197
|
+
tooltip: ( localize(7853, "Add Code Cell"))
|
|
198
198
|
},
|
|
199
199
|
order: 0,
|
|
200
200
|
group: 'inline',
|
|
@@ -207,8 +207,8 @@ MenuRegistry.appendMenuItem(MenuId.NotebookToolbar, {
|
|
|
207
207
|
command: {
|
|
208
208
|
id: INSERT_CODE_CELL_BELOW_COMMAND_ID,
|
|
209
209
|
icon: Codicon.add,
|
|
210
|
-
title: ( localize(
|
|
211
|
-
tooltip: ( localize(
|
|
210
|
+
title: ( localize(7855, "Code")),
|
|
211
|
+
tooltip: ( localize(7853, "Add Code Cell"))
|
|
212
212
|
},
|
|
213
213
|
order: -5,
|
|
214
214
|
group: 'navigation/add',
|
|
@@ -221,8 +221,8 @@ MenuRegistry.appendMenuItem(MenuId.NotebookToolbar, {
|
|
|
221
221
|
MenuRegistry.appendMenuItem(MenuId.NotebookCellListTop, {
|
|
222
222
|
command: {
|
|
223
223
|
id: INSERT_CODE_CELL_AT_TOP_COMMAND_ID,
|
|
224
|
-
title: '$(add) ' + ( localize(
|
|
225
|
-
tooltip: ( localize(
|
|
224
|
+
title: '$(add) ' + ( localize(7852, "Code")),
|
|
225
|
+
tooltip: ( localize(7853, "Add Code Cell"))
|
|
226
226
|
},
|
|
227
227
|
order: 0,
|
|
228
228
|
group: 'inline',
|
|
@@ -234,9 +234,9 @@ MenuRegistry.appendMenuItem(MenuId.NotebookCellListTop, {
|
|
|
234
234
|
MenuRegistry.appendMenuItem(MenuId.NotebookCellListTop, {
|
|
235
235
|
command: {
|
|
236
236
|
id: INSERT_CODE_CELL_AT_TOP_COMMAND_ID,
|
|
237
|
-
title: ( localize(
|
|
237
|
+
title: ( localize(7856, "Add Code")),
|
|
238
238
|
icon: Codicon.add,
|
|
239
|
-
tooltip: ( localize(
|
|
239
|
+
tooltip: ( localize(7853, "Add Code Cell"))
|
|
240
240
|
},
|
|
241
241
|
order: 0,
|
|
242
242
|
group: 'inline',
|
|
@@ -248,8 +248,8 @@ MenuRegistry.appendMenuItem(MenuId.NotebookCellListTop, {
|
|
|
248
248
|
MenuRegistry.appendMenuItem(MenuId.NotebookCellBetween, {
|
|
249
249
|
command: {
|
|
250
250
|
id: INSERT_MARKDOWN_CELL_BELOW_COMMAND_ID,
|
|
251
|
-
title: '$(add) ' + ( localize(
|
|
252
|
-
tooltip: ( localize(
|
|
251
|
+
title: '$(add) ' + ( localize(7857, "Markdown")),
|
|
252
|
+
tooltip: ( localize(7858, "Add Markdown Cell"))
|
|
253
253
|
},
|
|
254
254
|
order: 1,
|
|
255
255
|
group: 'inline',
|
|
@@ -262,8 +262,8 @@ MenuRegistry.appendMenuItem(MenuId.NotebookToolbar, {
|
|
|
262
262
|
command: {
|
|
263
263
|
id: INSERT_MARKDOWN_CELL_BELOW_COMMAND_ID,
|
|
264
264
|
icon: Codicon.add,
|
|
265
|
-
title: ( localize(
|
|
266
|
-
tooltip: ( localize(
|
|
265
|
+
title: ( localize(7859, "Markdown")),
|
|
266
|
+
tooltip: ( localize(7858, "Add Markdown Cell"))
|
|
267
267
|
},
|
|
268
268
|
order: -5,
|
|
269
269
|
group: 'navigation/add',
|
|
@@ -278,8 +278,8 @@ MenuRegistry.appendMenuItem(MenuId.NotebookToolbar, {
|
|
|
278
278
|
MenuRegistry.appendMenuItem(MenuId.NotebookCellListTop, {
|
|
279
279
|
command: {
|
|
280
280
|
id: INSERT_MARKDOWN_CELL_AT_TOP_COMMAND_ID,
|
|
281
|
-
title: '$(add) ' + ( localize(
|
|
282
|
-
tooltip: ( localize(
|
|
281
|
+
title: '$(add) ' + ( localize(7857, "Markdown")),
|
|
282
|
+
tooltip: ( localize(7858, "Add Markdown Cell"))
|
|
283
283
|
},
|
|
284
284
|
order: 1,
|
|
285
285
|
group: 'inline',
|