@codingame/monaco-vscode-keybindings-service-override 36.2.6 → 37.0.0

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.
@@ -51,39 +51,39 @@ import { EditorContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/editor
51
51
  var WorkbenchKeybindingService_1;
52
52
  function isValidContributedKeyBinding(keyBinding, rejects) {
53
53
  if (!keyBinding) {
54
- rejects.push(( localize(17765, "expected non-empty value.")));
54
+ rejects.push(( localize(19534, "expected non-empty value.")));
55
55
  return false;
56
56
  }
57
57
  if (typeof keyBinding.command !== "string") {
58
58
  rejects.push(( localize(
59
- 17766,
59
+ 19535,
60
60
  "property `{0}` is mandatory and must be of type `string`",
61
61
  "command"
62
62
  )));
63
63
  return false;
64
64
  }
65
65
  if (keyBinding.key && typeof keyBinding.key !== "string") {
66
- rejects.push(( localize(17767, "property `{0}` can be omitted or must be of type `string`", "key")));
66
+ rejects.push(( localize(19536, "property `{0}` can be omitted or must be of type `string`", "key")));
67
67
  return false;
68
68
  }
69
69
  if (keyBinding.when && typeof keyBinding.when !== "string") {
70
- rejects.push(( localize(17767, "property `{0}` can be omitted or must be of type `string`", "when")));
70
+ rejects.push(( localize(19536, "property `{0}` can be omitted or must be of type `string`", "when")));
71
71
  return false;
72
72
  }
73
73
  if (keyBinding.mac && typeof keyBinding.mac !== "string") {
74
- rejects.push(( localize(17767, "property `{0}` can be omitted or must be of type `string`", "mac")));
74
+ rejects.push(( localize(19536, "property `{0}` can be omitted or must be of type `string`", "mac")));
75
75
  return false;
76
76
  }
77
77
  if (keyBinding.linux && typeof keyBinding.linux !== "string") {
78
78
  rejects.push(( localize(
79
- 17767,
79
+ 19536,
80
80
  "property `{0}` can be omitted or must be of type `string`",
81
81
  "linux"
82
82
  )));
83
83
  return false;
84
84
  }
85
85
  if (keyBinding.win && typeof keyBinding.win !== "string") {
86
- rejects.push(( localize(17767, "property `{0}` can be omitted or must be of type `string`", "win")));
86
+ rejects.push(( localize(19536, "property `{0}` can be omitted or must be of type `string`", "win")));
87
87
  return false;
88
88
  }
89
89
  return true;
@@ -97,33 +97,33 @@ const keybindingType = {
97
97
  required: ["command", "key"],
98
98
  properties: {
99
99
  command: {
100
- description: ( localize(17768, "Identifier of the command to run when keybinding is triggered.")),
100
+ description: ( localize(19537, "Identifier of the command to run when keybinding is triggered.")),
101
101
  type: "string"
102
102
  },
103
103
  args: {
104
- description: ( localize(17769, "Arguments to pass to the command to execute."))
104
+ description: ( localize(19538, "Arguments to pass to the command to execute."))
105
105
  },
106
106
  key: {
107
107
  description: ( localize(
108
- 17770,
108
+ 19539,
109
109
  "Key or key sequence (separate keys with plus-sign and sequences with space, e.g. Ctrl+O and Ctrl+L L for a chord)."
110
110
  )),
111
111
  type: "string"
112
112
  },
113
113
  mac: {
114
- description: ( localize(17771, "Mac specific key or key sequence.")),
114
+ description: ( localize(19540, "Mac specific key or key sequence.")),
115
115
  type: "string"
116
116
  },
117
117
  linux: {
118
- description: ( localize(17772, "Linux specific key or key sequence.")),
118
+ description: ( localize(19541, "Linux specific key or key sequence.")),
119
119
  type: "string"
120
120
  },
121
121
  win: {
122
- description: ( localize(17773, "Windows specific key or key sequence.")),
122
+ description: ( localize(19542, "Windows specific key or key sequence.")),
123
123
  type: "string"
124
124
  },
125
125
  when: {
126
- description: ( localize(17774, "Condition when the key is active.")),
126
+ description: ( localize(19543, "Condition when the key is active.")),
127
127
  type: "string"
128
128
  }
129
129
  }
@@ -132,7 +132,7 @@ const keybindingsExtPoint = ExtensionsRegistry.registerExtensionPoint({
132
132
  extensionPoint: "keybindings",
133
133
  deps: [commandsExtensionPoint],
134
134
  jsonSchema: {
135
- description: ( localize(17775, "Contributes keybindings.")),
135
+ description: ( localize(19544, "Contributes keybindings.")),
136
136
  oneOf: [keybindingType, {
137
137
  type: "array",
138
138
  items: keybindingType
@@ -565,7 +565,7 @@ let WorkbenchKeybindingService = WorkbenchKeybindingService_1 = class WorkbenchK
565
565
  }
566
566
  if (rejects.length > 0) {
567
567
  collector.error(( localize(
568
- 17776,
568
+ 19545,
569
569
  "Invalid `contributes.{0}`: {1}",
570
570
  keybindingsExtPoint.name,
571
571
  rejects.join("\n")
@@ -653,7 +653,7 @@ let WorkbenchKeybindingService = WorkbenchKeybindingService_1 = class WorkbenchK
653
653
  static _getAllCommandsAsComment(boundCommands) {
654
654
  const unboundCommands = getAllUnboundCommands(boundCommands);
655
655
  const pretty = unboundCommands.sort().join("\n// - ");
656
- return "// " + ( localize(17777, "Here are other available commands: ")) + "\n// - " + pretty;
656
+ return "// " + ( localize(19546, "Here are other available commands: ")) + "\n// - " + pretty;
657
657
  }
658
658
  mightProducePrintableCharacter(event) {
659
659
  if (event.ctrlKey || event.metaKey || event.altKey) {
@@ -776,7 +776,7 @@ class KeybindingsJsonSchema {
776
776
  this.schema = {
777
777
  id: KeybindingsJsonSchema.schemaId,
778
778
  type: "array",
779
- title: ( localize(17778, "Keybindings configuration")),
779
+ title: ( localize(19547, "Keybindings configuration")),
780
780
  allowTrailingCommas: true,
781
781
  allowComments: true,
782
782
  definitions: {
@@ -800,7 +800,7 @@ class KeybindingsJsonSchema {
800
800
  "type": "string",
801
801
  "enum": this.commandsEnum,
802
802
  "enumDescriptions": this.commandsEnumDescriptions,
803
- "description": ( localize(17779, "Name of the command to execute"))
803
+ "description": ( localize(19548, "Name of the command to execute"))
804
804
  },
805
805
  "commandType": {
806
806
  "anyOf": [{
@@ -809,7 +809,7 @@ class KeybindingsJsonSchema {
809
809
  "type": "string",
810
810
  "enum": this.removalCommandsEnum,
811
811
  "enumDescriptions": this.commandsEnumDescriptions,
812
- "description": ( localize(17780, "Name of the command to remove keyboard shortcut for"))
812
+ "description": ( localize(19549, "Name of the command to remove keyboard shortcut for"))
813
813
  }, {
814
814
  "type": "string"
815
815
  }]
@@ -831,7 +831,7 @@ class KeybindingsJsonSchema {
831
831
  "properties": {
832
832
  "key": {
833
833
  "type": "string",
834
- "description": ( localize(17781, "Key or key sequence (separated by space)"))
834
+ "description": ( localize(19550, "Key or key sequence (separated by space)"))
835
835
  },
836
836
  "command": {
837
837
  "anyOf": [{
@@ -843,7 +843,7 @@ class KeybindingsJsonSchema {
843
843
  "type": "array"
844
844
  },
845
845
  "errorMessage": ( localize(
846
- 17782,
846
+ 19551,
847
847
  "Incorrect type. Expected \"{0}\". The field 'command' does not support running multiple commands. Use command 'runCommands' to pass it multiple commands to run.",
848
848
  "string"
849
849
  ))
@@ -857,16 +857,16 @@ class KeybindingsJsonSchema {
857
857
  },
858
858
  "when": {
859
859
  "type": "string",
860
- "description": ( localize(17783, "Condition when the key is active."))
860
+ "description": ( localize(19552, "Condition when the key is active."))
861
861
  },
862
862
  "args": {
863
- "description": ( localize(17784, "Arguments to pass to the command to execute."))
863
+ "description": ( localize(19553, "Arguments to pass to the command to execute."))
864
864
  },
865
865
  "systemWide": {
866
866
  "type": "boolean",
867
867
  "default": false,
868
868
  "markdownDescription": ( localize(
869
- 17785,
869
+ 19554,
870
870
  "When `true`, registers this keybinding as a system-wide (OS global) shortcut that fires even when the application is not focused. Desktop only. Only single key combinations are supported (no chords), and any `when` clause is ignored for the global trigger."
871
871
  ))
872
872
  }
@@ -480,12 +480,12 @@ const keyboardConfiguration = {
480
480
  "id": "keyboard",
481
481
  "order": 15,
482
482
  "type": "object",
483
- "title": ( localize(17786, "Keyboard")),
483
+ "title": ( localize(19555, "Keyboard")),
484
484
  "properties": {
485
485
  "keyboard.layout": {
486
486
  "type": "string",
487
487
  "default": "autodetect",
488
- "description": ( localize(17787, "Control the keyboard layout used in web."))
488
+ "description": ( localize(19556, "Control the keyboard layout used in web."))
489
489
  }
490
490
  }
491
491
  };