Sfoglia il codice sorgente

Add context menu for create console.

Brian E. Granger 8 anni fa
parent
commit
3d70fb87e1
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      packages/fileeditor-extension/src/index.ts

+ 2 - 0
packages/fileeditor-extension/src/index.ts

@@ -289,5 +289,7 @@ function activate(app: JupyterLab, registry: IDocumentRegistry, restorer: ILayou
     });
   }
 
+  app.contextMenu.addItem({command: CommandIDs.createConsole, selector: '.jp-FileEditor'});
+
   return tracker;
 }