@codingame/monaco-vscode-quickaccess-service-override 7.0.11 → 7.1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-quickaccess-service-override",
3
- "version": "7.0.11",
3
+ "version": "7.1.1",
4
4
  "keywords": [],
5
5
  "author": {
6
6
  "name": "CodinGame",
@@ -26,6 +26,6 @@
26
26
  }
27
27
  },
28
28
  "dependencies": {
29
- "vscode": "npm:@codingame/monaco-vscode-api@7.0.11"
29
+ "vscode": "npm:@codingame/monaco-vscode-api@7.1.1"
30
30
  }
31
31
  }
@@ -6,7 +6,7 @@ import { createSingleCallFunction } from 'vscode/vscode/vs/base/common/functiona
6
6
  import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
7
7
  import { LRUCache } from 'vscode/vscode/vs/base/common/map';
8
8
  import { TfIdfCalculator, normalizeTfIdfScores } from 'vscode/vscode/vs/base/common/tfIdf';
9
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
9
+ import { localize } from 'vscode/vscode/vs/nls';
10
10
  import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands.service';
11
11
  import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
12
12
  import { IDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs.service';
@@ -19,7 +19,6 @@ import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storag
19
19
  import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry.service';
20
20
 
21
21
  var AbstractCommandsQuickAccessProvider_1, CommandsHistory_1;
22
- const _moduleId = "vs/platform/quickinput/browser/commandsQuickAccess";
23
22
  let AbstractCommandsQuickAccessProvider = class AbstractCommandsQuickAccessProvider extends PickerQuickAccessProvider {
24
23
  static { AbstractCommandsQuickAccessProvider_1 = this; }
25
24
  static { this.PREFIX = '>'; }
@@ -135,20 +134,20 @@ let AbstractCommandsQuickAccessProvider = class AbstractCommandsQuickAccessProvi
135
134
  for (let i = 0; i < filteredCommandPicks.length; i++) {
136
135
  const commandPick = filteredCommandPicks[i];
137
136
  if (i === 0 && this.commandsHistory.peek(commandPick.commandId)) {
138
- commandPicks.push({ type: 'separator', label: ( localizeWithPath(_moduleId, 0, "recently used")) });
137
+ commandPicks.push({ type: 'separator', label: ( localize(4790, "recently used")) });
139
138
  addOtherSeparator = true;
140
139
  }
141
140
  if (addSuggestedSeparator && commandPick.tfIdfScore !== undefined) {
142
- commandPicks.push({ type: 'separator', label: ( localizeWithPath(_moduleId, 1, "similar commands")) });
141
+ commandPicks.push({ type: 'separator', label: ( localize(4791, "similar commands")) });
143
142
  addSuggestedSeparator = false;
144
143
  }
145
144
  if (addCommonlyUsedSeparator && commandPick.tfIdfScore === undefined && !this.commandsHistory.peek(commandPick.commandId) && this.options.suggestedCommandIds?.has(commandPick.commandId)) {
146
- commandPicks.push({ type: 'separator', label: ( localizeWithPath(_moduleId, 2, "commonly used")) });
145
+ commandPicks.push({ type: 'separator', label: ( localize(4792, "commonly used")) });
147
146
  addOtherSeparator = true;
148
147
  addCommonlyUsedSeparator = false;
149
148
  }
150
149
  if (addOtherSeparator && commandPick.tfIdfScore === undefined && !this.commandsHistory.peek(commandPick.commandId) && !this.options.suggestedCommandIds?.has(commandPick.commandId)) {
151
- commandPicks.push({ type: 'separator', label: ( localizeWithPath(_moduleId, 3, "other commands")) });
150
+ commandPicks.push({ type: 'separator', label: ( localize(4793, "other commands")) });
152
151
  addOtherSeparator = false;
153
152
  }
154
153
  commandPicks.push(this.toCommandPick(commandPick, runOptions));
@@ -165,7 +164,7 @@ let AbstractCommandsQuickAccessProvider = class AbstractCommandsQuickAccessProvi
165
164
  }
166
165
  const commandPicks = ( (additionalCommandPicks.map(commandPick => this.toCommandPick(commandPick, runOptions))));
167
166
  if (addSuggestedSeparator && commandPicks[0]?.type !== 'separator') {
168
- commandPicks.unshift({ type: 'separator', label: ( localizeWithPath(_moduleId, 1, "similar commands")) });
167
+ commandPicks.unshift({ type: 'separator', label: ( localize(4793, "similar commands")) });
169
168
  }
170
169
  return commandPicks;
171
170
  })()
@@ -177,7 +176,7 @@ let AbstractCommandsQuickAccessProvider = class AbstractCommandsQuickAccessProvi
177
176
  }
178
177
  const keybinding = this.keybindingService.lookupKeybinding(commandPick.commandId);
179
178
  const ariaLabel = keybinding ?
180
- ( localizeWithPath(_moduleId, 4, "{0}, {1}", commandPick.label, keybinding.getAriaLabel())) :
179
+ ( localize(4794, "{0}, {1}", commandPick.label, keybinding.getAriaLabel())) :
181
180
  commandPick.label;
182
181
  return {
183
182
  ...commandPick,
@@ -197,7 +196,7 @@ let AbstractCommandsQuickAccessProvider = class AbstractCommandsQuickAccessProvi
197
196
  }
198
197
  catch (error) {
199
198
  if (!isCancellationError(error)) {
200
- this.dialogService.error(( localizeWithPath(_moduleId, 5, "Command '{0}' resulted in an error", commandPick.label)), toErrorMessage(error));
199
+ this.dialogService.error(( localize(4795, "Command '{0}' resulted in an error", commandPick.label)), toErrorMessage(error));
201
200
  }
202
201
  }
203
202
  }
@@ -1,5 +1,5 @@
1
1
  import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
2
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
2
+ import { localize } from 'vscode/vscode/vs/nls';
3
3
  import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
4
4
  import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
5
5
  import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding.service';
@@ -7,7 +7,6 @@ import { Extensions } from 'vscode/vscode/vs/platform/quickinput/common/quickAcc
7
7
  import { IQuickInputService } from 'vscode/vscode/vs/platform/quickinput/common/quickInput.service';
8
8
 
9
9
  var HelpQuickAccessProvider_1;
10
- const _moduleId = "vs/platform/quickinput/browser/helpQuickAccess";
11
10
  let HelpQuickAccessProvider = class HelpQuickAccessProvider {
12
11
  static { HelpQuickAccessProvider_1 = this; }
13
12
  static { this.PREFIX = '?'; }
@@ -49,7 +48,7 @@ let HelpQuickAccessProvider = class HelpQuickAccessProvider {
49
48
  prefix,
50
49
  label,
51
50
  keybinding: helpEntry.commandId ? this.keybindingService.lookupKeybinding(helpEntry.commandId) : undefined,
52
- ariaLabel: ( localizeWithPath(_moduleId, 0, "{0}, {1}", label, helpEntry.description)),
51
+ ariaLabel: ( localize(4985, "{0}, {1}", label, helpEntry.description)),
53
52
  description: helpEntry.description
54
53
  };
55
54
  }))
@@ -1,4 +1,4 @@
1
- import { localize2WithPath, localizeWithPath } from 'vscode/vscode/vs/nls';
1
+ import { localize2, localize } from 'vscode/vscode/vs/nls';
2
2
  import { registerAction2, Action2, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
3
3
  import { KeyMod, KeyCode } from 'vscode/vscode/vs/base/common/keyCodes';
4
4
  import { KeybindingsRegistry, KeybindingWeight } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
@@ -9,7 +9,6 @@ import { CommandsRegistry } from 'vscode/vscode/vs/platform/commands/common/comm
9
9
  import { inQuickPickContext, getQuickNavigateHandler, defaultQuickAccessContext } from 'vscode/vscode/vs/workbench/browser/quickaccess';
10
10
  import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
11
11
 
12
- const _moduleId = "vs/workbench/browser/actions/quickAccessActions";
13
12
  const globalQuickAccessKeybinding = {
14
13
  primary: KeyMod.CtrlCmd | KeyCode.KeyP,
15
14
  secondary: [KeyMod.CtrlCmd | KeyCode.KeyE],
@@ -105,7 +104,7 @@ registerAction2(class QuickAccessAction extends Action2 {
105
104
  constructor() {
106
105
  super({
107
106
  id: 'workbench.action.quickOpen',
108
- title: ( localize2WithPath(_moduleId, 0, "Go to File...")),
107
+ title: ( localize2(1172, "Go to File...")),
109
108
  metadata: {
110
109
  description: `Quick access`,
111
110
  args: [{
@@ -133,7 +132,7 @@ registerAction2(class QuickAccessAction extends Action2 {
133
132
  constructor() {
134
133
  super({
135
134
  id: 'workbench.action.quickOpenWithModes',
136
- title: ( localizeWithPath(_moduleId, 1, "Quick Open")),
135
+ title: ( localize(1173, "Quick Open")),
137
136
  icon: Codicon.search,
138
137
  menu: {
139
138
  id: MenuId.CommandCenterCenter,
@@ -173,17 +172,17 @@ class BaseQuickAccessNavigateAction extends Action2 {
173
172
  }
174
173
  class QuickAccessNavigateNextAction extends BaseQuickAccessNavigateAction {
175
174
  constructor() {
176
- super('workbench.action.quickOpenNavigateNext', ( localize2WithPath(_moduleId, 2, 'Navigate Next in Quick Open')), true, true);
175
+ super('workbench.action.quickOpenNavigateNext', ( localize2(1174, 'Navigate Next in Quick Open')), true, true);
177
176
  }
178
177
  }
179
178
  class QuickAccessNavigatePreviousAction extends BaseQuickAccessNavigateAction {
180
179
  constructor() {
181
- super('workbench.action.quickOpenNavigatePrevious', ( localize2WithPath(_moduleId, 3, 'Navigate Previous in Quick Open')), false, true);
180
+ super('workbench.action.quickOpenNavigatePrevious', ( localize2(1175, 'Navigate Previous in Quick Open')), false, true);
182
181
  }
183
182
  }
184
183
  class QuickAccessSelectNextAction extends BaseQuickAccessNavigateAction {
185
184
  constructor() {
186
- super('workbench.action.quickOpenSelectNext', ( localize2WithPath(_moduleId, 4, 'Select Next in Quick Open')), true, false, {
185
+ super('workbench.action.quickOpenSelectNext', ( localize2(1176, 'Select Next in Quick Open')), true, false, {
187
186
  weight: KeybindingWeight.WorkbenchContrib + 50,
188
187
  when: inQuickPickContext,
189
188
  primary: 0,
@@ -193,7 +192,7 @@ class QuickAccessSelectNextAction extends BaseQuickAccessNavigateAction {
193
192
  }
194
193
  class QuickAccessSelectPreviousAction extends BaseQuickAccessNavigateAction {
195
194
  constructor() {
196
- super('workbench.action.quickOpenSelectPrevious', ( localize2WithPath(_moduleId, 5, 'Select Previous in Quick Open')), false, false, {
195
+ super('workbench.action.quickOpenSelectPrevious', ( localize2(1177, 'Select Previous in Quick Open')), false, false, {
197
196
  weight: KeybindingWeight.WorkbenchContrib + 50,
198
197
  when: inQuickPickContext,
199
198
  primary: 0,
@@ -1,5 +1,5 @@
1
1
  import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
2
- import { localize2WithPath, localizeWithPath } from 'vscode/vscode/vs/nls';
2
+ import { localize2, localize } from 'vscode/vscode/vs/nls';
3
3
  import { IQuickInputService } from 'vscode/vscode/vs/platform/quickinput/common/quickInput.service';
4
4
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
5
5
  import { AbstractGotoLineQuickAccessProvider } from 'vscode/vscode/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess';
@@ -11,7 +11,6 @@ import { KeyMod, KeyCode } from 'vscode/vscode/vs/base/common/keyCodes';
11
11
  import { KeybindingWeight } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
12
12
  import { IEditorGroupsService } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
13
13
 
14
- const _moduleId = "vs/workbench/contrib/codeEditor/browser/quickaccess/gotoLineQuickAccess";
15
14
  let GotoLineQuickAccessProvider = class GotoLineQuickAccessProvider extends AbstractGotoLineQuickAccessProvider {
16
15
  constructor(editorService, editorGroupService, configurationService) {
17
16
  super();
@@ -54,7 +53,7 @@ class GotoLineAction extends Action2 {
54
53
  constructor() {
55
54
  super({
56
55
  id: GotoLineAction.ID,
57
- title: ( localize2WithPath(_moduleId, 0, 'Go to Line/Column...')),
56
+ title: ( localize2(1163, 'Go to Line/Column...')),
58
57
  f1: true,
59
58
  keybinding: {
60
59
  weight: KeybindingWeight.WorkbenchContrib,
@@ -72,12 +71,11 @@ registerAction2(GotoLineAction);
72
71
  ( (Registry.as(Extensions.Quickaccess))).registerQuickAccessProvider({
73
72
  ctor: GotoLineQuickAccessProvider,
74
73
  prefix: AbstractGotoLineQuickAccessProvider.PREFIX,
75
- placeholder: ( localizeWithPath(
76
- _moduleId,
77
- 1,
74
+ placeholder: ( localize(
75
+ 1164,
78
76
  "Type the line number and optional column to go to (e.g. 42:5 for line 42 and column 5)."
79
77
  )),
80
- helpEntries: [{ description: ( localizeWithPath(_moduleId, 2, "Go to Line/Column")), commandId: GotoLineAction.ID }]
78
+ helpEntries: [{ description: ( localize(1165, "Go to Line/Column")), commandId: GotoLineAction.ID }]
81
79
  });
82
80
 
83
81
  export { GotoLineQuickAccessProvider };
@@ -7,7 +7,7 @@ import { KeyMod, KeyCode } from 'vscode/vscode/vs/base/common/keyCodes';
7
7
  import { Language } from 'vscode/vscode/vs/base/common/platform';
8
8
  import { ThemeIcon } from 'vscode/vscode/vs/base/common/themables';
9
9
  import { AbstractEditorCommandsQuickAccessProvider } from '../../../../editor/contrib/quickAccess/browser/commandsQuickAccess.js';
10
- import { localizeWithPath, localize2WithPath } from 'vscode/vscode/vs/nls';
10
+ import { localize, localize2 } from 'vscode/vscode/vs/nls';
11
11
  import { isLocalizedString } from 'vscode/vscode/vs/platform/action/common/action';
12
12
  import { MenuId, MenuItemAction, Action2 } from 'vscode/vscode/vs/platform/actions/common/actions';
13
13
  import { IMenuService } from 'vscode/vscode/vs/platform/actions/common/actions.service';
@@ -37,7 +37,6 @@ import { createKeybindingCommandQuery } from 'vscode/vscode/vs/workbench/service
37
37
  import { IPreferencesService } from 'vscode/vscode/vs/workbench/services/preferences/common/preferences.service';
38
38
 
39
39
  var CommandsQuickAccessProvider_1;
40
- const _moduleId = "vs/workbench/contrib/quickaccess/browser/commandsQuickAccess";
41
40
  let CommandsQuickAccessProvider = class CommandsQuickAccessProvider extends AbstractEditorCommandsQuickAccessProvider {
42
41
  static { CommandsQuickAccessProvider_1 = this; }
43
42
  static { this.AI_RELATED_INFORMATION_MAX_PICKS = 5; }
@@ -54,7 +53,7 @@ let CommandsQuickAccessProvider = class CommandsQuickAccessProvider extends Abst
54
53
  super({
55
54
  showAlias: !Language.isDefaultVariant(),
56
55
  noResultsPick: () => ({
57
- label: ( localizeWithPath(_moduleId, 0, "No matching commands")),
56
+ label: ( localize(1154, "No matching commands")),
58
57
  commandId: ''
59
58
  }),
60
59
  }, instantiationService, keybindingService, commandService, telemetryService, dialogService);
@@ -103,7 +102,7 @@ let CommandsQuickAccessProvider = class CommandsQuickAccessProvider extends Abst
103
102
  ...picks,
104
103
  buttons: [{
105
104
  iconClass: ThemeIcon.asClassName(Codicon.gear),
106
- tooltip: ( localizeWithPath(_moduleId, 1, "Configure Keybinding")),
105
+ tooltip: ( localize(1155, "Configure Keybinding")),
107
106
  }],
108
107
  trigger: () => {
109
108
  this.preferencesService.openGlobalKeybindingSettings(false, { query: createKeybindingCommandQuery(picks.commandId, picks.commandWhen) });
@@ -141,7 +140,7 @@ let CommandsQuickAccessProvider = class CommandsQuickAccessProvider extends Abst
141
140
  const defaultAgent = this.chatAgentService.getDefaultAgent(ChatAgentLocation.Panel);
142
141
  if (defaultAgent) {
143
142
  additionalPicks.push({
144
- label: ( localizeWithPath(_moduleId, 2, "Ask {0}: {1}", defaultAgent.fullName, filter)),
143
+ label: ( localize(1156, "Ask {0}: {1}", defaultAgent.fullName, filter)),
145
144
  commandId: this.configuration.experimental.askChatLocation === 'quickChat' ? ASK_QUICK_QUESTION_ACTION_ID : CHAT_OPEN_ACTION_ID,
146
145
  args: [filter]
147
146
  });
@@ -167,15 +166,15 @@ let CommandsQuickAccessProvider = class CommandsQuickAccessProvider extends Abst
167
166
  getGlobalCommandPicks() {
168
167
  const globalCommandPicks = [];
169
168
  const scopedContextKeyService = this.editorService.activeEditorPane?.scopedContextKeyService || this.editorGroupService.activeGroup.scopedContextKeyService;
170
- const globalCommandsMenu = this.menuService.createMenu(MenuId.CommandPalette, scopedContextKeyService);
171
- const globalCommandsMenuActions = globalCommandsMenu.getActions()
169
+ const globalCommandsMenu = this.menuService.getMenuActions(MenuId.CommandPalette, scopedContextKeyService);
170
+ const globalCommandsMenuActions = globalCommandsMenu
172
171
  .reduce((r, [, actions]) => [...r, ...actions], [])
173
172
  .filter(action => action instanceof MenuItemAction && action.enabled);
174
173
  for (const action of globalCommandsMenuActions) {
175
174
  let label = (typeof action.item.title === 'string' ? action.item.title : action.item.title.value) || action.item.id;
176
175
  const category = typeof action.item.category === 'string' ? action.item.category : action.item.category?.value;
177
176
  if (category) {
178
- label = ( localizeWithPath(_moduleId, 3, "{0}: {1}", category, label));
177
+ label = ( localize(1157, "{0}: {1}", category, label));
179
178
  }
180
179
  const aliasLabel = typeof action.item.title !== 'string' ? action.item.title.original : undefined;
181
180
  const aliasCategory = (category && action.item.category && typeof action.item.category !== 'string') ? action.item.category.original : undefined;
@@ -194,7 +193,6 @@ let CommandsQuickAccessProvider = class CommandsQuickAccessProvider extends Abst
194
193
  commandDescription,
195
194
  });
196
195
  }
197
- globalCommandsMenu.dispose();
198
196
  return globalCommandPicks;
199
197
  }
200
198
  };
@@ -219,7 +217,7 @@ class ShowAllCommandsAction extends Action2 {
219
217
  constructor() {
220
218
  super({
221
219
  id: ShowAllCommandsAction.ID,
222
- title: ( localize2WithPath(_moduleId, 4, 'Show All Commands')),
220
+ title: ( localize2(1158, 'Show All Commands')),
223
221
  keybinding: {
224
222
  weight: KeybindingWeight.WorkbenchContrib,
225
223
  when: undefined,
@@ -237,7 +235,7 @@ class ClearCommandHistoryAction extends Action2 {
237
235
  constructor() {
238
236
  super({
239
237
  id: 'workbench.action.clearCommandHistory',
240
- title: ( localize2WithPath(_moduleId, 5, 'Clear Command History')),
238
+ title: ( localize2(1159, 'Clear Command History')),
241
239
  f1: true
242
240
  });
243
241
  }
@@ -249,13 +247,9 @@ class ClearCommandHistoryAction extends Action2 {
249
247
  if (commandHistoryLength > 0) {
250
248
  const { confirmed } = await dialogService.confirm({
251
249
  type: 'warning',
252
- message: ( localizeWithPath(
253
- _moduleId,
254
- 6,
255
- "Do you want to clear the history of recently used commands?"
256
- )),
257
- detail: ( localizeWithPath(_moduleId, 7, "This action is irreversible!")),
258
- primaryButton: ( localizeWithPath(_moduleId, 8, "&&Clear"))
250
+ message: ( localize(1160, "Do you want to clear the history of recently used commands?")),
251
+ detail: ( localize(1161, "This action is irreversible!")),
252
+ primaryButton: ( localize(1162, "&&Clear"))
259
253
  });
260
254
  if (!confirmed) {
261
255
  return;
@@ -1,4 +1,4 @@
1
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
1
+ import { localize } from 'vscode/vscode/vs/nls';
2
2
  import { Extensions } from 'vscode/vscode/vs/platform/quickinput/common/quickAccess';
3
3
  import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
4
4
  import { HelpQuickAccessProvider } from '../../../../platform/quickinput/browser/helpQuickAccess.js';
@@ -11,46 +11,40 @@ import { inQuickPickContext, getQuickNavigateHandler } from 'vscode/vscode/vs/wo
11
11
  import { KeybindingsRegistry, KeybindingWeight } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
12
12
  import { EditorContextKeys } from 'vscode/vscode/vs/editor/common/editorContextKeys';
13
13
 
14
- const _moduleId = "vs/workbench/contrib/quickaccess/browser/quickAccess.contribution";
15
14
  const quickAccessRegistry = ( (Registry.as(Extensions.Quickaccess)));
16
15
  quickAccessRegistry.registerQuickAccessProvider({
17
16
  ctor: HelpQuickAccessProvider,
18
17
  prefix: HelpQuickAccessProvider.PREFIX,
19
- placeholder: ( localizeWithPath(
20
- _moduleId,
21
- 0,
18
+ placeholder: ( localize(
19
+ 1178,
22
20
  "Type '{0}' to get help on the actions you can take from here.",
23
21
  HelpQuickAccessProvider.PREFIX
24
22
  )),
25
23
  helpEntries: [{
26
- description: ( localizeWithPath(_moduleId, 1, "Show all Quick Access Providers")),
24
+ description: ( localize(1179, "Show all Quick Access Providers")),
27
25
  commandCenterOrder: 70,
28
- commandCenterLabel: ( localizeWithPath(_moduleId, 2, 'More'))
26
+ commandCenterLabel: ( localize(1180, 'More'))
29
27
  }]
30
28
  });
31
29
  quickAccessRegistry.registerQuickAccessProvider({
32
30
  ctor: ViewQuickAccessProvider,
33
31
  prefix: ViewQuickAccessProvider.PREFIX,
34
32
  contextKey: 'inViewsPicker',
35
- placeholder: ( localizeWithPath(
36
- _moduleId,
37
- 3,
38
- "Type the name of a view, output channel or terminal to open."
39
- )),
40
- helpEntries: [{ description: ( localizeWithPath(_moduleId, 4, "Open View")), commandId: OpenViewPickerAction.ID }]
33
+ placeholder: ( localize(1181, "Type the name of a view, output channel or terminal to open.")),
34
+ helpEntries: [{ description: ( localize(1182, "Open View")), commandId: OpenViewPickerAction.ID }]
41
35
  });
42
36
  quickAccessRegistry.registerQuickAccessProvider({
43
37
  ctor: CommandsQuickAccessProvider,
44
38
  prefix: CommandsQuickAccessProvider.PREFIX,
45
39
  contextKey: 'inCommandsPicker',
46
- placeholder: ( localizeWithPath(_moduleId, 5, "Type the name of a command to run.")),
47
- helpEntries: [{ description: ( localizeWithPath(_moduleId, 6, "Show and Run Commands")), commandId: ShowAllCommandsAction.ID, commandCenterOrder: 20 }]
40
+ placeholder: ( localize(1183, "Type the name of a command to run.")),
41
+ helpEntries: [{ description: ( localize(1184, "Show and Run Commands")), commandId: ShowAllCommandsAction.ID, commandCenterOrder: 20 }]
48
42
  });
49
43
  MenuRegistry.appendMenuItem(MenuId.MenubarViewMenu, {
50
44
  group: '1_open',
51
45
  command: {
52
46
  id: ShowAllCommandsAction.ID,
53
- title: ( localizeWithPath(_moduleId, 7, "&&Command Palette..."))
47
+ title: ( localize(1185, "&&Command Palette..."))
54
48
  },
55
49
  order: 1
56
50
  });
@@ -58,7 +52,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarHelpMenu, {
58
52
  group: '1_welcome',
59
53
  command: {
60
54
  id: ShowAllCommandsAction.ID,
61
- title: ( localizeWithPath(_moduleId, 8, "Show All Commands"))
55
+ title: ( localize(1186, "Show All Commands"))
62
56
  },
63
57
  order: 2
64
58
  });
@@ -66,7 +60,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarViewMenu, {
66
60
  group: '1_open',
67
61
  command: {
68
62
  id: OpenViewPickerAction.ID,
69
- title: ( localizeWithPath(_moduleId, 9, "&&Open View..."))
63
+ title: ( localize(1187, "&&Open View..."))
70
64
  },
71
65
  order: 2
72
66
  });
@@ -74,7 +68,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
74
68
  group: '5_infile_nav',
75
69
  command: {
76
70
  id: 'workbench.action.gotoLine',
77
- title: ( localizeWithPath(_moduleId, 10, "Go to &&Line/Column..."))
71
+ title: ( localize(1188, "Go to &&Line/Column..."))
78
72
  },
79
73
  order: 1
80
74
  });
@@ -82,7 +76,7 @@ MenuRegistry.appendMenuItem(MenuId.GlobalActivity, {
82
76
  group: '1_command',
83
77
  command: {
84
78
  id: ShowAllCommandsAction.ID,
85
- title: ( localizeWithPath(_moduleId, 11, "Command Palette..."))
79
+ title: ( localize(1189, "Command Palette..."))
86
80
  },
87
81
  order: 1
88
82
  });
@@ -91,7 +85,7 @@ MenuRegistry.appendMenuItem(MenuId.EditorContext, {
91
85
  when: ( (EditorContextKeys.editorSimpleInput.toNegated())),
92
86
  command: {
93
87
  id: ShowAllCommandsAction.ID,
94
- title: ( localizeWithPath(_moduleId, 11, "Command Palette...")),
88
+ title: ( localize(1189, "Command Palette...")),
95
89
  },
96
90
  order: 1
97
91
  });
@@ -1,5 +1,5 @@
1
1
  import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
2
- import { localizeWithPath, localize2WithPath } from 'vscode/vscode/vs/nls';
2
+ import { localize, localize2 } from 'vscode/vscode/vs/nls';
3
3
  import { ItemActivation } from 'vscode/vscode/vs/platform/quickinput/common/quickInput';
4
4
  import { IQuickInputService } from 'vscode/vscode/vs/platform/quickinput/common/quickInput.service';
5
5
  import { PickerQuickAccessProvider } from 'vscode/vscode/vs/platform/quickinput/browser/pickerQuickAccess';
@@ -21,14 +21,13 @@ import { REPL_VIEW_ID } from 'vscode/vscode/vs/workbench/contrib/debug/common/de
21
21
  import { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug.service';
22
22
 
23
23
  var ViewQuickAccessProvider_1;
24
- const _moduleId = "vs/workbench/contrib/quickaccess/browser/viewQuickAccess";
25
24
  let ViewQuickAccessProvider = class ViewQuickAccessProvider extends PickerQuickAccessProvider {
26
25
  static { ViewQuickAccessProvider_1 = this; }
27
26
  static { this.PREFIX = 'view '; }
28
27
  constructor(viewDescriptorService, viewsService, outputService, terminalService, terminalGroupService, debugService, paneCompositeService, contextKeyService) {
29
28
  super(ViewQuickAccessProvider_1.PREFIX, {
30
29
  noResultsPick: {
31
- label: ( localizeWithPath(_moduleId, 0, "No matching views")),
30
+ label: ( localize(4986, "No matching views")),
32
31
  containerLabel: ''
33
32
  }
34
33
  });
@@ -116,9 +115,9 @@ let ViewQuickAccessProvider = class ViewQuickAccessProvider extends PickerQuickA
116
115
  }
117
116
  }
118
117
  };
119
- addPaneComposites(ViewContainerLocation.Sidebar, ( localizeWithPath(_moduleId, 1, "Side Bar")));
120
- addPaneComposites(ViewContainerLocation.Panel, ( localizeWithPath(_moduleId, 2, "Panel")));
121
- addPaneComposites(ViewContainerLocation.AuxiliaryBar, ( localizeWithPath(_moduleId, 3, "Secondary Side Bar")));
118
+ addPaneComposites(ViewContainerLocation.Sidebar, ( localize(4987, "Side Bar")));
119
+ addPaneComposites(ViewContainerLocation.Panel, ( localize(4988, "Panel")));
120
+ addPaneComposites(ViewContainerLocation.AuxiliaryBar, ( localize(4989, "Secondary Side Bar")));
122
121
  const addPaneCompositeViews = (location) => {
123
122
  const paneComposites = this.paneCompositeService.getPaneComposites(location);
124
123
  for (const paneComposite of paneComposites) {
@@ -133,16 +132,10 @@ let ViewQuickAccessProvider = class ViewQuickAccessProvider extends PickerQuickA
133
132
  addPaneCompositeViews(ViewContainerLocation.AuxiliaryBar);
134
133
  this.terminalGroupService.groups.forEach((group, groupIndex) => {
135
134
  group.terminalInstances.forEach((terminal, terminalIndex) => {
136
- const label = ( localizeWithPath(
137
- _moduleId,
138
- 4,
139
- "{0}: {1}",
140
- `${groupIndex + 1}.${terminalIndex + 1}`,
141
- terminal.title
142
- ));
135
+ const label = ( localize(4990, "{0}: {1}", `${groupIndex + 1}.${terminalIndex + 1}`, terminal.title));
143
136
  viewEntries.push({
144
137
  label,
145
- containerLabel: ( localizeWithPath(_moduleId, 5, "Terminal")),
138
+ containerLabel: ( localize(4991, "Terminal")),
146
139
  accept: async () => {
147
140
  await this.terminalGroupService.showPanel(true);
148
141
  this.terminalService.setActiveInstance(terminal);
@@ -154,7 +147,7 @@ let ViewQuickAccessProvider = class ViewQuickAccessProvider extends PickerQuickA
154
147
  const label = session.name;
155
148
  viewEntries.push({
156
149
  label,
157
- containerLabel: ( localizeWithPath(_moduleId, 6, "Debug Console")),
150
+ containerLabel: ( localize(4992, "Debug Console")),
158
151
  accept: async () => {
159
152
  await this.debugService.focusStackFrame(undefined, undefined, session, { explicit: true });
160
153
  if (!this.viewsService.isViewVisible(REPL_VIEW_ID)) {
@@ -167,7 +160,7 @@ let ViewQuickAccessProvider = class ViewQuickAccessProvider extends PickerQuickA
167
160
  for (const channel of channels) {
168
161
  viewEntries.push({
169
162
  label: channel.label,
170
- containerLabel: ( localizeWithPath(_moduleId, 7, "Output")),
163
+ containerLabel: ( localize(4993, "Output")),
171
164
  accept: () => this.outputService.showChannel(channel.id)
172
165
  });
173
166
  }
@@ -196,7 +189,7 @@ class OpenViewPickerAction extends Action2 {
196
189
  constructor() {
197
190
  super({
198
191
  id: OpenViewPickerAction.ID,
199
- title: ( localize2WithPath(_moduleId, 8, 'Open View')),
192
+ title: ( localize2(4994, 'Open View')),
200
193
  category: Categories.View,
201
194
  f1: true
202
195
  });
@@ -215,7 +208,7 @@ class QuickAccessViewPickerAction extends Action2 {
215
208
  constructor() {
216
209
  super({
217
210
  id: QuickAccessViewPickerAction.ID,
218
- title: ( localize2WithPath(_moduleId, 9, 'Quick Open View')),
211
+ title: ( localize2(4995, 'Quick Open View')),
219
212
  category: Categories.View,
220
213
  f1: false,
221
214
  keybinding: {
@@ -2,7 +2,7 @@ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
2
2
  import { matchesScheme, Schemas } from 'vscode/vscode/vs/base/common/network';
3
3
  import Severity$1 from 'vscode/vscode/vs/base/common/severity';
4
4
  import { URI } from 'vscode/vscode/vs/base/common/uri';
5
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
5
+ import { localize } from 'vscode/vscode/vs/nls';
6
6
  import { IClipboardService } from 'vscode/vscode/vs/platform/clipboard/common/clipboardService.service';
7
7
  import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
8
8
  import { IDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs.service';
@@ -18,7 +18,6 @@ import { ITrustedDomainService } from 'vscode/vscode/vs/workbench/contrib/url/br
18
18
  import { readStaticTrustedDomains, configureOpenerTrustedDomainsHandler } from 'vscode/vscode/vs/workbench/contrib/url/browser/trustedDomains';
19
19
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
20
20
 
21
- const _moduleId = "vs/workbench/contrib/url/browser/trustedDomainsValidator";
22
21
  let OpenerValidatorContributions = class OpenerValidatorContributions {
23
22
  constructor(_openerService, _storageService, _dialogService, _productService, _quickInputService, _editorService, _clipboardService, _telemetryService, _instantiationService, _configurationService, _workspaceTrustService, _trustedDomainService) {
24
23
  this._openerService = _openerService;
@@ -67,27 +66,26 @@ let OpenerValidatorContributions = class OpenerValidatorContributions {
67
66
  }
68
67
  const { result } = await this._dialogService.prompt({
69
68
  type: Severity$1.Info,
70
- message: ( localizeWithPath(
71
- _moduleId,
72
- 0,
69
+ message: ( localize(
70
+ 4996,
73
71
  'Do you want {0} to open the external website?',
74
72
  this._productService.nameShort
75
73
  )),
76
74
  detail: typeof originalResource === 'string' ? originalResource : formattedLink,
77
75
  buttons: [
78
76
  {
79
- label: ( localizeWithPath(_moduleId, 1, '&&Open')),
77
+ label: ( localize(4997, '&&Open')),
80
78
  run: () => true
81
79
  },
82
80
  {
83
- label: ( localizeWithPath(_moduleId, 2, '&&Copy')),
81
+ label: ( localize(4998, '&&Copy')),
84
82
  run: () => {
85
83
  this._clipboardService.writeText(typeof originalResource === 'string' ? originalResource : ( (resourceUri.toString(true))));
86
84
  return false;
87
85
  }
88
86
  },
89
87
  {
90
- label: ( localizeWithPath(_moduleId, 3, 'Configure &&Trusted Domains')),
88
+ label: ( localize(4999, 'Configure &&Trusted Domains')),
91
89
  run: async () => {
92
90
  const { trustedDomains, } = this._instantiationService.invokeFunction(readStaticTrustedDomains);
93
91
  const domainToOpen = `${scheme}://${authority}`;
@@ -1,5 +1,5 @@
1
1
  import { URI } from 'vscode/vscode/vs/base/common/uri';
2
- import { localize2WithPath, localizeWithPath } from 'vscode/vscode/vs/nls';
2
+ import { localize2, localize } from 'vscode/vscode/vs/nls';
3
3
  import { Action2, registerAction2, MenuRegistry, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
4
4
  import { CommandsRegistry } from 'vscode/vscode/vs/platform/commands/common/commands';
5
5
  import { LifecyclePhase } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
@@ -18,12 +18,11 @@ import 'vscode/vscode/vs/workbench/contrib/url/browser/trustedDomainService';
18
18
  import 'vscode/vscode/vs/platform/instantiation/common/instantiation';
19
19
  import 'vscode/vscode/vs/platform/instantiation/common/extensions';
20
20
 
21
- const _moduleId = "vs/workbench/contrib/url/browser/url.contribution";
22
21
  class OpenUrlAction extends Action2 {
23
22
  constructor() {
24
23
  super({
25
24
  id: 'workbench.action.url.openUrl',
26
- title: ( localize2WithPath(_moduleId, 0, 'Open URL')),
25
+ title: ( localize2(1190, 'Open URL')),
27
26
  category: Categories.Developer,
28
27
  f1: true
29
28
  });
@@ -31,7 +30,7 @@ class OpenUrlAction extends Action2 {
31
30
  async run(accessor) {
32
31
  const quickInputService = accessor.get(IQuickInputService);
33
32
  const urlService = accessor.get(IURLService);
34
- return quickInputService.input({ prompt: ( localizeWithPath(_moduleId, 1, "URL to open")) }).then(input => {
33
+ return quickInputService.input({ prompt: ( localize(1191, "URL to open")) }).then(input => {
35
34
  if (input) {
36
35
  const uri = ( (URI.parse(input)));
37
36
  urlService.open(uri, { originalUrl: input });
@@ -60,9 +59,8 @@ configurationRegistry.registerConfiguration({
60
59
  scope: ConfigurationScope.APPLICATION,
61
60
  type: 'boolean',
62
61
  default: false,
63
- description: ( localizeWithPath(
64
- _moduleId,
65
- 2,
62
+ description: ( localize(
63
+ 1192,
66
64
  "When enabled, trusted domain prompts will appear when opening links in trusted workspaces."
67
65
  ))
68
66
  }