Explorar o código

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

Pass cwd into notebook launcher.
Brian E. Granger %!s(int64=8) %!d(string=hai) anos
pai
achega
3bb3253d6c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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,