Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the StateDB file browser trick #7477

Merged
merged 1 commit into from
Oct 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading