Browse Source

Use setting client datastore for the setting registry temporarily. This will allow for keeping setting data in the runtime code until a server-side API is available.

Afshin Darian 8 years ago
parent
commit
243bd055d9
1 changed files with 7 additions and 1 deletions
  1. 7 1
      packages/apputils-extension/src/index.ts

+ 7 - 1
packages/apputils-extension/src/index.ts

@@ -28,6 +28,10 @@ import {
   activatePalette
 } from './palette';
 
+import {
+  SettingClientDatastore
+} from './settingclientdatastore';
+
 
 /**
  * The command IDs used by the apputils plugin.
@@ -88,7 +92,9 @@ const palettePlugin: JupyterLabPlugin<ICommandPalette> = {
  */
 const settingPlugin: JupyterLabPlugin<ISettingRegistry> = {
   id: 'jupyter.services.setting-registry',
-  activate: () => new SettingRegistry(),
+  activate: () => new SettingRegistry({
+    datastore: new SettingClientDatastore()
+  }),
   autoStart: true,
   provides: ISettingRegistry
 };