Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function activateTsv(
app: JupyterFrontEnd,
restorer: ILayoutRestorer,
themeManager: IThemeManager,
mainMenu: IMainMenu,
searchregistry: ISearchProviderRegistry = null
): void {
const factory = new TSVViewerFactory({
name: FACTORY_TSV,
fileTypes: ['tsv'],
defaultFor: ['tsv'],
readOnly: true
});
const tracker = new InstanceTracker>({
namespace: 'tsvviewer'
});
// The current styles for the data grids.
let style: DataGrid.IStyle = Private.LIGHT_STYLE;
let rendererConfig: TextRenderConfig = Private.LIGHT_TEXT_CONFIG;
// Handle state restoration.
restorer.restore(tracker, {
command: 'docmanager:open',
function activateTsv(
app: JupyterFrontEnd,
restorer: ILayoutRestorer,
themeManager: IThemeManager,
mainMenu: IMainMenu,
searchregistry: ISearchProviderRegistry = null
): void {
const factory = new TSVViewerFactory({
name: FACTORY_TSV,
fileTypes: ['tsv'],
defaultFor: ['tsv'],
readOnly: true
});
const tracker = new WidgetTracker>({
namespace: 'tsvviewer'
});
// The current styles for the data grids.
let style: DataGrid.IStyle = Private.LIGHT_STYLE;
let rendererConfig: TextRenderConfig = Private.LIGHT_TEXT_CONFIG;
// Handle state restoration.
void restorer.restore(tracker, {
command: 'docmanager:open',