Skip to content

Commit e58b237

Browse files
Add sidebar entry to stop all kernels
1 parent a44cb16 commit e58b237

3 files changed

Lines changed: 15 additions & 0 deletions

File tree

libs/translation/src/lib/languages/en/en.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,10 @@ export const EN: ITranslation = {
564564
name: 'Reset Example Notebooks',
565565
description: '',
566566
},
567+
stopAllNotebookKernels: {
568+
name: 'Stop all IDL Notebook Kernels',
569+
description: '',
570+
},
567571
},
568572
terminal: {
569573
startTerminal: {

libs/translation/src/lib/translation.interface.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,8 @@ export interface ITranslation {
611611
notebookToProCode: ITreeInformation;
612612
/** Convert notebook to PDF */
613613
notebookToPDF: ITreeInformation;
614+
/** Stop all notebook kernels */
615+
stopAllNotebookKernels: ITreeInformation;
614616
};
615617
/** Deprecated, but tree entries for IDL terminals */
616618
terminal: {

libs/vscode/tree-view/src/lib/trees/notebook-actions.tree.interface.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,15 @@ export const NOTEBOOK_ACTIONS: IChild[] = [
3636
icon: 'pdf.svg',
3737
commandName: IDL_COMMANDS.NOTEBOOKS.CONVERT_TO_PDF,
3838
},
39+
{
40+
name: IDL_TRANSLATION.idl.tree.children.notebooks.stopAllNotebookKernels
41+
.name,
42+
description:
43+
IDL_TRANSLATION.idl.tree.children.notebooks.stopAllNotebookKernels
44+
.description,
45+
icon: 'stop.svg',
46+
commandName: IDL_COMMANDS.NOTEBOOKS.STOP_ALL_KERNELS,
47+
},
3948
{
4049
name: IDL_TRANSLATION.idl.tree.children.notebooks.openIDLExample.name,
4150
description:

0 commit comments

Comments
 (0)