@codingame/monaco-vscode-a3eaa464-944c-5b8f-8886-213068ba4897-common 20.0.1 → 20.1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-a3eaa464-944c-5b8f-8886-213068ba4897-common",
3
- "version": "20.0.1",
3
+ "version": "20.1.0",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - common package (keybindings, preferences)",
6
6
  "keywords": [],
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-api": "20.0.1"
18
+ "@codingame/monaco-vscode-api": "20.1.0"
19
19
  },
20
20
  "exports": {
21
21
  ".": {
@@ -133,7 +133,7 @@ let DefineKeybindingWidget = class DefineKeybindingWidget extends Widget {
133
133
  this._domNode.setClassName('defineKeybindingWidget');
134
134
  this._domNode.setWidth(DefineKeybindingWidget_1.WIDTH);
135
135
  this._domNode.setHeight(DefineKeybindingWidget_1.HEIGHT);
136
- const message = ( localize(9146, "Press desired key combination and then press ENTER."));
136
+ const message = ( localize(9149, "Press desired key combination and then press ENTER."));
137
137
  append(this._domNode.domNode, $('.message', undefined, message));
138
138
  this._domNode.domNode.style.backgroundColor = asCssVariable(editorWidgetBackground);
139
139
  this._domNode.domNode.style.color = asCssVariable(editorWidgetForeground);
@@ -181,7 +181,7 @@ let DefineKeybindingWidget = class DefineKeybindingWidget extends Widget {
181
181
  printExisting(numberOfExisting) {
182
182
  if (numberOfExisting > 0) {
183
183
  const existingElement = $('span.existingText');
184
- const text = numberOfExisting === 1 ? ( localize(9147, "1 existing command has this keybinding", numberOfExisting)) : ( localize(9148, "{0} existing commands have this keybinding", numberOfExisting));
184
+ const text = numberOfExisting === 1 ? ( localize(9150, "1 existing command has this keybinding", numberOfExisting)) : ( localize(9151, "{0} existing commands have this keybinding", numberOfExisting));
185
185
  append(existingElement, document.createTextNode(text));
186
186
  alert(text);
187
187
  this._showExistingKeybindingsNode.appendChild(existingElement);
@@ -199,7 +199,7 @@ let DefineKeybindingWidget = class DefineKeybindingWidget extends Widget {
199
199
  firstLabel.set(this._chords?.[0] ?? undefined);
200
200
  if (this._chords) {
201
201
  for (let i = 1; i < this._chords.length; i++) {
202
- this._outputNode.appendChild(document.createTextNode(( localize(9149, "chord to"))));
202
+ this._outputNode.appendChild(document.createTextNode(( localize(9152, "chord to"))));
203
203
  const chordLabel = this._keybindingDisposables.add(( new KeybindingLabel(this._outputNode, OS, defaultKeybindingLabelStyles)));
204
204
  chordLabel.set(this._chords[i]);
205
205
  }
@@ -4,20 +4,20 @@ import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
4
4
  import { registerIcon } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/iconRegistry';
5
5
 
6
6
  const settingsScopeDropDownIcon = registerIcon('settings-folder-dropdown', Codicon.triangleDown, ( localize(
7
- 9244,
7
+ 9247,
8
8
  'Icon for the folder dropdown button in the split JSON Settings editor.'
9
9
  )));
10
- const settingsMoreActionIcon = registerIcon('settings-more-action', Codicon.gear, ( localize(9245, 'Icon for the \'more actions\' action in the Settings UI.')));
11
- const keybindingsRecordKeysIcon = registerIcon('keybindings-record-keys', Codicon.recordKeys, ( localize(9246, 'Icon for the \'record keys\' action in the keybinding UI.')));
12
- const keybindingsSortIcon = registerIcon('keybindings-sort', Codicon.sortPrecedence, ( localize(9247, 'Icon for the \'sort by precedence\' toggle in the keybinding UI.')));
13
- const keybindingsEditIcon = registerIcon('keybindings-edit', Codicon.edit, ( localize(9248, 'Icon for the edit action in the keybinding UI.')));
14
- const keybindingsAddIcon = registerIcon('keybindings-add', Codicon.add, ( localize(9249, 'Icon for the add action in the keybinding UI.')));
15
- const settingsEditIcon = registerIcon('settings-edit', Codicon.edit, ( localize(9250, 'Icon for the edit action in the Settings UI.')));
16
- const settingsRemoveIcon = registerIcon('settings-remove', Codicon.close, ( localize(9251, 'Icon for the remove action in the Settings UI.')));
17
- const settingsDiscardIcon = registerIcon('settings-discard', Codicon.discard, ( localize(9252, 'Icon for the discard action in the Settings UI.')));
18
- const preferencesClearInputIcon = registerIcon('preferences-clear-input', Codicon.clearAll, ( localize(9253, 'Icon for clear input in the Settings and keybinding UI.')));
19
- const preferencesAiResultsIcon = registerIcon('preferences-ai-results', Codicon.sparkle, ( localize(9254, 'Icon for showing AI results in the Settings UI.')));
20
- const preferencesFilterIcon = registerIcon('preferences-filter', Codicon.filter, ( localize(9255, 'Icon for the button that suggests filters for the Settings UI.')));
21
- const preferencesOpenSettingsIcon = registerIcon('preferences-open-settings', Codicon.goToFile, ( localize(9256, 'Icon for open settings commands.')));
10
+ const settingsMoreActionIcon = registerIcon('settings-more-action', Codicon.gear, ( localize(9248, 'Icon for the \'more actions\' action in the Settings UI.')));
11
+ const keybindingsRecordKeysIcon = registerIcon('keybindings-record-keys', Codicon.recordKeys, ( localize(9249, 'Icon for the \'record keys\' action in the keybinding UI.')));
12
+ const keybindingsSortIcon = registerIcon('keybindings-sort', Codicon.sortPrecedence, ( localize(9250, 'Icon for the \'sort by precedence\' toggle in the keybinding UI.')));
13
+ const keybindingsEditIcon = registerIcon('keybindings-edit', Codicon.edit, ( localize(9251, 'Icon for the edit action in the keybinding UI.')));
14
+ const keybindingsAddIcon = registerIcon('keybindings-add', Codicon.add, ( localize(9252, 'Icon for the add action in the keybinding UI.')));
15
+ const settingsEditIcon = registerIcon('settings-edit', Codicon.edit, ( localize(9253, 'Icon for the edit action in the Settings UI.')));
16
+ const settingsRemoveIcon = registerIcon('settings-remove', Codicon.close, ( localize(9254, 'Icon for the remove action in the Settings UI.')));
17
+ const settingsDiscardIcon = registerIcon('settings-discard', Codicon.discard, ( localize(9255, 'Icon for the discard action in the Settings UI.')));
18
+ const preferencesClearInputIcon = registerIcon('preferences-clear-input', Codicon.clearAll, ( localize(9256, 'Icon for clear input in the Settings and keybinding UI.')));
19
+ const preferencesAiResultsIcon = registerIcon('preferences-ai-results', Codicon.sparkle, ( localize(9257, 'Icon for showing AI results in the Settings UI.')));
20
+ const preferencesFilterIcon = registerIcon('preferences-filter', Codicon.filter, ( localize(9258, 'Icon for the button that suggests filters for the Settings UI.')));
21
+ const preferencesOpenSettingsIcon = registerIcon('preferences-open-settings', Codicon.goToFile, ( localize(9259, 'Icon for open settings commands.')));
22
22
 
23
23
  export { keybindingsAddIcon, keybindingsEditIcon, keybindingsRecordKeysIcon, keybindingsSortIcon, preferencesAiResultsIcon, preferencesClearInputIcon, preferencesFilterIcon, preferencesOpenSettingsIcon, settingsDiscardIcon, settingsEditIcon, settingsMoreActionIcon, settingsRemoveIcon, settingsScopeDropDownIcon };
@@ -206,17 +206,17 @@ let SettingsTargetsWidget = class SettingsTargetsWidget extends Widget {
206
206
  resetLabels() {
207
207
  const remoteAuthority = this.environmentService.remoteAuthority;
208
208
  const hostLabel = remoteAuthority && this.labelService.getHostLabel(Schemas.vscodeRemote, remoteAuthority);
209
- this.userLocalSettings.label = ( localize(9276, "User"));
210
- this.userRemoteSettings.label = ( localize(9277, "Remote")) + (hostLabel ? ` [${hostLabel}]` : '');
211
- this.workspaceSettings.label = ( localize(9278, "Workspace"));
212
- this.folderSettingsAction.label = ( localize(9279, "Folder"));
209
+ this.userLocalSettings.label = ( localize(9279, "User"));
210
+ this.userRemoteSettings.label = ( localize(9280, "Remote")) + (hostLabel ? ` [${hostLabel}]` : '');
211
+ this.workspaceSettings.label = ( localize(9281, "Workspace"));
212
+ this.folderSettingsAction.label = ( localize(9282, "Folder"));
213
213
  }
214
214
  create(parent) {
215
215
  const settingsTabsWidget = append(parent, $('.settings-tabs-widget'));
216
216
  this.settingsSwitcherBar = this._register(( new ActionBar(settingsTabsWidget, {
217
217
  orientation: ActionsOrientation.HORIZONTAL,
218
218
  focusOnlyEnabledItems: true,
219
- ariaLabel: ( localize(9280, "Settings Switcher")),
219
+ ariaLabel: ( localize(9283, "Settings Switcher")),
220
220
  ariaRole: 'tablist',
221
221
  actionViewItemProvider: (action, options) => action.id === 'folderSettings' ? this.folderSettings : undefined
222
222
  })));
@@ -227,7 +227,7 @@ let SettingsTargetsWidget = class SettingsTargetsWidget extends Widget {
227
227
  true,
228
228
  () => this.updateTarget(ConfigurationTarget.USER_LOCAL)
229
229
  )));
230
- this.userLocalSettings.tooltip = ( localize(9276, "User"));
230
+ this.userLocalSettings.tooltip = ( localize(9279, "User"));
231
231
  this.userRemoteSettings = this._register(( new Action(
232
232
  'userSettingsRemote',
233
233
  '',
@@ -237,7 +237,7 @@ let SettingsTargetsWidget = class SettingsTargetsWidget extends Widget {
237
237
  )));
238
238
  const remoteAuthority = this.environmentService.remoteAuthority;
239
239
  const hostLabel = remoteAuthority && this.labelService.getHostLabel(Schemas.vscodeRemote, remoteAuthority);
240
- this.userRemoteSettings.tooltip = ( localize(9277, "Remote")) + (hostLabel ? ` [${hostLabel}]` : '');
240
+ this.userRemoteSettings.tooltip = ( localize(9280, "Remote")) + (hostLabel ? ` [${hostLabel}]` : '');
241
241
  this.workspaceSettings = this._register(( new Action(
242
242
  'workspaceSettings',
243
243
  '',
@@ -271,14 +271,14 @@ let SettingsTargetsWidget = class SettingsTargetsWidget extends Widget {
271
271
  }
272
272
  setResultCount(settingsTarget, count) {
273
273
  if (settingsTarget === ConfigurationTarget.WORKSPACE) {
274
- let label = ( localize(9278, "Workspace"));
274
+ let label = ( localize(9281, "Workspace"));
275
275
  if (count) {
276
276
  label += ` (${count})`;
277
277
  }
278
278
  this.workspaceSettings.label = label;
279
279
  }
280
280
  else if (settingsTarget === ConfigurationTarget.USER_LOCAL) {
281
- let label = ( localize(9276, "User"));
281
+ let label = ( localize(9279, "User"));
282
282
  if (count) {
283
283
  label += ` (${count})`;
284
284
  }
@@ -324,7 +324,7 @@ let SettingsTargetsWidget = class SettingsTargetsWidget extends Widget {
324
324
  this.userRemoteSettings.enabled = !!(this.options.enableRemoteSettings && this.environmentService.remoteAuthority);
325
325
  this.workspaceSettings.enabled = this.contextService.getWorkbenchState() !== WorkbenchState.EMPTY;
326
326
  this.folderSettings.action.enabled = this.contextService.getWorkbenchState() === WorkbenchState.WORKSPACE && this.contextService.getWorkspace().folders.length > 0;
327
- this.workspaceSettings.tooltip = ( localize(9278, "Workspace"));
327
+ this.workspaceSettings.tooltip = ( localize(9281, "Workspace"));
328
328
  }
329
329
  };
330
330
  SettingsTargetsWidget = ( __decorate([