Selaa lähdekoodia

Merge pull request #2424 from ian-r-rose/fix_notebook_launching

Pass cwd into notebook launcher.
Brian E. Granger 8 vuotta sitten
vanhempi
commit
3bb3253d6c
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      packages/notebook-extension/src/index.ts

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

@@ -413,7 +413,7 @@ function activateNotebookHandler(app: JupyterLab, registry: IDocumentRegistry, s
   // The launcher callback.
   let callback = (cwd: string, name: string) => {
     return commands.execute(
-      'file-operations:new-untitled', { type: 'notebook' }
+      'file-operations:new-untitled', { path: cwd, type: 'notebook' }
     ).then(model => {
       return commands.execute('file-operations:open', {
         path: model.path, factory: FACTORY,