Explorar o código

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 %!s(int64=8) %!d(string=hai) anos
pai
achega
243bd055d9
Modificáronse 1 ficheiros con 7 adicións e 1 borrados
  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
 };