@theia/keymaps 1.56.0 → 1.57.0-next.136

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -25,6 +25,7 @@ Example of a valid `keymaps.json` file
25
25
  }
26
26
  ]
27
27
  ```
28
+
28
29
  where `command` is a unique command id and keybinding is a valid `keybinding`. There's also an optional `context` property that can be specified (which is also a unique string for a context id).
29
30
 
30
31
  ## Supported Keys
@@ -42,8 +43,9 @@ If unsure you can always look at the framework's [supported keys](https://eclips
42
43
  ## Key Sequences
43
44
 
44
45
  Key sequences like: `ctrl+x ctrl+a` or `ctrl+a b c` are supported. With the following limitations:
45
- - If the key sequence exceeds 1 key chord it won't show in the electron menu.
46
- - If the key sequence exceeds 2 key chords it won't show in the command palette.
46
+
47
+ - If the key sequence exceeds 1 key chord it won't show in the electron menu.
48
+ - If the key sequence exceeds 2 key chords it won't show in the command palette.
47
49
 
48
50
  ## Additional Information
49
51
 
@@ -57,5 +59,6 @@ Key sequences like: `ctrl+x ctrl+a` or `ctrl+a b c` are supported. With the fol
57
59
  - [一 (Secondary) GNU General Public License, version 2 with the GNU Classpath Exception](https://projects.eclipse.org/license/secondary-gpl-2.0-cp)
58
60
 
59
61
  ## Trademark
62
+
60
63
  "Theia" is a trademark of the Eclipse Foundation
61
- https://www.eclipse.org/theia
64
+ <https://www.eclipse.org/theia>
@@ -1,86 +1,78 @@
1
- import { CommandRegistry, InMemoryResources } from '@theia/core/lib/common';
2
- import { JsonSchemaContribution, JsonSchemaRegisterContext } from '@theia/core/lib/browser/json-schema-store';
1
+ import { CommandRegistry } from '@theia/core/lib/common';
2
+ import { JsonSchemaContribution, JsonSchemaDataStore, JsonSchemaRegisterContext } from '@theia/core/lib/browser/json-schema-store';
3
3
  import URI from '@theia/core/lib/common/uri';
4
4
  export declare class KeybindingSchemaUpdater implements JsonSchemaContribution {
5
5
  protected readonly uri: URI;
6
6
  protected readonly commandRegistry: CommandRegistry;
7
- protected readonly inMemoryResources: InMemoryResources;
7
+ protected readonly schemaStore: JsonSchemaDataStore;
8
8
  protected init(): void;
9
9
  registerSchemas(store: JsonSchemaRegisterContext): void;
10
10
  protected updateSchema(): void;
11
11
  }
12
12
  export declare const keybindingSchema: {
13
- $id: string;
14
- type: string;
15
- title: string;
16
- default: never[];
17
- definitions: {
18
- key: {
19
- type: string;
20
- description: string;
13
+ readonly $id: "vscode://schemas/keybindings";
14
+ readonly type: "array";
15
+ readonly title: "Keybinding Configuration File";
16
+ readonly default: [];
17
+ readonly definitions: {
18
+ readonly key: {
19
+ readonly type: "string";
20
+ readonly description: string;
21
21
  };
22
22
  };
23
- items: {
24
- type: string;
25
- defaultSnippets: {
26
- body: {
27
- key: string;
28
- command: string;
29
- when: string;
23
+ readonly items: {
24
+ readonly type: "object";
25
+ readonly defaultSnippets: [{
26
+ readonly body: {
27
+ readonly key: "$1";
28
+ readonly command: "$2";
29
+ readonly when: "$3";
30
30
  };
31
- }[];
32
- allOf: ({
33
- required: string[];
34
- properties: {
35
- command: {
36
- anyOf: ({
37
- type: string;
38
- enum?: undefined;
39
- enumDescriptions?: undefined;
40
- } | {
41
- enum: string[];
42
- enumDescriptions: string[];
43
- type?: undefined;
44
- })[];
45
- description: string;
31
+ }];
32
+ readonly allOf: [{
33
+ readonly required: ["command"];
34
+ readonly properties: {
35
+ readonly command: {
36
+ readonly anyOf: [{
37
+ readonly type: "string";
38
+ }, {
39
+ readonly enum: string[];
40
+ readonly enumDescriptions: string[];
41
+ }];
42
+ readonly description: string;
46
43
  };
47
- when: {
48
- type: string;
49
- description: string;
44
+ readonly when: {
45
+ readonly type: "string";
46
+ readonly description: string;
50
47
  };
51
- args: {
52
- description: string;
48
+ readonly args: {
49
+ readonly description: string;
53
50
  };
54
- context: {
55
- type: string;
56
- description: string;
57
- deprecationMessage: string;
51
+ readonly context: {
52
+ readonly type: "string";
53
+ readonly description: string;
54
+ readonly deprecationMessage: string;
58
55
  };
59
56
  };
60
- anyOf?: undefined;
61
- } | {
62
- anyOf: ({
63
- required: string[];
64
- properties: {
65
- key: {
66
- $ref: string;
57
+ }, {
58
+ readonly anyOf: [{
59
+ readonly required: ["key"];
60
+ readonly properties: {
61
+ readonly key: {
62
+ readonly $ref: "#/definitions/key";
67
63
  };
68
- keybinding?: undefined;
69
64
  };
70
- } | {
71
- required: string[];
72
- properties: {
73
- keybinding: {
74
- $ref: string;
65
+ }, {
66
+ readonly required: ["keybinding"];
67
+ readonly properties: {
68
+ readonly keybinding: {
69
+ readonly $ref: "#/definitions/key";
75
70
  };
76
- key?: undefined;
77
71
  };
78
- })[];
79
- required?: undefined;
80
- properties?: undefined;
81
- })[];
72
+ }];
73
+ }];
82
74
  };
83
- allowComments: boolean;
84
- allowTrailingCommas: boolean;
75
+ readonly allowComments: true;
76
+ readonly allowTrailingCommas: true;
85
77
  };
86
78
  //# sourceMappingURL=keybinding-schema-updater.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"keybinding-schema-updater.d.ts","sourceRoot":"","sources":["../../src/browser/keybinding-schema-updater.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAO,eAAe,EAAE,iBAAiB,EAAa,MAAM,wBAAwB,CAAC;AAC5F,OAAO,EAAE,sBAAsB,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AAE9G,OAAO,GAAG,MAAM,4BAA4B,CAAC;AAE7C,qBACa,uBAAwB,YAAW,sBAAsB;IAClE,SAAS,CAAC,QAAQ,CAAC,GAAG,MAA+B;IAC5B,SAAS,CAAC,QAAQ,CAAC,eAAe,EAAE,eAAe,CAAC;IAClD,SAAS,CAAC,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAGnF,SAAS,CAAC,IAAI,IAAI,IAAI;IAMtB,eAAe,CAAC,KAAK,EAAE,yBAAyB,GAAG,IAAI;IAOvD,SAAS,CAAC,YAAY,IAAI,IAAI;CAYjC;AAGD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqC5B,CAAC"}
1
+ {"version":3,"file":"keybinding-schema-updater.d.ts","sourceRoot":"","sources":["../../src/browser/keybinding-schema-updater.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAO,eAAe,EAAa,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AAEnI,OAAO,GAAG,MAAM,4BAA4B,CAAC;AAG7C,qBACa,uBAAwB,YAAW,sBAAsB;IAClE,SAAS,CAAC,QAAQ,CAAC,GAAG,MAA+B;IAC5B,SAAS,CAAC,QAAQ,CAAC,eAAe,EAAE,eAAe,CAAC;IAChD,SAAS,CAAC,QAAQ,CAAC,WAAW,EAAE,mBAAmB,CAAC;IAGjF,SAAS,CAAC,IAAI,IAAI,IAAI;IAKtB,eAAe,CAAC,KAAK,EAAE,yBAAyB,GAAG,IAAI;IAOvD,SAAS,CAAC,YAAY,IAAI,IAAI;CAYjC;AAGD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCG,CAAC"}
@@ -18,6 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.keybindingSchema = exports.KeybindingSchemaUpdater = void 0;
19
19
  const tslib_1 = require("tslib");
20
20
  const common_1 = require("@theia/core/lib/common");
21
+ const json_schema_store_1 = require("@theia/core/lib/browser/json-schema-store");
21
22
  const inversify_1 = require("@theia/core/shared/inversify");
22
23
  const uri_1 = require("@theia/core/lib/common/uri");
23
24
  let KeybindingSchemaUpdater = class KeybindingSchemaUpdater {
@@ -25,7 +26,6 @@ let KeybindingSchemaUpdater = class KeybindingSchemaUpdater {
25
26
  this.uri = new uri_1.default(keybindingSchemaId);
26
27
  }
27
28
  init() {
28
- this.inMemoryResources.add(new uri_1.default(keybindingSchemaId), '');
29
29
  this.updateSchema();
30
30
  this.commandRegistry.onCommandsChanged(() => this.updateSchema());
31
31
  }
@@ -46,7 +46,7 @@ let KeybindingSchemaUpdater = class KeybindingSchemaUpdater {
46
46
  enumDescriptions.push((_a = command.label) !== null && _a !== void 0 ? _a : '');
47
47
  }
48
48
  }
49
- this.inMemoryResources.update(this.uri, JSON.stringify(schema));
49
+ this.schemaStore.setSchema(this.uri, schema);
50
50
  }
51
51
  };
52
52
  exports.KeybindingSchemaUpdater = KeybindingSchemaUpdater;
@@ -55,9 +55,9 @@ tslib_1.__decorate([
55
55
  tslib_1.__metadata("design:type", common_1.CommandRegistry)
56
56
  ], KeybindingSchemaUpdater.prototype, "commandRegistry", void 0);
57
57
  tslib_1.__decorate([
58
- (0, inversify_1.inject)(common_1.InMemoryResources),
59
- tslib_1.__metadata("design:type", common_1.InMemoryResources)
60
- ], KeybindingSchemaUpdater.prototype, "inMemoryResources", void 0);
58
+ (0, inversify_1.inject)(json_schema_store_1.JsonSchemaDataStore),
59
+ tslib_1.__metadata("design:type", json_schema_store_1.JsonSchemaDataStore)
60
+ ], KeybindingSchemaUpdater.prototype, "schemaStore", void 0);
61
61
  tslib_1.__decorate([
62
62
  (0, inversify_1.postConstruct)(),
63
63
  tslib_1.__metadata("design:type", Function),
@@ -1 +1 @@
1
- {"version":3,"file":"keybinding-schema-updater.js","sourceRoot":"","sources":["../../src/browser/keybinding-schema-updater.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;AAEhF,mDAA4F;AAE5F,4DAAiF;AACjF,oDAA6C;AAGtC,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IAA7B;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AI,EAAE,QAAQ,EAAE,WAAW,EAAE,YAAG,CAAC,iBAAiB,CAAC,mCAAmC,CAAC,EAAE;oBACjG,IAAI,EAAE,EAAE,WAAW,EAAE,YAAG,CAAC,iBAAiB,CAAC,8CAA8C,CAAC,EAAE;oBAC5F,OAAO,EAAE;wBACL,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,YAAG,CAAC,iBAAiB,CAAC,mCAAmC,CAAC;wBACvE,kBAAkB,EAAE,YAAG,CAAC,QAAQ,CAAC,6CAA6C,EAAE,4BAA4B,CAAC;qBAChH;iBACJ;aACJ;YACD;gBACI,KAAK,EAAE;oBACH,EAAE,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE,UAAU,EAAE,EAAE,GAAG,EAAE,EAAE,IAAI,EAAE,mBAAmB,EAAE,GAAG,EAAE;oBAC1E,EAAE,QAAQ,EAAE,CAAC,YAAY,CAAC,EAAE,UAAU,EAAE,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,mBAAmB,EAAE,EAAE,EAAE;iBAC1F;aACJ;SACJ;KACJ;IACD,aAAa,EAAE,IAAI;IACnB,mBAAmB,EAAE,IAAI;CAC5B,CAAC"}
1
+ {"version":3,"file":"keybinding-schema-updater.js","sourceRoot":"","sources":["../../src/browser/keybinding-schema-updater.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;AAEhF,mDAAyE;AACzE,iFAAmI;AACnI,4DAAiF;AACjF,oDAA6C;AAItC,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IAA7B;QACgB,QAAG,GAAG,IAAI,aAAG,CAAC,kBAAkB,CAAC,CAAC;IA6BzD,CAAC;IAxBa,IAAI;QACV,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AAE,YAAG,CAAC,iBAAiB,CAAC,mCAAmC,CAAC;wBACvE,kBAAkB,EAAE,YAAG,CAAC,QAAQ,CAAC,6CAA6C,EAAE,4BAA4B,CAAC;qBAChH;iBACJ;aACJ;YACD;gBACI,KAAK,EAAE;oBACH,EAAE,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE,UAAU,EAAE,EAAE,GAAG,EAAE,EAAE,IAAI,EAAE,mBAAmB,EAAE,GAAG,EAAE;oBAC1E,EAAE,QAAQ,EAAE,CAAC,YAAY,CAAC,EAAE,UAAU,EAAE,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,mBAAmB,EAAE,EAAE,EAAE;iBAC1F;aACJ;SACJ;KACJ;IACD,aAAa,EAAE,IAAI;IACnB,mBAAmB,EAAE,IAAI;CACG,CAAC"}
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@theia/keymaps",
3
- "version": "1.56.0",
3
+ "version": "1.57.0-next.136+9a2072774",
4
4
  "description": "Theia - Custom Keymaps Extension",
5
5
  "dependencies": {
6
- "@theia/core": "1.56.0",
7
- "@theia/monaco": "1.56.0",
8
- "@theia/monaco-editor-core": "1.83.101",
9
- "@theia/preferences": "1.56.0",
10
- "@theia/userstorage": "1.56.0",
6
+ "@theia/core": "1.57.0-next.136+9a2072774",
7
+ "@theia/monaco": "1.57.0-next.136+9a2072774",
8
+ "@theia/monaco-editor-core": "1.96.302",
9
+ "@theia/preferences": "1.57.0-next.136+9a2072774",
10
+ "@theia/userstorage": "1.57.0-next.136+9a2072774",
11
11
  "jsonc-parser": "^2.2.0",
12
12
  "tslib": "^2.6.2"
13
13
  },
14
14
  "devDependencies": {
15
- "@theia/ext-scripts": "1.56.0"
15
+ "@theia/ext-scripts": "1.58.0"
16
16
  },
17
17
  "publishConfig": {
18
18
  "access": "public"
@@ -49,5 +49,5 @@
49
49
  "nyc": {
50
50
  "extends": "../../configs/nyc.json"
51
51
  },
52
- "gitHead": "3b4498f8f1c66be688847418fcc35595282671dc"
52
+ "gitHead": "9a20727743172a4efa46334f4136a1242b160848"
53
53
  }
@@ -14,20 +14,20 @@
14
14
  // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  // *****************************************************************************
16
16
 
17
- import { nls, CommandRegistry, InMemoryResources, deepClone } from '@theia/core/lib/common';
18
- import { JsonSchemaContribution, JsonSchemaRegisterContext } from '@theia/core/lib/browser/json-schema-store';
17
+ import { nls, CommandRegistry, deepClone } from '@theia/core/lib/common';
18
+ import { JsonSchemaContribution, JsonSchemaDataStore, JsonSchemaRegisterContext } from '@theia/core/lib/browser/json-schema-store';
19
19
  import { injectable, inject, postConstruct } from '@theia/core/shared/inversify';
20
20
  import URI from '@theia/core/lib/common/uri';
21
+ import { IJSONSchema } from '@theia/core/lib/common/json-schema';
21
22
 
22
23
  @injectable()
23
24
  export class KeybindingSchemaUpdater implements JsonSchemaContribution {
24
25
  protected readonly uri = new URI(keybindingSchemaId);
25
26
  @inject(CommandRegistry) protected readonly commandRegistry: CommandRegistry;
26
- @inject(InMemoryResources) protected readonly inMemoryResources: InMemoryResources;
27
+ @inject(JsonSchemaDataStore) protected readonly schemaStore: JsonSchemaDataStore;
27
28
 
28
29
  @postConstruct()
29
30
  protected init(): void {
30
- this.inMemoryResources.add(new URI(keybindingSchemaId), '');
31
31
  this.updateSchema();
32
32
  this.commandRegistry.onCommandsChanged(() => this.updateSchema());
33
33
  }
@@ -49,7 +49,7 @@ export class KeybindingSchemaUpdater implements JsonSchemaContribution {
49
49
  enumDescriptions.push(command.label ?? '');
50
50
  }
51
51
  }
52
- this.inMemoryResources.update(this.uri, JSON.stringify(schema));
52
+ this.schemaStore.setSchema(this.uri, schema);
53
53
  }
54
54
  }
55
55
 
@@ -91,5 +91,4 @@ export const keybindingSchema = {
91
91
  },
92
92
  allowComments: true,
93
93
  allowTrailingCommas: true,
94
- };
95
-
94
+ } as const satisfies IJSONSchema;