Browse Source

Merge pull request #193 from jtpio/restore-sidebar

Add the sidebar to the layout restorer
KsavinN 5 years ago
parent
commit
03248643e6
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/index.ts

+ 4 - 0
src/index.ts

@@ -277,6 +277,10 @@ const main: JupyterFrontEndPlugin<IDebugger> = {
         sidebar.title.label = 'Environment';
         shell.add(sidebar, 'right', { activate: false });
 
+        if (restorer) {
+          restorer.add(sidebar, 'debugger-sidebar');
+        }
+
         await service.restoreState(true);
       }
     });