Afshin Darian 7 rokov pred
rodič
commit
165329c405

+ 1 - 1
packages/filebrowser-extension/src/index.ts

@@ -368,7 +368,7 @@ function addCommands(app: JupyterLab, tracker: InstanceTracker<FileBrowser>, mai
     }
   });
 
-  // Create a launcher with a banner if ther are no open items.
+  // Create a launcher with a banner if there are no open items.
   app.restored.then(() => {
     if (app.shell.isEmpty('main')) {
       commands.execute('launcher-jupyterlab:create', {

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

@@ -81,7 +81,12 @@ namespace CommandIDs {
 const plugin: JupyterLabPlugin<IEditorTracker> = {
   activate,
   id: 'jupyter.services.editor-tracker',
-  requires: [IDocumentRegistry, ILayoutRestorer, IEditorServices, ISettingRegistry],
+  requires: [
+    IDocumentRegistry,
+    ILayoutRestorer,
+    IEditorServices,
+    ISettingRegistry
+  ],
   optional: [ILauncher],
   provides: IEditorTracker,
   autoStart: true
@@ -284,7 +289,8 @@ function activate(app: JupyterLab, registry: IDocumentRegistry, restorer: ILayou
       tracker.forEach(widget => {
         widget.editor.setOption('autoClosingBrackets', autoClosingBrackets);
       });
-      return settingRegistry.set(id, 'autoClosingBrackets', autoClosingBrackets);
+      return settingRegistry
+        .set(id, 'autoClosingBrackets', autoClosingBrackets);
     },
     label: 'Auto-Closing Brackets',
     isEnabled: hasWidget,