@codingame/monaco-vscode-keybindings-service-override 14.0.6 → 15.0.1

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.
@@ -49,39 +49,39 @@ import { IUserDataProfileService } from '@codingame/monaco-vscode-api/vscode/vs/
49
49
  var WorkbenchKeybindingService_1;
50
50
  function isValidContributedKeyBinding(keyBinding, rejects) {
51
51
  if (!keyBinding) {
52
- rejects.push(( localize(11823, "expected non-empty value.")));
52
+ rejects.push(( localize(11948, "expected non-empty value.")));
53
53
  return false;
54
54
  }
55
55
  if (typeof keyBinding.command !== 'string') {
56
56
  rejects.push(( localize(
57
- 11824,
57
+ 11949,
58
58
  "property `{0}` is mandatory and must be of type `string`",
59
59
  'command'
60
60
  )));
61
61
  return false;
62
62
  }
63
63
  if (keyBinding.key && typeof keyBinding.key !== 'string') {
64
- rejects.push(( localize(11825, "property `{0}` can be omitted or must be of type `string`", 'key')));
64
+ rejects.push(( localize(11950, "property `{0}` can be omitted or must be of type `string`", 'key')));
65
65
  return false;
66
66
  }
67
67
  if (keyBinding.when && typeof keyBinding.when !== 'string') {
68
- rejects.push(( localize(11825, "property `{0}` can be omitted or must be of type `string`", 'when')));
68
+ rejects.push(( localize(11950, "property `{0}` can be omitted or must be of type `string`", 'when')));
69
69
  return false;
70
70
  }
71
71
  if (keyBinding.mac && typeof keyBinding.mac !== 'string') {
72
- rejects.push(( localize(11825, "property `{0}` can be omitted or must be of type `string`", 'mac')));
72
+ rejects.push(( localize(11950, "property `{0}` can be omitted or must be of type `string`", 'mac')));
73
73
  return false;
74
74
  }
75
75
  if (keyBinding.linux && typeof keyBinding.linux !== 'string') {
76
76
  rejects.push(( localize(
77
- 11825,
77
+ 11950,
78
78
  "property `{0}` can be omitted or must be of type `string`",
79
79
  'linux'
80
80
  )));
81
81
  return false;
82
82
  }
83
83
  if (keyBinding.win && typeof keyBinding.win !== 'string') {
84
- rejects.push(( localize(11825, "property `{0}` can be omitted or must be of type `string`", 'win')));
84
+ rejects.push(( localize(11950, "property `{0}` can be omitted or must be of type `string`", 'win')));
85
85
  return false;
86
86
  }
87
87
  return true;
@@ -91,33 +91,33 @@ const keybindingType = {
91
91
  default: { command: '', key: '' },
92
92
  properties: {
93
93
  command: {
94
- description: ( localize(11826, 'Identifier of the command to run when keybinding is triggered.')),
94
+ description: ( localize(11951, 'Identifier of the command to run when keybinding is triggered.')),
95
95
  type: 'string'
96
96
  },
97
97
  args: {
98
- description: ( localize(11827, "Arguments to pass to the command to execute."))
98
+ description: ( localize(11952, "Arguments to pass to the command to execute."))
99
99
  },
100
100
  key: {
101
101
  description: ( localize(
102
- 11828,
102
+ 11953,
103
103
  'Key or key sequence (separate keys with plus-sign and sequences with space, e.g. Ctrl+O and Ctrl+L L for a chord).'
104
104
  )),
105
105
  type: 'string'
106
106
  },
107
107
  mac: {
108
- description: ( localize(11829, 'Mac specific key or key sequence.')),
108
+ description: ( localize(11954, 'Mac specific key or key sequence.')),
109
109
  type: 'string'
110
110
  },
111
111
  linux: {
112
- description: ( localize(11830, 'Linux specific key or key sequence.')),
112
+ description: ( localize(11955, 'Linux specific key or key sequence.')),
113
113
  type: 'string'
114
114
  },
115
115
  win: {
116
- description: ( localize(11831, 'Windows specific key or key sequence.')),
116
+ description: ( localize(11956, 'Windows specific key or key sequence.')),
117
117
  type: 'string'
118
118
  },
119
119
  when: {
120
- description: ( localize(11832, 'Condition when the key is active.')),
120
+ description: ( localize(11957, 'Condition when the key is active.')),
121
121
  type: 'string'
122
122
  },
123
123
  }
@@ -126,7 +126,7 @@ const keybindingsExtPoint = ExtensionsRegistry.registerExtensionPoint({
126
126
  extensionPoint: 'keybindings',
127
127
  deps: [commandsExtensionPoint],
128
128
  jsonSchema: {
129
- description: ( localize(11833, "Contributes keybindings.")),
129
+ description: ( localize(11958, "Contributes keybindings.")),
130
130
  oneOf: [
131
131
  keybindingType,
132
132
  {
@@ -505,7 +505,7 @@ let WorkbenchKeybindingService = WorkbenchKeybindingService_1 = class WorkbenchK
505
505
  }
506
506
  if (rejects.length > 0) {
507
507
  collector.error(( localize(
508
- 11834,
508
+ 11959,
509
509
  "Invalid `contributes.{0}`: {1}",
510
510
  keybindingsExtPoint.name,
511
511
  rejects.join('\n')
@@ -593,7 +593,7 @@ let WorkbenchKeybindingService = WorkbenchKeybindingService_1 = class WorkbenchK
593
593
  static _getAllCommandsAsComment(boundCommands) {
594
594
  const unboundCommands = getAllUnboundCommands(boundCommands);
595
595
  const pretty = unboundCommands.sort().join('\n// - ');
596
- return '// ' + ( localize(11835, "Here are other available commands: ")) + '\n// - ' + pretty;
596
+ return '// ' + ( localize(11960, "Here are other available commands: ")) + '\n// - ' + pretty;
597
597
  }
598
598
  mightProducePrintableCharacter(event) {
599
599
  if (event.ctrlKey || event.metaKey || event.altKey) {
@@ -718,7 +718,7 @@ class KeybindingsJsonSchema {
718
718
  this.schema = {
719
719
  id: KeybindingsJsonSchema.schemaId,
720
720
  type: 'array',
721
- title: ( localize(11836, "Keybindings configuration")),
721
+ title: ( localize(11961, "Keybindings configuration")),
722
722
  allowTrailingCommas: true,
723
723
  allowComments: true,
724
724
  definitions: {
@@ -742,7 +742,7 @@ class KeybindingsJsonSchema {
742
742
  'type': 'string',
743
743
  'enum': this.commandsEnum,
744
744
  'enumDescriptions': this.commandsEnumDescriptions,
745
- 'description': ( localize(11837, "Name of the command to execute")),
745
+ 'description': ( localize(11962, "Name of the command to execute")),
746
746
  },
747
747
  'commandType': {
748
748
  'anyOf': [
@@ -753,7 +753,7 @@ class KeybindingsJsonSchema {
753
753
  'type': 'string',
754
754
  'enum': this.removalCommandsEnum,
755
755
  'enumDescriptions': this.commandsEnumDescriptions,
756
- 'description': ( localize(11838, "Name of the command to remove keyboard shortcut for")),
756
+ 'description': ( localize(11963, "Name of the command to remove keyboard shortcut for")),
757
757
  },
758
758
  {
759
759
  'type': 'string'
@@ -771,7 +771,7 @@ class KeybindingsJsonSchema {
771
771
  'properties': {
772
772
  'key': {
773
773
  'type': 'string',
774
- 'description': ( localize(11839, "Key or key sequence (separated by space)")),
774
+ 'description': ( localize(11964, "Key or key sequence (separated by space)")),
775
775
  },
776
776
  'command': {
777
777
  'anyOf': [
@@ -784,7 +784,7 @@ class KeybindingsJsonSchema {
784
784
  'type': 'array'
785
785
  },
786
786
  'errorMessage': ( localize(
787
- 11840,
787
+ 11965,
788
788
  "Incorrect type. Expected \"{0}\". The field 'command' does not support running multiple commands. Use command 'runCommands' to pass it multiple commands to run.",
789
789
  'string'
790
790
  ))
@@ -800,10 +800,10 @@ class KeybindingsJsonSchema {
800
800
  },
801
801
  'when': {
802
802
  'type': 'string',
803
- 'description': ( localize(11841, "Condition when the key is active."))
803
+ 'description': ( localize(11966, "Condition when the key is active."))
804
804
  },
805
805
  'args': {
806
- 'description': ( localize(11842, "Arguments to pass to the command to execute."))
806
+ 'description': ( localize(11967, "Arguments to pass to the command to execute."))
807
807
  }
808
808
  },
809
809
  '$ref': '#/definitions/commandsSchemas'
@@ -483,12 +483,12 @@ const keyboardConfiguration = {
483
483
  'id': 'keyboard',
484
484
  'order': 15,
485
485
  'type': 'object',
486
- 'title': ( localize(11843, "Keyboard")),
486
+ 'title': ( localize(11968, "Keyboard")),
487
487
  'properties': {
488
488
  'keyboard.layout': {
489
489
  'type': 'string',
490
490
  'default': 'autodetect',
491
- 'description': ( localize(11844, "Control the keyboard layout used in web."))
491
+ 'description': ( localize(11969, "Control the keyboard layout used in web."))
492
492
  }
493
493
  }
494
494
  };