Browse Source

Add command palette schema.

Afshin Darian 6 years ago
parent
commit
edf2e5a027

+ 18 - 0
packages/apputils-extension/schema/palette.json

@@ -0,0 +1,18 @@
+{
+  "title": "Command Palette",
+  "description": "Command palette settings.",
+  "jupyter.lab.setting-icon-class": "jp-JupyterIcon",
+  "jupyter.lab.setting-icon-label": "Command Palette",
+  "jupyter.lab.keyboard-shortcuts": [
+    {
+      "command": "apputils:activate-command-palette",
+      "keys": ["Accel Shift C"],
+      "selector": "body",
+      "title": "Activate Command Palette",
+      "category": "Main Area"
+    }
+  ],
+  "additionalProperties": false,
+  "properties": {},
+  "type": "object"
+}

+ 2 - 0
packages/apputils-extension/schema/themes.json

@@ -1,5 +1,7 @@
 {
   "title": "Theme",
+  "jupyter.lab.setting-icon-class": "jp-JupyterIcon",
+  "jupyter.lab.setting-icon-label": "Theme Manager",
   "description": "Theme manager settings.",
   "additionalProperties": false,
   "properties": {

+ 0 - 11
packages/shortcuts-extension/schema/plugin.json

@@ -4,17 +4,6 @@
   "title": "Keyboard Shortcuts",
   "description": "Keyboard shortcut settings for JupyterLab.",
   "properties": {
-    "apputils:activate-command-palette": {
-      "default": {},
-      "properties": {
-        "command": { "default": "apputils:activate-command-palette" },
-        "keys": { "default": ["Accel Shift C"] },
-        "selector": { "default": "body" },
-        "title": { "default": "Activate Command Palette" },
-        "category": { "default": "Main Area" }
-      },
-      "type": "object"
-    },
     "completer:invoke-console": {
       "default": {},
       "properties": {