@@ -28,7 +28,7 @@ import { IMainMenu } from '@jupyterlab/mainmenu';
28
28
29
29
import { RankedMenu } from '@jupyterlab/ui-components' ;
30
30
31
- import { IFileBrowserFactory , IDefaultFileBrowser } from '@jupyterlab/filebrowser' ;
31
+ import { IDefaultFileBrowser } from '@jupyterlab/filebrowser' ;
32
32
33
33
import { ILauncher } from '@jupyterlab/launcher' ;
34
34
@@ -67,7 +67,7 @@ export const IDrawioTracker = new Token<IDrawioTracker>('drawio/tracki');
67
67
const extension : JupyterFrontEndPlugin < IDrawioTracker > = {
68
68
id : '@jupyterlab/drawio-extension:plugin' ,
69
69
autoStart : true ,
70
- requires : [ IFileBrowserFactory , ILayoutRestorer , IMainMenu , ICommandPalette ] ,
70
+ requires : [ IDefaultFileBrowser , ILayoutRestorer , IMainMenu , ICommandPalette ] ,
71
71
optional : [ ILauncher ] ,
72
72
provides : IDrawioTracker ,
73
73
activate
@@ -82,15 +82,14 @@ namespace CommandIDs {
82
82
83
83
function activate (
84
84
app : JupyterFrontEnd ,
85
- // browserFactory: IFileBrowserFactory,
86
85
defaultBrowser :IDefaultFileBrowser ,
87
86
restorer : ILayoutRestorer ,
88
87
menu : IMainMenu ,
89
88
palette : ICommandPalette ,
90
89
launcher : ILauncher | null
91
90
) : IDrawioTracker {
92
91
const { commands } = app ;
93
-
92
+ console . log ( 'initialise drawio' )
94
93
const namespace = 'drawio' ;
95
94
const tracker = new WidgetTracker < DrawIODocumentWidget > ( { namespace } ) ;
96
95
0 commit comments