Skip to content

Commit 8008a6e

Browse files
committed
include latest change for document and restorer
1 parent 67b0435 commit 8008a6e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/index.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import { IMainMenu } from '@jupyterlab/mainmenu';
2828

2929
import { RankedMenu } from '@jupyterlab/ui-components';
3030

31-
import { IFileBrowserFactory, IDefaultFileBrowser } from '@jupyterlab/filebrowser';
31+
import { IDefaultFileBrowser } from '@jupyterlab/filebrowser';
3232

3333
import { ILauncher } from '@jupyterlab/launcher';
3434

@@ -67,7 +67,7 @@ export const IDrawioTracker = new Token<IDrawioTracker>('drawio/tracki');
6767
const extension: JupyterFrontEndPlugin<IDrawioTracker> = {
6868
id: '@jupyterlab/drawio-extension:plugin',
6969
autoStart: true,
70-
requires: [IFileBrowserFactory, ILayoutRestorer, IMainMenu, ICommandPalette],
70+
requires: [IDefaultFileBrowser, ILayoutRestorer, IMainMenu, ICommandPalette],
7171
optional: [ILauncher],
7272
provides: IDrawioTracker,
7373
activate
@@ -82,15 +82,14 @@ namespace CommandIDs {
8282

8383
function activate(
8484
app: JupyterFrontEnd,
85-
// browserFactory: IFileBrowserFactory,
8685
defaultBrowser :IDefaultFileBrowser,
8786
restorer: ILayoutRestorer,
8887
menu: IMainMenu,
8988
palette: ICommandPalette,
9089
launcher: ILauncher | null
9190
): IDrawioTracker {
9291
const { commands } = app;
93-
92+
console.log('initialise drawio')
9493
const namespace = 'drawio';
9594
const tracker = new WidgetTracker<DrawIODocumentWidget>({ namespace });
9695

0 commit comments

Comments
 (0)