@codingame/monaco-vscode-notebook-service-override 8.0.4 → 9.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 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +21 -21
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticsActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js +26 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.js +624 -0
- 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 +4 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +9 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/profile/notebookProfile.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.js +12 -12
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +24 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +54 -55
- 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 +23 -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/diff/notebookDiffActions.js +297 -21
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +124 -73
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.js +27 -19
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +33 -33
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.js +62 -39
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js +7 -6
- 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 +7 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +18 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookWorkerServiceImpl.js +15 -40
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js +0 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.js +28 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverServiceImpl.js +55 -45
- package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookSimpleWorker.js +6 -6
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +12 -12
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffCellEditorOptions.js +0 -47
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +0 -1303
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +0 -267
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.js +0 -569
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffNestedCellViewModel.js +0 -115
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/eventDispatcher.js +0 -39
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiff.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +0 -903
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +0 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +0 -397
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffOverviewRuler.js +0 -186
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiffEditorInput.js +0 -107
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { KeyCode, KeyMod } from 'vscode/vscode/vs/base/common/keyCodes';
|
|
2
2
|
import { Mimes } from 'vscode/vscode/vs/base/common/mime';
|
|
3
3
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
4
|
-
import { EditorOption } from 'vscode/vscode/vs/editor/common/config/editorOptions';
|
|
5
4
|
import { Selection } from 'vscode/vscode/vs/editor/common/core/selection';
|
|
5
|
+
import { CommandExecutor } from 'vscode/vscode/vs/editor/common/cursor/cursor';
|
|
6
6
|
import { EditorContextKeys } from 'vscode/vscode/vs/editor/common/editorContextKeys';
|
|
7
7
|
import { ILanguageService } from 'vscode/vscode/vs/editor/common/languages/language';
|
|
8
8
|
import { ILanguageConfigurationService } from 'vscode/vscode/vs/editor/common/languages/languageConfigurationRegistry';
|
|
9
|
+
import { TrackedRangeStickiness } from 'vscode/vscode/vs/editor/common/model';
|
|
9
10
|
import { getIconClasses } from 'vscode/vscode/vs/editor/common/services/getIconClasses';
|
|
10
11
|
import { IModelService } from 'vscode/vscode/vs/editor/common/services/model';
|
|
11
12
|
import { LineCommentCommand, Type } from 'vscode/vscode/vs/editor/contrib/comment/browser/lineCommentCommand';
|
|
@@ -43,7 +44,7 @@ registerAction2(class EditCellAction extends NotebookCellAction {
|
|
|
43
44
|
constructor() {
|
|
44
45
|
super({
|
|
45
46
|
id: EDIT_CELL_COMMAND_ID,
|
|
46
|
-
title: ( localize(
|
|
47
|
+
title: ( localize(7933, "Edit Cell")),
|
|
47
48
|
keybinding: {
|
|
48
49
|
when: ( (ContextKeyExpr.and(
|
|
49
50
|
NOTEBOOK_CELL_LIST_FOCUSED,
|
|
@@ -89,7 +90,7 @@ registerAction2(class QuitEditCellAction extends NotebookCellAction {
|
|
|
89
90
|
constructor() {
|
|
90
91
|
super({
|
|
91
92
|
id: QUIT_EDIT_CELL_COMMAND_ID,
|
|
92
|
-
title: ( localize(
|
|
93
|
+
title: ( localize(7934, "Stop Editing Cell")),
|
|
93
94
|
menu: {
|
|
94
95
|
id: MenuId.NotebookCellTitle,
|
|
95
96
|
when: ( (ContextKeyExpr.and(
|
|
@@ -139,7 +140,7 @@ registerAction2(class DeleteCellAction extends NotebookCellAction {
|
|
|
139
140
|
constructor() {
|
|
140
141
|
super({
|
|
141
142
|
id: DELETE_CELL_COMMAND_ID,
|
|
142
|
-
title: ( localize(
|
|
143
|
+
title: ( localize(7935, "Delete Cell")),
|
|
143
144
|
keybinding: {
|
|
144
145
|
primary: KeyCode.Delete,
|
|
145
146
|
mac: {
|
|
@@ -176,13 +177,13 @@ registerAction2(class DeleteCellAction extends NotebookCellAction {
|
|
|
176
177
|
const configService = accessor.get(IConfigurationService);
|
|
177
178
|
if (runState === NotebookCellExecutionState.Executing && configService.getValue(NotebookSetting.confirmDeleteRunningCell)) {
|
|
178
179
|
const dialogService = accessor.get(IDialogService);
|
|
179
|
-
const primaryButton = ( localize(
|
|
180
|
+
const primaryButton = ( localize(7936, "Delete"));
|
|
180
181
|
confirmation = await dialogService.confirm({
|
|
181
182
|
type: 'question',
|
|
182
|
-
message: ( localize(
|
|
183
|
+
message: ( localize(7937, "This cell is running, are you sure you want to delete it?")),
|
|
183
184
|
primaryButton: primaryButton,
|
|
184
185
|
checkbox: {
|
|
185
|
-
label: ( localize(
|
|
186
|
+
label: ( localize(7938, "Do not ask me again"))
|
|
186
187
|
}
|
|
187
188
|
});
|
|
188
189
|
}
|
|
@@ -202,7 +203,7 @@ registerAction2(class ClearCellOutputsAction extends NotebookCellAction {
|
|
|
202
203
|
constructor() {
|
|
203
204
|
super({
|
|
204
205
|
id: CLEAR_CELL_OUTPUTS_COMMAND_ID,
|
|
205
|
-
title: ( localize(
|
|
206
|
+
title: ( localize(7939, 'Clear Cell Outputs')),
|
|
206
207
|
menu: [
|
|
207
208
|
{
|
|
208
209
|
id: MenuId.NotebookCellTitle,
|
|
@@ -273,7 +274,7 @@ registerAction2(class ClearAllCellOutputsAction extends NotebookAction {
|
|
|
273
274
|
constructor() {
|
|
274
275
|
super({
|
|
275
276
|
id: CLEAR_ALL_CELLS_OUTPUTS_COMMAND_ID,
|
|
276
|
-
title: ( localize(
|
|
277
|
+
title: ( localize(7940, 'Clear All Outputs')),
|
|
277
278
|
precondition: NOTEBOOK_HAS_OUTPUTS,
|
|
278
279
|
menu: [
|
|
279
280
|
{
|
|
@@ -334,9 +335,9 @@ registerAction2(class ChangeCellLanguageAction extends NotebookCellAction {
|
|
|
334
335
|
constructor() {
|
|
335
336
|
super({
|
|
336
337
|
id: CHANGE_CELL_LANGUAGE,
|
|
337
|
-
title: ( localize(
|
|
338
|
+
title: ( localize(7941, 'Change Cell Language')),
|
|
338
339
|
metadata: {
|
|
339
|
-
description: ( localize(
|
|
340
|
+
description: ( localize(7941, 'Change Cell Language')),
|
|
340
341
|
args: [
|
|
341
342
|
{
|
|
342
343
|
name: 'range',
|
|
@@ -409,10 +410,10 @@ registerAction2(class ChangeCellLanguageAction extends NotebookCellAction {
|
|
|
409
410
|
providerLanguages.forEach(languageId => {
|
|
410
411
|
let description;
|
|
411
412
|
if (context.cell.cellKind === CellKind.Markup ? (languageId === 'markdown') : (languageId === context.cell.language)) {
|
|
412
|
-
description = ( localize(
|
|
413
|
+
description = ( localize(7942, "({0}) - Current Language", languageId));
|
|
413
414
|
}
|
|
414
415
|
else {
|
|
415
|
-
description = ( localize(
|
|
416
|
+
description = ( localize(7943, "({0})", languageId));
|
|
416
417
|
}
|
|
417
418
|
const languageName = languageService.getLanguageName(languageId);
|
|
418
419
|
if (!languageName) {
|
|
@@ -435,16 +436,16 @@ registerAction2(class ChangeCellLanguageAction extends NotebookCellAction {
|
|
|
435
436
|
return a.description.localeCompare(b.description);
|
|
436
437
|
});
|
|
437
438
|
const autoDetectMode = {
|
|
438
|
-
label: ( localize(
|
|
439
|
+
label: ( localize(7944, "Auto Detect"))
|
|
439
440
|
};
|
|
440
441
|
const picks = [
|
|
441
442
|
autoDetectMode,
|
|
442
|
-
{ type: 'separator', label: ( localize(
|
|
443
|
+
{ type: 'separator', label: ( localize(7945, "languages (identifier)")) },
|
|
443
444
|
...topItems,
|
|
444
445
|
{ type: 'separator' },
|
|
445
446
|
...mainItems
|
|
446
447
|
];
|
|
447
|
-
const selection = await quickInputService.pick(picks, { placeHolder: ( localize(
|
|
448
|
+
const selection = await quickInputService.pick(picks, { placeHolder: ( localize(7946, "Select Language Mode")) });
|
|
448
449
|
const languageId = selection === autoDetectMode
|
|
449
450
|
? await languageDetectionService.detectLanguage(context.cell.uri)
|
|
450
451
|
: selection?.languageId;
|
|
@@ -477,7 +478,7 @@ registerAction2(class DetectCellLanguageAction extends NotebookCellAction {
|
|
|
477
478
|
constructor() {
|
|
478
479
|
super({
|
|
479
480
|
id: DETECT_CELL_LANGUAGE,
|
|
480
|
-
title: ( localize2(
|
|
481
|
+
title: ( localize2(7947, "Accept Detected Language for Cell")),
|
|
481
482
|
f1: true,
|
|
482
483
|
precondition: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_EDITABLE))),
|
|
483
484
|
keybinding: { primary: KeyCode.KeyD | KeyMod.Alt | KeyMod.Shift, weight: KeybindingWeight.WorkbenchContrib }
|
|
@@ -495,7 +496,7 @@ registerAction2(class DetectCellLanguageAction extends NotebookCellAction {
|
|
|
495
496
|
setCellToLanguage(detection, context);
|
|
496
497
|
}
|
|
497
498
|
else {
|
|
498
|
-
notificationService.warn(( localize(
|
|
499
|
+
notificationService.warn(( localize(7948, "Unable to detect cell language")));
|
|
499
500
|
}
|
|
500
501
|
}
|
|
501
502
|
});
|
|
@@ -520,7 +521,7 @@ registerAction2(class SelectNotebookIndentation extends NotebookAction {
|
|
|
520
521
|
constructor() {
|
|
521
522
|
super({
|
|
522
523
|
id: SELECT_NOTEBOOK_INDENTATION_ID,
|
|
523
|
-
title: ( localize2(
|
|
524
|
+
title: ( localize2(7949, 'Select Indentation')),
|
|
524
525
|
f1: true,
|
|
525
526
|
precondition: ( (ContextKeyExpr.and(
|
|
526
527
|
NOTEBOOK_IS_ACTIVE_EDITOR,
|
|
@@ -538,10 +539,10 @@ registerAction2(class SelectNotebookIndentation extends NotebookAction {
|
|
|
538
539
|
const instantiationService = accessor.get(IInstantiationService);
|
|
539
540
|
const activeNotebook = getNotebookEditorFromEditorPane(editorService.activeEditorPane);
|
|
540
541
|
if (!activeNotebook || activeNotebook.isDisposed) {
|
|
541
|
-
return quickInputService.pick([{ label: ( localize(
|
|
542
|
+
return quickInputService.pick([{ label: ( localize(7950, "No notebook editor active at this time")) }]);
|
|
542
543
|
}
|
|
543
544
|
if (activeNotebook.isReadOnly) {
|
|
544
|
-
return quickInputService.pick([{ label: ( localize(
|
|
545
|
+
return quickInputService.pick([{ label: ( localize(7951, "The active notebook editor is read-only.")) }]);
|
|
545
546
|
}
|
|
546
547
|
const picks = ( ([
|
|
547
548
|
(
|
|
@@ -563,9 +564,9 @@ registerAction2(class SelectNotebookIndentation extends NotebookAction {
|
|
|
563
564
|
}
|
|
564
565
|
};
|
|
565
566
|
})));
|
|
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(
|
|
567
|
+
picks.splice(3, 0, { type: 'separator', label: ( localize(7952, "convert file")) });
|
|
568
|
+
picks.unshift({ type: 'separator', label: ( localize(7953, "change view")) });
|
|
569
|
+
const action = await quickInputService.pick(picks, { placeHolder: ( localize(7954, "Select Action")), matchOnDetail: true });
|
|
569
570
|
if (!action) {
|
|
570
571
|
return;
|
|
571
572
|
}
|
|
@@ -578,7 +579,7 @@ registerAction2(class CommentSelectedCellsAction extends NotebookMultiCellAction
|
|
|
578
579
|
constructor() {
|
|
579
580
|
super({
|
|
580
581
|
id: COMMENT_SELECTED_CELLS_ID,
|
|
581
|
-
title: ( localize(
|
|
582
|
+
title: ( localize(7955, "Comment Selected Cells")),
|
|
582
583
|
keybinding: {
|
|
583
584
|
when: ( (ContextKeyExpr.and(
|
|
584
585
|
NOTEBOOK_EDITOR_FOCUSED,
|
|
@@ -592,36 +593,34 @@ registerAction2(class CommentSelectedCellsAction extends NotebookMultiCellAction
|
|
|
592
593
|
}
|
|
593
594
|
async runWithContext(accessor, context) {
|
|
594
595
|
const languageConfigurationService = accessor.get(ILanguageConfigurationService);
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
const
|
|
598
|
-
const
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
const
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
editor.pushUndoStop();
|
|
624
|
-
editor.setSelection(selection);
|
|
596
|
+
context.selectedCells.forEach(async (cellViewModel) => {
|
|
597
|
+
const textModel = await cellViewModel.resolveTextModel();
|
|
598
|
+
const commentsOptions = cellViewModel.commentOptions;
|
|
599
|
+
const cellCommentCommand = ( (new LineCommentCommand(languageConfigurationService,
|
|
600
|
+
(new Selection(
|
|
601
|
+
1,
|
|
602
|
+
1,
|
|
603
|
+
textModel.getLineCount(),
|
|
604
|
+
textModel.getLineMaxColumn(textModel.getLineCount())
|
|
605
|
+
)), textModel.getOptions().tabSize, Type.Toggle, commentsOptions.insertSpace ?? true, commentsOptions.ignoreEmptyLines ?? true, false)));
|
|
606
|
+
const cellEditorSelections = cellViewModel.getSelections();
|
|
607
|
+
const initialTrackedRangesIDs = ( (cellEditorSelections.map(selection => {
|
|
608
|
+
return textModel._setTrackedRange(null, selection, TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges);
|
|
609
|
+
})));
|
|
610
|
+
CommandExecutor.executeCommands(textModel, cellEditorSelections, [cellCommentCommand]);
|
|
611
|
+
const newTrackedSelections = ( (( (initialTrackedRangesIDs.map(i => {
|
|
612
|
+
return textModel._getTrackedRange(i);
|
|
613
|
+
}))).filter(r => !!r).map((range) => {
|
|
614
|
+
return (
|
|
615
|
+
(new Selection(
|
|
616
|
+
range.startLineNumber,
|
|
617
|
+
range.startColumn,
|
|
618
|
+
range.endLineNumber,
|
|
619
|
+
range.endColumn
|
|
620
|
+
))
|
|
621
|
+
);
|
|
622
|
+
})));
|
|
623
|
+
cellViewModel.setSelections(newTrackedSelections ?? []);
|
|
625
624
|
});
|
|
626
625
|
}
|
|
627
626
|
});
|
|
@@ -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(7895, "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(7896, "Run All")),
|
|
105
105
|
icon: executeAllIcon,
|
|
106
106
|
metadata: {
|
|
107
|
-
description: ( localize(
|
|
107
|
+
description: ( localize(7896, "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(7897, "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(7897, "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(7898, "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(7899, "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(7900, "Execute Cell and Focus Container")),
|
|
310
310
|
metadata: {
|
|
311
|
-
description: ( localize(
|
|
311
|
+
description: ( localize(7900, "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(7901, "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(7901, "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(7902, "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(7903, "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(7904, "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(7905, "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(7906, "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(7907, "Go to Running Cell")),
|
|
589
|
+
tooltip: ( localize(7907, "Go to Running Cell")),
|
|
590
|
+
shortTitle: ( localize(7907, "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(7908, "Go to Most Recently Failed Cell")),
|
|
660
|
+
tooltip: ( localize(7908, "Go to Most Recently Failed Cell")),
|
|
661
|
+
shortTitle: ( localize(7909, "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(7879, "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(7880, "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(7881, "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(7882, "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(7883, "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(7884, "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(7885, "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(7886, "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(7887, "Code")),
|
|
183
|
+
tooltip: ( localize(7888, "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(7889, "Add Code")),
|
|
196
196
|
icon: Codicon.add,
|
|
197
|
-
tooltip: ( localize(
|
|
197
|
+
tooltip: ( localize(7888, "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(7890, "Code")),
|
|
211
|
+
tooltip: ( localize(7888, "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(7887, "Code")),
|
|
225
|
+
tooltip: ( localize(7888, "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(7891, "Add Code")),
|
|
238
238
|
icon: Codicon.add,
|
|
239
|
-
tooltip: ( localize(
|
|
239
|
+
tooltip: ( localize(7888, "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(7892, "Markdown")),
|
|
252
|
+
tooltip: ( localize(7893, "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(7894, "Markdown")),
|
|
266
|
+
tooltip: ( localize(7893, "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(7892, "Markdown")),
|
|
282
|
+
tooltip: ( localize(7893, "Add Markdown Cell"))
|
|
283
283
|
},
|
|
284
284
|
order: 1,
|
|
285
285
|
group: 'inline',
|