Skip to content

Commit

Permalink
Restore accidentally removed ToC context menu (#11617)
Browse files Browse the repository at this point in the history
  • Loading branch information
krassowski committed Dec 6, 2021
1 parent 0bae8b9 commit da0a403
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/toc-extension/src/index.ts
Expand Up @@ -125,6 +125,11 @@ async function activateTOC(
label: trans.__('Run Cell(s)')
});

app.contextMenu.addItem({
selector: '.jp-tocItem',
command: CommandIDs.runCells
});

if (restorer) {
// Add the ToC widget to the application restorer:
restorer.add(toc, '@jupyterlab/toc:plugin');
Expand Down

0 comments on commit da0a403

Please sign in to comment.