@@ -236,12 +236,11 @@ const pages: JupyterFrontEndPlugin<void> = {
236
236
id : '@jupyter-notebook/application-extension:pages' ,
237
237
autoStart : true ,
238
238
requires : [ ITranslator ] ,
239
- optional : [ ICommandPalette , IMainMenu ] ,
239
+ optional : [ ICommandPalette ] ,
240
240
activate : (
241
241
app : JupyterFrontEnd ,
242
242
translator : ITranslator ,
243
- palette : ICommandPalette | null ,
244
- menu : IMainMenu | null
243
+ palette : ICommandPalette | null
245
244
) : void => {
246
245
const trans = translator . load ( 'notebook' ) ;
247
246
const baseUrl = PageConfig . getBaseUrl ( ) ;
@@ -265,13 +264,6 @@ const pages: JupyterFrontEndPlugin<void> = {
265
264
palette . addItem ( { command, category : 'View' } ) ;
266
265
} ) ;
267
266
}
268
-
269
- if ( menu ) {
270
- menu . viewMenu . addGroup (
271
- [ { command : CommandIDs . openLab } , { command : CommandIDs . openTree } ] ,
272
- 0
273
- ) ;
274
- }
275
267
}
276
268
} ;
277
269
@@ -489,12 +481,11 @@ const title: JupyterFrontEndPlugin<void> = {
489
481
const topVisibility : JupyterFrontEndPlugin < void > = {
490
482
id : '@jupyter-notebook/application-extension:top' ,
491
483
requires : [ INotebookShell , ITranslator ] ,
492
- optional : [ IMainMenu , ISettingRegistry ] ,
484
+ optional : [ ISettingRegistry ] ,
493
485
activate : (
494
486
app : JupyterFrontEnd < JupyterFrontEnd . IShell > ,
495
487
notebookShell : INotebookShell ,
496
488
translator : ITranslator ,
497
- menu : IMainMenu | null ,
498
489
settingRegistry : ISettingRegistry | null
499
490
) => {
500
491
const trans = translator . load ( 'notebook' ) ;
@@ -512,10 +503,6 @@ const topVisibility: JupyterFrontEndPlugin<void> = {
512
503
isToggled : ( ) => top . isVisible
513
504
} ) ;
514
505
515
- if ( menu ) {
516
- menu . viewMenu . addGroup ( [ { command : CommandIDs . toggleTop } ] , 2 ) ;
517
- }
518
-
519
506
let settingsOverride = false ;
520
507
521
508
if ( settingRegistry ) {
@@ -648,13 +635,12 @@ const zen: JupyterFrontEndPlugin<void> = {
648
635
id : '@jupyter-notebook/application-extension:zen' ,
649
636
autoStart : true ,
650
637
requires : [ ITranslator ] ,
651
- optional : [ ICommandPalette , INotebookShell , IMainMenu ] ,
638
+ optional : [ ICommandPalette , INotebookShell ] ,
652
639
activate : (
653
640
app : JupyterFrontEnd ,
654
641
translator : ITranslator ,
655
642
palette : ICommandPalette | null ,
656
- notebookShell : INotebookShell | null ,
657
- menu : IMainMenu | null
643
+ notebookShell : INotebookShell | null
658
644
) : void => {
659
645
const { commands } = app ;
660
646
const elem = document . documentElement ;
@@ -695,10 +681,6 @@ const zen: JupyterFrontEndPlugin<void> = {
695
681
if ( palette ) {
696
682
palette . addItem ( { command : CommandIDs . toggleZen , category : 'Mode' } ) ;
697
683
}
698
-
699
- if ( menu ) {
700
- menu . viewMenu . addGroup ( [ { command : CommandIDs . toggleZen } ] , 3 ) ;
701
- }
702
684
}
703
685
} ;
704
686
0 commit comments