Browse Source

Add workspace to IInfo

Brian E. Granger 4 years ago
parent
commit
089274b120
1 changed files with 8 additions and 1 deletions
  1. 8 1
      packages/application/src/lab.ts

+ 8 - 1
packages/application/src/lab.ts

@@ -248,6 +248,12 @@ export namespace JupyterLab {
      * Whether files are cached on the server.
      * Whether files are cached on the server.
      */
      */
     readonly filesCached: boolean;
     readonly filesCached: boolean;
+
+    /**
+     * The workspace name provided by the server, or 'default' if the URL doesn't explicitly
+     * name a workspace.
+     */
+    readonly workspace: string;
   }
   }
 
 
   /**
   /**
@@ -258,7 +264,8 @@ export namespace JupyterLab {
     deferred: { patterns: [], matches: [] },
     deferred: { patterns: [], matches: [] },
     disabled: { patterns: [], matches: [] },
     disabled: { patterns: [], matches: [] },
     mimeExtensions: [],
     mimeExtensions: [],
-    filesCached: PageConfig.getOption('cacheFiles').toLowerCase() === 'true'
+    filesCached: PageConfig.getOption('cacheFiles').toLowerCase() === 'true',
+    workspace: PageConfig.getOption('workspace')
   };
   };
 
 
   /**
   /**