Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jtpio committed Oct 24, 2024
1 parent 8117fc8 commit c84235d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/tree-extension/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,8 @@ const fileBrowserSettings: JupyterFrontEndPlugin<void> = {
browser: IDefaultFileBrowser,
settingRegistry: ISettingRegistry | null
) => {
/**
* File browser default configuration.
*/
// Default config for notebook.
// This is a different set of defaults than JupyterLab.
const defaultFileBrowserConfig = {
navigateToCurrentDirectory: false,
singleClickNavigation: true,
Expand All @@ -217,7 +216,7 @@ const fileBrowserSettings: JupyterFrontEndPlugin<void> = {
showFullPath: false,
};

// apply defaults
// Apply defaults on plugin activation
let key: keyof typeof defaultFileBrowserConfig;
for (key in defaultFileBrowserConfig) {
browser[key] = defaultFileBrowserConfig[key];
Expand Down

0 comments on commit c84235d

Please sign in to comment.