Browse Source

Audit ILabShell use in console extension.

Afshin Darian 6 years ago
parent
commit
ef1361b544
1 changed files with 2 additions and 5 deletions
  1. 2 5
      packages/console-extension/src/index.ts

+ 2 - 5
packages/console-extension/src/index.ts

@@ -2,7 +2,6 @@
 // Distributed under the terms of the Modified BSD License.
 
 import {
-  ILabShell,
   ILabStatus,
   ILayoutRestorer,
   JupyterFrontEnd,
@@ -95,8 +94,7 @@ const tracker: JupyterFrontEndPlugin<IConsoleTracker> = {
     ILayoutRestorer,
     IFileBrowserFactory,
     IRenderMimeRegistry,
-    ISettingRegistry,
-    ILabShell
+    ISettingRegistry
   ],
   optional: [ILauncher, ILabStatus],
   activate: activateConsole,
@@ -136,12 +134,11 @@ async function activateConsole(
   browserFactory: IFileBrowserFactory,
   rendermime: IRenderMimeRegistry,
   settingRegistry: ISettingRegistry,
-  shell: ILabShell,
   launcher: ILauncher | null,
   status: ILabStatus | null
 ): Promise<IConsoleTracker> {
   const manager = app.serviceManager;
-  const { commands } = app;
+  const { commands, shell } = app;
   const category = 'Console';
 
   // Create an instance tracker for all console panels.