Afshin Darian преди 8 години
родител
ревизия
c8d7116bff
променени са 3 файла, в които са добавени 26 реда и са изтрити 23 реда
  1. 13 12
      src/editorwidget/plugin.ts
  2. 1 0
      src/notebook/plugin.ts
  3. 12 11
      src/terminal/plugin.ts

+ 13 - 12
src/editorwidget/plugin.ts

@@ -61,18 +61,6 @@ const PORTRAIT_ICON_CLASS = 'jp-MainAreaPortraitIcon';
  */
 const EDITOR_ICON_CLASS = 'jp-ImageTextEditor';
 
-/**
- * The editor handler extension.
- */
-export
-const editorHandlerProvider: JupyterLabPlugin<IEditorTracker> = {
-  id: 'jupyter.services.editor-handler',
-  requires: [IDocumentRegistry, IMainMenu, ICommandPalette],
-  provides: IEditorTracker,
-  activate: activateEditorHandler,
-  autoStart: true
-};
-
 /**
  * The map of command ids used by the editor.
  */
@@ -93,6 +81,19 @@ const cmdIds = {
 const tracker = new InstanceTracker<EditorWidget>();
 
 
+/**
+ * The editor handler extension.
+ */
+export
+const editorHandlerProvider: JupyterLabPlugin<IEditorTracker> = {
+  id: 'jupyter.services.editor-handler',
+  requires: [IDocumentRegistry, IMainMenu, ICommandPalette],
+  provides: IEditorTracker,
+  activate: activateEditorHandler,
+  autoStart: true
+};
+
+
 /**
  * Sets up the editor widget
  */

+ 1 - 0
src/notebook/plugin.ts

@@ -105,6 +105,7 @@ const cmdIds = {
   markdown6: 'notebook-cells:markdown-header6',
 };
 
+
 /**
  * The notebook widget tracker provider.
  */

+ 12 - 11
src/terminal/plugin.ts

@@ -30,17 +30,6 @@ import {
 } from './index';
 
 
-/**
- * The default terminal extension.
- */
-export
-const terminalExtension: JupyterLabPlugin<void> = {
-  id: 'jupyter.extensions.terminal',
-  requires: [IServiceManager, IMainMenu, ICommandPalette],
-  activate: activateTerminal,
-  autoStart: true
-};
-
 /**
  * The class name for all main area landscape tab icons.
  */
@@ -57,6 +46,18 @@ const TERMINAL_ICON_CLASS = 'jp-ImageTerminal';
 const tracker = new InstanceTracker<TerminalWidget>();
 
 
+/**
+ * The default terminal extension.
+ */
+export
+const terminalExtension: JupyterLabPlugin<void> = {
+  id: 'jupyter.extensions.terminal',
+  requires: [IServiceManager, IMainMenu, ICommandPalette],
+  activate: activateTerminal,
+  autoStart: true
+};
+
+
 function activateTerminal(app: JupyterLab, services: IServiceManager, mainMenu: IMainMenu, palette: ICommandPalette): void {
   let { commands, keymap } = app;
   let newTerminalId = 'terminal:create-new';