Skip to content

Commit

Permalink
Remove the StateDB file browser trick (#7477)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtpio authored Oct 14, 2024
1 parent 324de44 commit fec4431
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions packages/tree-extension/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -384,23 +384,6 @@ const notebookTreeWidget: JupyterFrontEndPlugin<INotebookTree> = {
// See https://github.com/jupyterlab/jupyterlab/issues/15629 for more info
const setCurrentToDefaultBrower = () => {
tracker['_pool'].current = browser;

// TODO: remove?
// provide some default state so the file browser widths are consistent and predictable
setTimeout(() => {
stateDB
.save('file-browser-filebrowser:columns', {
sizes: {
name: 738.65625,
file_size: 109.95727378063403,
is_selected: 18,
last_modified: 406.5739762193659,
},
})
.then(async () => {
await browser['listing'].restore('filebrowser');
});
});
};

tracker.widgetAdded.connect((sender, widget) => {
Expand Down

0 comments on commit fec4431

Please sign in to comment.