Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
activate: (
app: JupyterFrontEnd,
statusBar: IStatusBar,
tracker: IEditorTracker,
labShell: ILabShell
) => {
let item = new EditorSyntaxStatus({ commands: app.commands });
labShell.currentChanged.connect(() => {
const current = labShell.currentWidget;
if (current && tracker.has(current)) {
item.model.editor = (current as IDocumentWidget<
FileEditor
>).content.editor;
}
});
statusBar.registerStatusItem(
'@jupyterlab/codemirror-extension:editor-syntax-status',
{
item,
align: 'left',
rank: 0,
isActive: () =>
labShell.currentWidget &&
activate: (
app: JupyterFrontEnd,
statusBar: IStatusBar,
tracker: IEditorTracker,
labShell: ILabShell
) => {
let item = new EditorSyntaxStatus({ commands: app.commands });
labShell.currentChanged.connect(() => {
const current = labShell.currentWidget;
if (current && tracker.has(current)) {
item.model.editor = (current as IDocumentWidget<
FileEditor
>).content.editor;
}
});
statusBar.registerStatusItem(
'@jupyterlab/codemirror-extension:editor-syntax-status',
{
item,
align: 'left',
rank: 0,
isActive: () =>
labShell.currentWidget &&