@codingame/monaco-vscode-notebook-service-override 15.0.3 → 16.0.0
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/index.js +5 -11
- package/package.json +27 -26
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.css +6 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +22 -22
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticEditorContrib.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticEditorContrib.js +7 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticsActions.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.js +7 -3
- 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 +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.js +12 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/media/notebookFind.css +17 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.js +2 -2
- 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 +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +14 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookInlineVariables.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesDataSource.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +10 -10
- 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 +13 -13
- 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 +28 -28
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +54 -31
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +25 -25
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +26 -26
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +25 -25
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +18 -18
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/variablesActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +22 -22
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +72 -74
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.js +11 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibleView.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +33 -33
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +54 -12
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookWorkerServiceImpl.js +4 -3
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.js +42 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverServiceImpl.js +10 -2
- package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookCellMatching.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookCellMatching.js +173 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/services/{notebookSimpleWorker.d.ts → notebookWebWorker.d.ts} +24 -6
- package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookWebWorker.js +366 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookWebWorkerMain.js +5 -0
- 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/services/workingCopy/common/untitledFileWorkingCopy.d.ts +2 -2
- package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopy.js +1 -1
- package/worker.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/contribution.js +0 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookCellDecorators.d.ts +0 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookCellDecorators.js +0 -332
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookChatActionsOverlay.d.ts +0 -23
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookChatActionsOverlay.js +0 -299
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookChatEditController.d.ts +0 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookChatEditController.js +0 -179
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookOriginalCellModelFactory.d.ts +0 -21
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookOriginalCellModelFactory.js +0 -42
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookOriginalModelRefFactory.d.ts +0 -25
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookOriginalModelRefFactory.js +0 -77
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookSynchronizer.d.ts +0 -64
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookSynchronizer.js +0 -443
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookSynchronizerService.d.ts +0 -20
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookSynchronizerService.js +0 -86
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/media/notebookFind.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookSimpleWorker.js +0 -279
- package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookSimpleWorkerMain.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookSimpleWorkerMain.js +0 -5
- /package/vscode/src/vs/workbench/contrib/notebook/{browser/contrib/chatEdit/contribution.d.ts → common/services/notebookWebWorkerMain.d.ts} +0 -0
|
@@ -29,7 +29,7 @@ import { NotebookIndentUsingTabs, NotebookIndentUsingSpaces, NotebookChangeTabDi
|
|
|
29
29
|
import { QUIT_EDIT_CELL_COMMAND_ID, CellEditState, CHANGE_CELL_LANGUAGE, DETECT_CELL_LANGUAGE, getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
30
30
|
import { editIcon, stopEditIcon, deleteCellIcon, clearIcon } from '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/notebook/browser/notebookIcons';
|
|
31
31
|
import { CellKind, NotebookCellExecutionState, NotebookSetting, CellEditType } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
32
|
-
import { NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_TYPE, NOTEBOOK_CELL_MARKDOWN_EDIT_MODE, NOTEBOOK_CELL_EDITABLE, NOTEBOOK_CELL_LIST_FOCUSED, NOTEBOOK_OUTPUT_INPUT_FOCUSED, NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_OUTPUT_FOCUSED, NOTEBOOK_CELL_HAS_OUTPUTS, NOTEBOOK_USE_CONSOLIDATED_OUTPUT_BUTTON, NOTEBOOK_CELL_IS_FIRST_OUTPUT, NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_HAS_OUTPUTS } from '@codingame/monaco-vscode-
|
|
32
|
+
import { NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_TYPE, NOTEBOOK_CELL_MARKDOWN_EDIT_MODE, NOTEBOOK_CELL_EDITABLE, NOTEBOOK_CELL_LIST_FOCUSED, NOTEBOOK_OUTPUT_INPUT_FOCUSED, NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_OUTPUT_FOCUSED, NOTEBOOK_CELL_HAS_OUTPUTS, NOTEBOOK_USE_CONSOLIDATED_OUTPUT_BUTTON, NOTEBOOK_CELL_IS_FIRST_OUTPUT, NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_HAS_OUTPUTS } from '@codingame/monaco-vscode-a1eb43d5-da63-5f76-8ad4-acf0d6c3b749-common/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
33
33
|
import { INotebookExecutionStateService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service';
|
|
34
34
|
import { INotebookKernelService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookKernelService.service';
|
|
35
35
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
@@ -46,7 +46,7 @@ registerAction2(class EditCellAction extends NotebookCellAction {
|
|
|
46
46
|
constructor() {
|
|
47
47
|
super({
|
|
48
48
|
id: EDIT_CELL_COMMAND_ID,
|
|
49
|
-
title: ( localize(
|
|
49
|
+
title: ( localize(7987, "Edit Cell")),
|
|
50
50
|
keybinding: {
|
|
51
51
|
when: ( ContextKeyExpr.and(
|
|
52
52
|
NOTEBOOK_CELL_LIST_FOCUSED,
|
|
@@ -82,7 +82,7 @@ registerAction2(class QuitEditCellAction extends NotebookCellAction {
|
|
|
82
82
|
constructor() {
|
|
83
83
|
super({
|
|
84
84
|
id: QUIT_EDIT_CELL_COMMAND_ID,
|
|
85
|
-
title: ( localize(
|
|
85
|
+
title: ( localize(7988, "Stop Editing Cell")),
|
|
86
86
|
menu: {
|
|
87
87
|
id: MenuId.NotebookCellTitle,
|
|
88
88
|
when: ( ContextKeyExpr.and(( NOTEBOOK_CELL_TYPE.isEqualTo('markup')), NOTEBOOK_CELL_MARKDOWN_EDIT_MODE, NOTEBOOK_CELL_EDITABLE)),
|
|
@@ -123,7 +123,7 @@ registerAction2(class DeleteCellAction extends NotebookCellAction {
|
|
|
123
123
|
constructor() {
|
|
124
124
|
super({
|
|
125
125
|
id: DELETE_CELL_COMMAND_ID,
|
|
126
|
-
title: ( localize(
|
|
126
|
+
title: ( localize(7989, "Delete Cell")),
|
|
127
127
|
keybinding: {
|
|
128
128
|
primary: KeyCode.Delete,
|
|
129
129
|
mac: {
|
|
@@ -160,13 +160,13 @@ registerAction2(class DeleteCellAction extends NotebookCellAction {
|
|
|
160
160
|
const configService = accessor.get(IConfigurationService);
|
|
161
161
|
if (runState === NotebookCellExecutionState.Executing && configService.getValue(NotebookSetting.confirmDeleteRunningCell)) {
|
|
162
162
|
const dialogService = accessor.get(IDialogService);
|
|
163
|
-
const primaryButton = ( localize(
|
|
163
|
+
const primaryButton = ( localize(7990, "Delete"));
|
|
164
164
|
confirmation = await dialogService.confirm({
|
|
165
165
|
type: 'question',
|
|
166
|
-
message: ( localize(
|
|
166
|
+
message: ( localize(7991, "This cell is running, are you sure you want to delete it?")),
|
|
167
167
|
primaryButton: primaryButton,
|
|
168
168
|
checkbox: {
|
|
169
|
-
label: ( localize(
|
|
169
|
+
label: ( localize(7992, "Do not ask me again"))
|
|
170
170
|
}
|
|
171
171
|
});
|
|
172
172
|
}
|
|
@@ -186,7 +186,7 @@ registerAction2(class ClearCellOutputsAction extends NotebookCellAction {
|
|
|
186
186
|
constructor() {
|
|
187
187
|
super({
|
|
188
188
|
id: CLEAR_CELL_OUTPUTS_COMMAND_ID,
|
|
189
|
-
title: ( localize(
|
|
189
|
+
title: ( localize(7993, 'Clear Cell Outputs')),
|
|
190
190
|
menu: [
|
|
191
191
|
{
|
|
192
192
|
id: MenuId.NotebookCellTitle,
|
|
@@ -250,7 +250,7 @@ registerAction2(class ClearAllCellOutputsAction extends NotebookAction {
|
|
|
250
250
|
constructor() {
|
|
251
251
|
super({
|
|
252
252
|
id: CLEAR_ALL_CELLS_OUTPUTS_COMMAND_ID,
|
|
253
|
-
title: ( localize(
|
|
253
|
+
title: ( localize(7994, 'Clear All Outputs')),
|
|
254
254
|
precondition: NOTEBOOK_HAS_OUTPUTS,
|
|
255
255
|
menu: [
|
|
256
256
|
{
|
|
@@ -307,14 +307,14 @@ registerAction2(class ChangeCellLanguageAction extends NotebookCellAction {
|
|
|
307
307
|
constructor() {
|
|
308
308
|
super({
|
|
309
309
|
id: CHANGE_CELL_LANGUAGE,
|
|
310
|
-
title: ( localize(
|
|
310
|
+
title: ( localize(7995, 'Change Cell Language')),
|
|
311
311
|
keybinding: {
|
|
312
312
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
313
313
|
primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KeyK, KeyCode.KeyM),
|
|
314
314
|
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_EDITABLE))
|
|
315
315
|
},
|
|
316
316
|
metadata: {
|
|
317
|
-
description: ( localize(
|
|
317
|
+
description: ( localize(7995, 'Change Cell Language')),
|
|
318
318
|
args: [
|
|
319
319
|
{
|
|
320
320
|
name: 'range',
|
|
@@ -387,10 +387,10 @@ registerAction2(class ChangeCellLanguageAction extends NotebookCellAction {
|
|
|
387
387
|
providerLanguages.forEach(languageId => {
|
|
388
388
|
let description;
|
|
389
389
|
if (context.cell.cellKind === CellKind.Markup ? (languageId === 'markdown') : (languageId === context.cell.language)) {
|
|
390
|
-
description = ( localize(
|
|
390
|
+
description = ( localize(7996, "({0}) - Current Language", languageId));
|
|
391
391
|
}
|
|
392
392
|
else {
|
|
393
|
-
description = ( localize(
|
|
393
|
+
description = ( localize(7997, "({0})", languageId));
|
|
394
394
|
}
|
|
395
395
|
const languageName = languageService.getLanguageName(languageId);
|
|
396
396
|
if (!languageName) {
|
|
@@ -413,16 +413,16 @@ registerAction2(class ChangeCellLanguageAction extends NotebookCellAction {
|
|
|
413
413
|
return a.description.localeCompare(b.description);
|
|
414
414
|
});
|
|
415
415
|
const autoDetectMode = {
|
|
416
|
-
label: ( localize(
|
|
416
|
+
label: ( localize(7998, "Auto Detect"))
|
|
417
417
|
};
|
|
418
418
|
const picks = [
|
|
419
419
|
autoDetectMode,
|
|
420
|
-
{ type: 'separator', label: ( localize(
|
|
420
|
+
{ type: 'separator', label: ( localize(7999, "languages (identifier)")) },
|
|
421
421
|
...topItems,
|
|
422
422
|
{ type: 'separator' },
|
|
423
423
|
...mainItems
|
|
424
424
|
];
|
|
425
|
-
const selection = await quickInputService.pick(picks, { placeHolder: ( localize(
|
|
425
|
+
const selection = await quickInputService.pick(picks, { placeHolder: ( localize(8000, "Select Language Mode")) });
|
|
426
426
|
const languageId = selection === autoDetectMode
|
|
427
427
|
? await languageDetectionService.detectLanguage(context.cell.uri)
|
|
428
428
|
: selection?.languageId;
|
|
@@ -455,7 +455,7 @@ registerAction2(class DetectCellLanguageAction extends NotebookCellAction {
|
|
|
455
455
|
constructor() {
|
|
456
456
|
super({
|
|
457
457
|
id: DETECT_CELL_LANGUAGE,
|
|
458
|
-
title: ( localize2(
|
|
458
|
+
title: ( localize2(8001, "Accept Detected Language for Cell")),
|
|
459
459
|
f1: true,
|
|
460
460
|
precondition: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_EDITABLE)),
|
|
461
461
|
keybinding: { primary: KeyCode.KeyD | KeyMod.Alt | KeyMod.Shift, weight: KeybindingWeight.WorkbenchContrib }
|
|
@@ -473,7 +473,7 @@ registerAction2(class DetectCellLanguageAction extends NotebookCellAction {
|
|
|
473
473
|
setCellToLanguage(detection, context);
|
|
474
474
|
}
|
|
475
475
|
else {
|
|
476
|
-
notificationService.warn(( localize(
|
|
476
|
+
notificationService.warn(( localize(8002, "Unable to detect cell language")));
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
479
|
});
|
|
@@ -498,7 +498,7 @@ registerAction2(class SelectNotebookIndentation extends NotebookAction {
|
|
|
498
498
|
constructor() {
|
|
499
499
|
super({
|
|
500
500
|
id: SELECT_NOTEBOOK_INDENTATION_ID,
|
|
501
|
-
title: ( localize2(
|
|
501
|
+
title: ( localize2(8003, 'Select Indentation')),
|
|
502
502
|
f1: true,
|
|
503
503
|
precondition: ( ContextKeyExpr.and(
|
|
504
504
|
NOTEBOOK_IS_ACTIVE_EDITOR,
|
|
@@ -516,10 +516,10 @@ registerAction2(class SelectNotebookIndentation extends NotebookAction {
|
|
|
516
516
|
const instantiationService = accessor.get(IInstantiationService);
|
|
517
517
|
const activeNotebook = getNotebookEditorFromEditorPane(editorService.activeEditorPane);
|
|
518
518
|
if (!activeNotebook || activeNotebook.isDisposed) {
|
|
519
|
-
return quickInputService.pick([{ label: ( localize(
|
|
519
|
+
return quickInputService.pick([{ label: ( localize(8004, "No notebook editor active at this time")) }]);
|
|
520
520
|
}
|
|
521
521
|
if (activeNotebook.isReadOnly) {
|
|
522
|
-
return quickInputService.pick([{ label: ( localize(
|
|
522
|
+
return quickInputService.pick([{ label: ( localize(8005, "The active notebook editor is read-only.")) }]);
|
|
523
523
|
}
|
|
524
524
|
const picks = ( [
|
|
525
525
|
(
|
|
@@ -541,9 +541,9 @@ registerAction2(class SelectNotebookIndentation extends NotebookAction {
|
|
|
541
541
|
}
|
|
542
542
|
};
|
|
543
543
|
}));
|
|
544
|
-
picks.splice(3, 0, { type: 'separator', label: ( localize(
|
|
545
|
-
picks.unshift({ type: 'separator', label: ( localize(
|
|
546
|
-
const action = await quickInputService.pick(picks, { placeHolder: ( localize(
|
|
544
|
+
picks.splice(3, 0, { type: 'separator', label: ( localize(8006, "convert file")) });
|
|
545
|
+
picks.unshift({ type: 'separator', label: ( localize(8007, "change view")) });
|
|
546
|
+
const action = await quickInputService.pick(picks, { placeHolder: ( localize(8008, "Select Action")), matchOnDetail: true });
|
|
547
547
|
if (!action) {
|
|
548
548
|
return;
|
|
549
549
|
}
|
|
@@ -556,7 +556,7 @@ registerAction2(class CommentSelectedCellsAction extends NotebookMultiCellAction
|
|
|
556
556
|
constructor() {
|
|
557
557
|
super({
|
|
558
558
|
id: COMMENT_SELECTED_CELLS_ID,
|
|
559
|
-
title: ( localize(
|
|
559
|
+
title: ( localize(8009, "Comment Selected Cells")),
|
|
560
560
|
keybinding: {
|
|
561
561
|
when: ( ContextKeyExpr.and(
|
|
562
562
|
NOTEBOOK_EDITOR_FOCUSED,
|
|
@@ -13,11 +13,11 @@ import { IDebugService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/
|
|
|
13
13
|
import { CTX_INLINE_CHAT_FOCUSED } from '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/inlineChat/common/inlineChat';
|
|
14
14
|
import { insertCell } from '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/notebook/browser/controller/cellOperations';
|
|
15
15
|
import { NotebookChatController } from '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatController';
|
|
16
|
-
import { NotebookAction,
|
|
16
|
+
import { NotebookAction, getContextFromUri, getContextFromActiveEditor, NotebookMultiCellAction, cellExecutionArgs, NOTEBOOK_EDITOR_WIDGET_ACTION_WEIGHT, parseMultiCellExecutionArgs, CELL_TITLE_CELL_GROUP_ID, CellToolbarOrder, NotebookCellAction } from '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
|
|
17
17
|
import { CellEditState, EXECUTE_CELL_COMMAND_ID, ScrollToRevealBehavior, CellFocusMode } from '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
18
18
|
import { executeAllIcon, executeIcon, executeAboveIcon, executeBelowIcon, stopIcon, executingStateIcon, errorStateIcon } from '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/notebook/browser/notebookIcons';
|
|
19
19
|
import { CellKind, NotebookSetting, CellUri } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
20
|
-
import { NOTEBOOK_CELL_TYPE, NOTEBOOK_KERNEL_COUNT, NOTEBOOK_KERNEL_SOURCE_COUNT, NOTEBOOK_MISSING_KERNEL_EXTENSION, NOTEBOOK_CELL_EXECUTING, NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_INTERRUPTIBLE_KERNEL, NOTEBOOK_HAS_SOMETHING_RUNNING, NOTEBOOK_CELL_LIST_FOCUSED, NOTEBOOK_CELL_EXECUTION_STATE, NOTEBOOK_HAS_RUNNING_CELL, NOTEBOOK_LAST_CELL_FAILED } from '@codingame/monaco-vscode-
|
|
20
|
+
import { NOTEBOOK_CELL_TYPE, NOTEBOOK_KERNEL_COUNT, NOTEBOOK_KERNEL_SOURCE_COUNT, NOTEBOOK_MISSING_KERNEL_EXTENSION, NOTEBOOK_CELL_EXECUTING, NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_INTERRUPTIBLE_KERNEL, NOTEBOOK_HAS_SOMETHING_RUNNING, NOTEBOOK_CELL_LIST_FOCUSED, NOTEBOOK_CELL_EXECUTION_STATE, NOTEBOOK_HAS_RUNNING_CELL, NOTEBOOK_LAST_CELL_FAILED } from '@codingame/monaco-vscode-a1eb43d5-da63-5f76-8ad4-acf0d6c3b749-common/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
21
21
|
import { NotebookEditorInput } from '@codingame/monaco-vscode-9b5a5e82-d649-5455-b4bf-ef90d6afd294-common/vscode/vs/workbench/contrib/notebook/common/notebookEditorInput';
|
|
22
22
|
import { INotebookExecutionStateService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service';
|
|
23
23
|
import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
@@ -88,7 +88,7 @@ registerAction2(class RenderAllMarkdownCellsAction extends NotebookAction {
|
|
|
88
88
|
constructor() {
|
|
89
89
|
super({
|
|
90
90
|
id: RENDER_ALL_MARKDOWN_CELLS,
|
|
91
|
-
title: ( localize(
|
|
91
|
+
title: ( localize(8010, "Render All Markdown Cells")),
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
94
|
async runWithContext(accessor, context) {
|
|
@@ -99,10 +99,10 @@ registerAction2(class ExecuteNotebookAction extends NotebookAction {
|
|
|
99
99
|
constructor() {
|
|
100
100
|
super({
|
|
101
101
|
id: EXECUTE_NOTEBOOK_COMMAND_ID,
|
|
102
|
-
title: ( localize(
|
|
102
|
+
title: ( localize(8011, "Run All")),
|
|
103
103
|
icon: executeAllIcon,
|
|
104
104
|
metadata: {
|
|
105
|
-
description: ( localize(
|
|
105
|
+
description: ( localize(8011, "Run All")),
|
|
106
106
|
args: [
|
|
107
107
|
{
|
|
108
108
|
name: 'uri',
|
|
@@ -115,13 +115,13 @@ registerAction2(class ExecuteNotebookAction extends NotebookAction {
|
|
|
115
115
|
id: MenuId.EditorTitle,
|
|
116
116
|
order: -1,
|
|
117
117
|
group: 'navigation',
|
|
118
|
-
when: ( ContextKeyExpr.and(NOTEBOOK_IS_ACTIVE_EDITOR,
|
|
118
|
+
when: ( ContextKeyExpr.and(NOTEBOOK_IS_ACTIVE_EDITOR, ( ContextKeyExpr.or(( NOTEBOOK_INTERRUPTIBLE_KERNEL.toNegated()), ( NOTEBOOK_HAS_SOMETHING_RUNNING.toNegated()))), ( ContextKeyExpr.notEquals('config.notebook.globalToolbar', true))))
|
|
119
119
|
},
|
|
120
120
|
{
|
|
121
121
|
id: MenuId.NotebookToolbar,
|
|
122
122
|
order: -1,
|
|
123
123
|
group: 'navigation/execute',
|
|
124
|
-
when: ( ContextKeyExpr.and(
|
|
124
|
+
when: ( ContextKeyExpr.and(( ContextKeyExpr.or(( NOTEBOOK_INTERRUPTIBLE_KERNEL.toNegated()), ( NOTEBOOK_HAS_SOMETHING_RUNNING.toNegated()))), ( ContextKeyExpr.and(NOTEBOOK_HAS_SOMETHING_RUNNING, ( NOTEBOOK_INTERRUPTIBLE_KERNEL.toNegated())))?.negate(), ( ContextKeyExpr.equals('config.notebook.globalToolbar', true))))
|
|
125
125
|
}
|
|
126
126
|
]
|
|
127
127
|
});
|
|
@@ -146,7 +146,7 @@ registerAction2(class ExecuteCell extends NotebookMultiCellAction {
|
|
|
146
146
|
super({
|
|
147
147
|
id: EXECUTE_CELL_COMMAND_ID,
|
|
148
148
|
precondition: executeThisCellCondition,
|
|
149
|
-
title: ( localize(
|
|
149
|
+
title: ( localize(8012, "Execute Cell")),
|
|
150
150
|
keybinding: {
|
|
151
151
|
when: NOTEBOOK_CELL_LIST_FOCUSED,
|
|
152
152
|
primary: KeyMod.WinCtrl | KeyCode.Enter,
|
|
@@ -161,7 +161,7 @@ registerAction2(class ExecuteCell extends NotebookMultiCellAction {
|
|
|
161
161
|
group: 'inline'
|
|
162
162
|
},
|
|
163
163
|
metadata: {
|
|
164
|
-
description: ( localize(
|
|
164
|
+
description: ( localize(8012, "Execute Cell")),
|
|
165
165
|
args: cellExecutionArgs
|
|
166
166
|
},
|
|
167
167
|
icon: executeIcon
|
|
@@ -195,7 +195,7 @@ registerAction2(class ExecuteAboveCells extends NotebookMultiCellAction {
|
|
|
195
195
|
super({
|
|
196
196
|
id: EXECUTE_CELLS_ABOVE,
|
|
197
197
|
precondition: executeCondition,
|
|
198
|
-
title: ( localize(
|
|
198
|
+
title: ( localize(8013, "Execute Above Cells")),
|
|
199
199
|
menu: [
|
|
200
200
|
{
|
|
201
201
|
id: MenuId.NotebookCellExecute,
|
|
@@ -235,7 +235,7 @@ registerAction2(class ExecuteCellAndBelow extends NotebookMultiCellAction {
|
|
|
235
235
|
super({
|
|
236
236
|
id: EXECUTE_CELL_AND_BELOW,
|
|
237
237
|
precondition: executeCondition,
|
|
238
|
-
title: ( localize(
|
|
238
|
+
title: ( localize(8014, "Execute Cell and Below")),
|
|
239
239
|
menu: [
|
|
240
240
|
{
|
|
241
241
|
id: MenuId.NotebookCellExecute,
|
|
@@ -275,9 +275,9 @@ registerAction2(class ExecuteCellFocusContainer extends NotebookMultiCellAction
|
|
|
275
275
|
super({
|
|
276
276
|
id: EXECUTE_CELL_FOCUS_CONTAINER_COMMAND_ID,
|
|
277
277
|
precondition: executeThisCellCondition,
|
|
278
|
-
title: ( localize(
|
|
278
|
+
title: ( localize(8015, "Execute Cell and Focus Container")),
|
|
279
279
|
metadata: {
|
|
280
|
-
description: ( localize(
|
|
280
|
+
description: ( localize(8015, "Execute Cell and Focus Container")),
|
|
281
281
|
args: cellExecutionArgs
|
|
282
282
|
},
|
|
283
283
|
icon: executeIcon
|
|
@@ -306,7 +306,7 @@ registerAction2(class CancelExecuteCell extends NotebookMultiCellAction {
|
|
|
306
306
|
super({
|
|
307
307
|
id: CANCEL_CELL_COMMAND_ID,
|
|
308
308
|
precondition: cellCancelCondition,
|
|
309
|
-
title: ( localize(
|
|
309
|
+
title: ( localize(8016, "Stop Cell Execution")),
|
|
310
310
|
icon: stopIcon,
|
|
311
311
|
menu: {
|
|
312
312
|
id: MenuId.NotebookCellExecutePrimary,
|
|
@@ -314,7 +314,7 @@ registerAction2(class CancelExecuteCell extends NotebookMultiCellAction {
|
|
|
314
314
|
group: 'inline'
|
|
315
315
|
},
|
|
316
316
|
metadata: {
|
|
317
|
-
description: ( localize(
|
|
317
|
+
description: ( localize(8016, "Stop Cell Execution")),
|
|
318
318
|
args: [
|
|
319
319
|
{
|
|
320
320
|
name: 'options',
|
|
@@ -369,7 +369,7 @@ registerAction2(class ExecuteCellSelectBelow extends NotebookCellAction {
|
|
|
369
369
|
super({
|
|
370
370
|
id: EXECUTE_CELL_SELECT_BELOW,
|
|
371
371
|
precondition: ( ContextKeyExpr.or(executeThisCellCondition, ( NOTEBOOK_CELL_TYPE.isEqualTo('markup')))),
|
|
372
|
-
title: ( localize(
|
|
372
|
+
title: ( localize(8017, "Execute Notebook Cell and Select Below")),
|
|
373
373
|
keybinding: {
|
|
374
374
|
when: ( ContextKeyExpr.and(NOTEBOOK_CELL_LIST_FOCUSED, ( CTX_INLINE_CHAT_FOCUSED.negate()))),
|
|
375
375
|
primary: KeyMod.Shift | KeyCode.Enter,
|
|
@@ -429,7 +429,7 @@ registerAction2(class ExecuteCellInsertBelow extends NotebookCellAction {
|
|
|
429
429
|
super({
|
|
430
430
|
id: EXECUTE_CELL_INSERT_BELOW,
|
|
431
431
|
precondition: ( ContextKeyExpr.or(executeThisCellCondition, ( NOTEBOOK_CELL_TYPE.isEqualTo('markup')))),
|
|
432
|
-
title: ( localize(
|
|
432
|
+
title: ( localize(8018, "Execute Notebook Cell and Insert Below")),
|
|
433
433
|
keybinding: {
|
|
434
434
|
when: NOTEBOOK_CELL_LIST_FOCUSED,
|
|
435
435
|
primary: KeyMod.Alt | KeyCode.Enter,
|
|
@@ -466,7 +466,7 @@ registerAction2(class CancelAllNotebook extends CancelNotebook {
|
|
|
466
466
|
constructor() {
|
|
467
467
|
super({
|
|
468
468
|
id: CANCEL_NOTEBOOK_COMMAND_ID,
|
|
469
|
-
title: ( localize2(
|
|
469
|
+
title: ( localize2(8019, "Stop Execution")),
|
|
470
470
|
icon: stopIcon,
|
|
471
471
|
menu: [
|
|
472
472
|
{
|
|
@@ -489,7 +489,7 @@ registerAction2(class InterruptNotebook extends CancelNotebook {
|
|
|
489
489
|
constructor() {
|
|
490
490
|
super({
|
|
491
491
|
id: INTERRUPT_NOTEBOOK_COMMAND_ID,
|
|
492
|
-
title: ( localize2(
|
|
492
|
+
title: ( localize2(8020, "Interrupt")),
|
|
493
493
|
precondition: ( ContextKeyExpr.and(NOTEBOOK_HAS_SOMETHING_RUNNING, NOTEBOOK_INTERRUPTIBLE_KERNEL)),
|
|
494
494
|
icon: stopIcon,
|
|
495
495
|
menu: [
|
|
@@ -523,7 +523,7 @@ registerAction2(class InterruptNotebook extends CancelNotebook {
|
|
|
523
523
|
}
|
|
524
524
|
});
|
|
525
525
|
MenuRegistry.appendMenuItem(MenuId.NotebookToolbar, {
|
|
526
|
-
title: ( localize(
|
|
526
|
+
title: ( localize(8021, "Go To")),
|
|
527
527
|
submenu: MenuId.NotebookCellExecuteGoTo,
|
|
528
528
|
group: 'navigation/execute',
|
|
529
529
|
order: 20,
|
|
@@ -533,9 +533,9 @@ registerAction2(class RevealRunningCellAction extends NotebookAction {
|
|
|
533
533
|
constructor() {
|
|
534
534
|
super({
|
|
535
535
|
id: REVEAL_RUNNING_CELL,
|
|
536
|
-
title: ( localize(
|
|
537
|
-
tooltip: ( localize(
|
|
538
|
-
shortTitle: ( localize(
|
|
536
|
+
title: ( localize(8022, "Go to Running Cell")),
|
|
537
|
+
tooltip: ( localize(8022, "Go to Running Cell")),
|
|
538
|
+
shortTitle: ( localize(8022, "Go to Running Cell")),
|
|
539
539
|
precondition: NOTEBOOK_HAS_RUNNING_CELL,
|
|
540
540
|
menu: [
|
|
541
541
|
{
|
|
@@ -593,9 +593,9 @@ registerAction2(class RevealLastFailedCellAction extends NotebookAction {
|
|
|
593
593
|
constructor() {
|
|
594
594
|
super({
|
|
595
595
|
id: REVEAL_LAST_FAILED_CELL,
|
|
596
|
-
title: ( localize(
|
|
597
|
-
tooltip: ( localize(
|
|
598
|
-
shortTitle: ( localize(
|
|
596
|
+
title: ( localize(8023, "Go to Most Recently Failed Cell")),
|
|
597
|
+
tooltip: ( localize(8023, "Go to Most Recently Failed Cell")),
|
|
598
|
+
shortTitle: ( localize(8024, "Go to Most Recently Failed Cell")),
|
|
599
599
|
precondition: NOTEBOOK_LAST_CELL_FAILED,
|
|
600
600
|
menu: [
|
|
601
601
|
{
|
|
@@ -9,7 +9,7 @@ import { InputFocusedContext } from '@codingame/monaco-vscode-api/vscode/vs/plat
|
|
|
9
9
|
import { KeybindingWeight } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
10
10
|
import { insertCell } from '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/notebook/browser/controller/cellOperations';
|
|
11
11
|
import { NotebookAction } from '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
|
|
12
|
-
import { NOTEBOOK_CELL_LIST_FOCUSED, NOTEBOOK_EDITOR_EDITABLE } from '@codingame/monaco-vscode-
|
|
12
|
+
import { NOTEBOOK_CELL_LIST_FOCUSED, NOTEBOOK_EDITOR_EDITABLE } from '@codingame/monaco-vscode-a1eb43d5-da63-5f76-8ad4-acf0d6c3b749-common/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
13
13
|
import { CellKind, NotebookSetting } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
14
14
|
import { CTX_NOTEBOOK_CHAT_OUTER_FOCUS_POSITION } from '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext';
|
|
15
15
|
import { INotebookKernelHistoryService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookKernelService.service';
|
|
@@ -58,7 +58,7 @@ registerAction2(class InsertCodeCellAboveAction extends InsertCellCommand {
|
|
|
58
58
|
constructor() {
|
|
59
59
|
super({
|
|
60
60
|
id: INSERT_CODE_CELL_ABOVE_COMMAND_ID,
|
|
61
|
-
title: ( localize(
|
|
61
|
+
title: ( localize(8027, "Insert Code Cell Above")),
|
|
62
62
|
keybinding: {
|
|
63
63
|
primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.Enter,
|
|
64
64
|
when: ( ContextKeyExpr.and(NOTEBOOK_CELL_LIST_FOCUSED, ( InputFocusedContext.toNegated()))),
|
|
@@ -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(8028, "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(8029, "Insert Code Cell Below")),
|
|
87
87
|
keybinding: {
|
|
88
88
|
primary: KeyMod.CtrlCmd | KeyCode.Enter,
|
|
89
89
|
when: ( ContextKeyExpr.and(NOTEBOOK_CELL_LIST_FOCUSED, ( InputFocusedContext.toNegated()), ( CTX_NOTEBOOK_CHAT_OUTER_FOCUS_POSITION.isEqualTo('')))),
|
|
@@ -100,7 +100,7 @@ registerAction2(class InsertCodeCellBelowAndFocusContainerAction extends InsertC
|
|
|
100
100
|
constructor() {
|
|
101
101
|
super({
|
|
102
102
|
id: INSERT_CODE_CELL_BELOW_AND_FOCUS_CONTAINER_COMMAND_ID,
|
|
103
|
-
title: ( localize(
|
|
103
|
+
title: ( localize(8030, "Insert Code Cell Below and Focus Container")),
|
|
104
104
|
}, CellKind.Code, 'below', false);
|
|
105
105
|
}
|
|
106
106
|
});
|
|
@@ -108,7 +108,7 @@ registerAction2(class InsertMarkdownCellAboveAction extends InsertCellCommand {
|
|
|
108
108
|
constructor() {
|
|
109
109
|
super({
|
|
110
110
|
id: INSERT_MARKDOWN_CELL_ABOVE_COMMAND_ID,
|
|
111
|
-
title: ( localize(
|
|
111
|
+
title: ( localize(8031, "Insert Markdown Cell Above")),
|
|
112
112
|
menu: {
|
|
113
113
|
id: MenuId.NotebookCellInsert,
|
|
114
114
|
order: 2
|
|
@@ -120,7 +120,7 @@ registerAction2(class InsertMarkdownCellBelowAction extends InsertCellCommand {
|
|
|
120
120
|
constructor() {
|
|
121
121
|
super({
|
|
122
122
|
id: INSERT_MARKDOWN_CELL_BELOW_COMMAND_ID,
|
|
123
|
-
title: ( localize(
|
|
123
|
+
title: ( localize(8032, "Insert Markdown Cell Below")),
|
|
124
124
|
menu: {
|
|
125
125
|
id: MenuId.NotebookCellInsert,
|
|
126
126
|
order: 3
|
|
@@ -132,7 +132,7 @@ registerAction2(class InsertCodeCellAtTopAction extends NotebookAction {
|
|
|
132
132
|
constructor() {
|
|
133
133
|
super({
|
|
134
134
|
id: INSERT_CODE_CELL_AT_TOP_COMMAND_ID,
|
|
135
|
-
title: ( localize(
|
|
135
|
+
title: ( localize(8033, "Add Code Cell At Top")),
|
|
136
136
|
f1: false
|
|
137
137
|
});
|
|
138
138
|
}
|
|
@@ -155,7 +155,7 @@ registerAction2(class InsertMarkdownCellAtTopAction extends NotebookAction {
|
|
|
155
155
|
constructor() {
|
|
156
156
|
super({
|
|
157
157
|
id: INSERT_MARKDOWN_CELL_AT_TOP_COMMAND_ID,
|
|
158
|
-
title: ( localize(
|
|
158
|
+
title: ( localize(8034, "Add Markdown Cell At Top")),
|
|
159
159
|
f1: false
|
|
160
160
|
});
|
|
161
161
|
}
|
|
@@ -177,8 +177,8 @@ registerAction2(class InsertMarkdownCellAtTopAction extends NotebookAction {
|
|
|
177
177
|
MenuRegistry.appendMenuItem(MenuId.NotebookCellBetween, {
|
|
178
178
|
command: {
|
|
179
179
|
id: INSERT_CODE_CELL_BELOW_COMMAND_ID,
|
|
180
|
-
title: '$(add) ' + ( localize(
|
|
181
|
-
tooltip: ( localize(
|
|
180
|
+
title: '$(add) ' + ( localize(8035, "Code")),
|
|
181
|
+
tooltip: ( localize(8036, "Add Code Cell"))
|
|
182
182
|
},
|
|
183
183
|
order: 0,
|
|
184
184
|
group: 'inline',
|
|
@@ -187,9 +187,9 @@ MenuRegistry.appendMenuItem(MenuId.NotebookCellBetween, {
|
|
|
187
187
|
MenuRegistry.appendMenuItem(MenuId.NotebookCellBetween, {
|
|
188
188
|
command: {
|
|
189
189
|
id: INSERT_CODE_CELL_BELOW_COMMAND_ID,
|
|
190
|
-
title: ( localize(
|
|
190
|
+
title: ( localize(8037, "Add Code")),
|
|
191
191
|
icon: Codicon.add,
|
|
192
|
-
tooltip: ( localize(
|
|
192
|
+
tooltip: ( localize(8036, "Add Code Cell"))
|
|
193
193
|
},
|
|
194
194
|
order: 0,
|
|
195
195
|
group: 'inline',
|
|
@@ -199,8 +199,8 @@ MenuRegistry.appendMenuItem(MenuId.NotebookToolbar, {
|
|
|
199
199
|
command: {
|
|
200
200
|
id: INSERT_CODE_CELL_BELOW_COMMAND_ID,
|
|
201
201
|
icon: Codicon.add,
|
|
202
|
-
title: ( localize(
|
|
203
|
-
tooltip: ( localize(
|
|
202
|
+
title: ( localize(8038, "Code")),
|
|
203
|
+
tooltip: ( localize(8036, "Add Code Cell"))
|
|
204
204
|
},
|
|
205
205
|
order: -5,
|
|
206
206
|
group: 'navigation/add',
|
|
@@ -209,8 +209,8 @@ MenuRegistry.appendMenuItem(MenuId.NotebookToolbar, {
|
|
|
209
209
|
MenuRegistry.appendMenuItem(MenuId.NotebookCellListTop, {
|
|
210
210
|
command: {
|
|
211
211
|
id: INSERT_CODE_CELL_AT_TOP_COMMAND_ID,
|
|
212
|
-
title: '$(add) ' + ( localize(
|
|
213
|
-
tooltip: ( localize(
|
|
212
|
+
title: '$(add) ' + ( localize(8035, "Code")),
|
|
213
|
+
tooltip: ( localize(8036, "Add Code Cell"))
|
|
214
214
|
},
|
|
215
215
|
order: 0,
|
|
216
216
|
group: 'inline',
|
|
@@ -219,9 +219,9 @@ MenuRegistry.appendMenuItem(MenuId.NotebookCellListTop, {
|
|
|
219
219
|
MenuRegistry.appendMenuItem(MenuId.NotebookCellListTop, {
|
|
220
220
|
command: {
|
|
221
221
|
id: INSERT_CODE_CELL_AT_TOP_COMMAND_ID,
|
|
222
|
-
title: ( localize(
|
|
222
|
+
title: ( localize(8039, "Add Code")),
|
|
223
223
|
icon: Codicon.add,
|
|
224
|
-
tooltip: ( localize(
|
|
224
|
+
tooltip: ( localize(8036, "Add Code Cell"))
|
|
225
225
|
},
|
|
226
226
|
order: 0,
|
|
227
227
|
group: 'inline',
|
|
@@ -230,8 +230,8 @@ MenuRegistry.appendMenuItem(MenuId.NotebookCellListTop, {
|
|
|
230
230
|
MenuRegistry.appendMenuItem(MenuId.NotebookCellBetween, {
|
|
231
231
|
command: {
|
|
232
232
|
id: INSERT_MARKDOWN_CELL_BELOW_COMMAND_ID,
|
|
233
|
-
title: '$(add) ' + ( localize(
|
|
234
|
-
tooltip: ( localize(
|
|
233
|
+
title: '$(add) ' + ( localize(8040, "Markdown")),
|
|
234
|
+
tooltip: ( localize(8041, "Add Markdown Cell"))
|
|
235
235
|
},
|
|
236
236
|
order: 1,
|
|
237
237
|
group: 'inline',
|
|
@@ -241,8 +241,8 @@ MenuRegistry.appendMenuItem(MenuId.NotebookToolbar, {
|
|
|
241
241
|
command: {
|
|
242
242
|
id: INSERT_MARKDOWN_CELL_BELOW_COMMAND_ID,
|
|
243
243
|
icon: Codicon.add,
|
|
244
|
-
title: ( localize(
|
|
245
|
-
tooltip: ( localize(
|
|
244
|
+
title: ( localize(8042, "Markdown")),
|
|
245
|
+
tooltip: ( localize(8041, "Add Markdown Cell"))
|
|
246
246
|
},
|
|
247
247
|
order: -5,
|
|
248
248
|
group: 'navigation/add',
|
|
@@ -251,8 +251,8 @@ MenuRegistry.appendMenuItem(MenuId.NotebookToolbar, {
|
|
|
251
251
|
MenuRegistry.appendMenuItem(MenuId.NotebookCellListTop, {
|
|
252
252
|
command: {
|
|
253
253
|
id: INSERT_MARKDOWN_CELL_AT_TOP_COMMAND_ID,
|
|
254
|
-
title: '$(add) ' + ( localize(
|
|
255
|
-
tooltip: ( localize(
|
|
254
|
+
title: '$(add) ' + ( localize(8040, "Markdown")),
|
|
255
|
+
tooltip: ( localize(8041, "Add Markdown Cell"))
|
|
256
256
|
},
|
|
257
257
|
order: 1,
|
|
258
258
|
group: 'inline',
|