Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
activate: (
_: JupyterFrontEnd,
statusBar: IStatusBar,
docManager: IDocumentManager,
labShell: ILabShell
) => {
const path = new PathStatus({ docManager });
// Keep the file path widget up-to-date with the application active widget.
path.model!.widget = labShell.currentWidget;
labShell.currentChanged.connect(() => {
path.model!.widget = labShell.currentWidget;
});
statusBar.registerStatusItem(pathStatusPlugin.id, {
item: path,
align: 'right',
rank: 0,
isActive: () => true
});
}
};
activate: (
_: JupyterFrontEnd,
statusBar: IStatusBar,
docManager: IDocumentManager,
labShell: ILabShell
) => {
const path = new PathStatus({ docManager });
// Keep the file path widget up-to-date with the application active widget.
path.model!.widget = labShell.currentWidget;
labShell.currentChanged.connect(() => {
path.model!.widget = labShell.currentWidget;
});
statusBar.registerStatusItem(pathStatusPlugin.id, {
item: path,
align: 'right',
rank: 0,
isActive: () => true
});
}
};