Procházet zdrojové kódy

Fix setting editor ID.

Afshin Darian před 7 roky
rodič
revize
00c5afc5b5
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      packages/settingeditor-extension/src/index.ts

+ 2 - 2
packages/settingeditor-extension/src/index.ts

@@ -32,13 +32,14 @@ import {
 namespace CommandIDs {
   export
   const open = 'settingeditor:open';
-};
+}
 
 
 /**
  * The default setting editor extension.
  */
 const plugin: JupyterLabPlugin<void> = {
+  id: '@jupyterlab/settingeditor-extension:plugin',
   activate: (app: JupyterLab, restorer: ILayoutRestorer, registry: ISettingRegistry, editorServices: IEditorServices, state: IStateDB) => {
     const { commands, shell } = app;
     const namespace = 'setting-editor';
@@ -54,7 +55,6 @@ const plugin: JupyterLabPlugin<void> = {
     });
 
     commands.addCommand(CommandIDs.open, {
-      id: '@jupyterlab/settingeditor-extension:plugin',
       execute: () => {
         if (tracker.currentWidget) {
           shell.activateById(tracker.currentWidget.id);