|
13 | 13 | // limitations under the License. |
14 | 14 |
|
15 | 15 | import { |
16 | | - ILayoutRestorer, JupyterLab, JupyterFrontEndPlugin |
| 16 | + ILayoutRestorer, JupyterFrontEnd, JupyterFrontEndPlugin |
17 | 17 | } from '@jupyterlab/application'; |
18 | 18 |
|
19 | 19 | import { |
@@ -53,20 +53,20 @@ const IDrawioTracker = new Token<IDrawioTracker>('drawio/tracki'); |
53 | 53 | /** |
54 | 54 | * The editor tracker extension. |
55 | 55 | */ |
56 | | -const plugin: JupyterFrontEndPlugin<IDrawioTracker> = { |
57 | | - activate, |
| 56 | +const extension: JupyterFrontEndPlugin<IDrawioTracker> = { |
58 | 57 | id: '@jupyterlab/drawio-extension:plugin', |
| 58 | + autoStart: true, |
59 | 59 | requires: [IFileBrowserFactory, ILayoutRestorer, IMainMenu, ICommandPalette], |
60 | 60 | optional: [ILauncher], |
61 | 61 | provides: IDrawioTracker, |
62 | | - autoStart: true |
| 62 | + activate |
63 | 63 | }; |
64 | 64 |
|
65 | | -export default plugin; |
| 65 | +export default extension; |
66 | 66 |
|
67 | | -function activate(app: JupyterLab, |
| 67 | +function activate(app: JupyterFrontEnd, |
68 | 68 | browserFactory: IFileBrowserFactory, |
69 | | - restorer: ILayoutRestorer, |
| 69 | + restorer: ILayoutRestorer, |
70 | 70 | menu: IMainMenu, |
71 | 71 | palette: ICommandPalette, |
72 | 72 | launcher: ILauncher | null |
|
0 commit comments