@codingame/monaco-vscode-quickaccess-service-override 9.0.3 → 10.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-quickaccess-service-override",
3
- "version": "9.0.3",
3
+ "version": "10.0.0",
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@9.0.3"
29
+ "vscode": "npm:@codingame/monaco-vscode-api@10.0.0"
30
30
  }
31
31
  }
package/quickaccess.js CHANGED
@@ -26,7 +26,7 @@ const original = CommandsQuickAccessProvider.prototype['getCommandPicks'];
26
26
  CommandsQuickAccessProvider.prototype['getCommandPicks'] = async function (token) {
27
27
  let result = await original.call(this, token);
28
28
  if (!isKeybindingConfigurationVisible()) {
29
- result = ( result.map(picks => ({
29
+ result = ( result.map((picks) => ({
30
30
  ...picks,
31
31
  buttons: undefined
32
32
  })));
@@ -40,22 +40,34 @@ let DelegateQuickInputService = class DelegateQuickInputService {
40
40
  }
41
41
  get activeService() {
42
42
  const activeCodeEditor = StandaloneServices.get(ICodeEditorService).getFocusedCodeEditor();
43
- if (activeCodeEditor == null || shouldUseGlobalPicker(activeCodeEditor, activeCodeEditor instanceof StandaloneCodeEditor)) {
43
+ if (activeCodeEditor == null ||
44
+ shouldUseGlobalPicker(activeCodeEditor, activeCodeEditor instanceof StandaloneCodeEditor)) {
44
45
  return this.workbenchQuickInputService;
45
46
  }
46
47
  this.standaloneQuickInputService ?? (this.standaloneQuickInputService = this.instantiationService.createInstance(StandaloneQuickInputService));
47
48
  return this.standaloneQuickInputService;
48
49
  }
49
- get currentQuickInput() { return this.activeService.currentQuickInput; }
50
- get quickAccess() { return this.activeService.quickAccess; }
51
- get backButton() { return this.activeService.backButton; }
52
- get onShow() { return this.activeService.onShow; }
53
- get onHide() { return this.activeService.onHide; }
50
+ get currentQuickInput() {
51
+ return this.activeService.currentQuickInput;
52
+ }
53
+ get quickAccess() {
54
+ return this.activeService.quickAccess;
55
+ }
56
+ get backButton() {
57
+ return this.activeService.backButton;
58
+ }
59
+ get onShow() {
60
+ return this.activeService.onShow;
61
+ }
62
+ get onHide() {
63
+ return this.activeService.onHide;
64
+ }
54
65
  createQuickWidget() {
55
66
  return this.activeService.createQuickWidget();
56
67
  }
57
68
  pick(picks, options = {}, token = CancellationToken.None) {
58
- return this.activeService .pick(picks, options, token);
69
+ return this.activeService
70
+ .pick(picks, options, token);
59
71
  }
60
72
  input(options, token) {
61
73
  return this.activeService.input(options, token);
@@ -14,7 +14,7 @@ import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/c
14
14
  import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding.service';
15
15
  import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
16
16
  import { PickerQuickAccessProvider } from 'vscode/vscode/vs/platform/quickinput/browser/pickerQuickAccess';
17
- import { WillSaveStateReason, StorageScope, StorageTarget } from 'vscode/vscode/vs/platform/storage/common/storage';
17
+ import { WillSaveStateReason } from 'vscode/vscode/vs/platform/storage/common/storage';
18
18
  import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
19
19
  import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry.service';
20
20
 
@@ -134,20 +134,20 @@ let AbstractCommandsQuickAccessProvider = class AbstractCommandsQuickAccessProvi
134
134
  for (let i = 0; i < filteredCommandPicks.length; i++) {
135
135
  const commandPick = filteredCommandPicks[i];
136
136
  if (i === 0 && this.commandsHistory.peek(commandPick.commandId)) {
137
- commandPicks.push({ type: 'separator', label: ( localize(4579, "recently used")) });
137
+ commandPicks.push({ type: 'separator', label: ( localize(4606, "recently used")) });
138
138
  addOtherSeparator = true;
139
139
  }
140
140
  if (addSuggestedSeparator && commandPick.tfIdfScore !== undefined) {
141
- commandPicks.push({ type: 'separator', label: ( localize(4580, "similar commands")) });
141
+ commandPicks.push({ type: 'separator', label: ( localize(4607, "similar commands")) });
142
142
  addSuggestedSeparator = false;
143
143
  }
144
144
  if (addCommonlyUsedSeparator && commandPick.tfIdfScore === undefined && !this.commandsHistory.peek(commandPick.commandId) && this.options.suggestedCommandIds?.has(commandPick.commandId)) {
145
- commandPicks.push({ type: 'separator', label: ( localize(4581, "commonly used")) });
145
+ commandPicks.push({ type: 'separator', label: ( localize(4608, "commonly used")) });
146
146
  addOtherSeparator = true;
147
147
  addCommonlyUsedSeparator = false;
148
148
  }
149
149
  if (addOtherSeparator && commandPick.tfIdfScore === undefined && !this.commandsHistory.peek(commandPick.commandId) && !this.options.suggestedCommandIds?.has(commandPick.commandId)) {
150
- commandPicks.push({ type: 'separator', label: ( localize(4582, "other commands")) });
150
+ commandPicks.push({ type: 'separator', label: ( localize(4609, "other commands")) });
151
151
  addOtherSeparator = false;
152
152
  }
153
153
  commandPicks.push(this.toCommandPick(commandPick, runOptions));
@@ -164,7 +164,7 @@ let AbstractCommandsQuickAccessProvider = class AbstractCommandsQuickAccessProvi
164
164
  }
165
165
  const commandPicks = ( (additionalCommandPicks.map(commandPick => this.toCommandPick(commandPick, runOptions))));
166
166
  if (addSuggestedSeparator && commandPicks[0]?.type !== 'separator') {
167
- commandPicks.unshift({ type: 'separator', label: ( localize(4580, "similar commands")) });
167
+ commandPicks.unshift({ type: 'separator', label: ( localize(4607, "similar commands")) });
168
168
  }
169
169
  return commandPicks;
170
170
  })()
@@ -176,7 +176,7 @@ let AbstractCommandsQuickAccessProvider = class AbstractCommandsQuickAccessProvi
176
176
  }
177
177
  const keybinding = this.keybindingService.lookupKeybinding(commandPick.commandId);
178
178
  const ariaLabel = keybinding ?
179
- ( localize(4583, "{0}, {1}", commandPick.label, keybinding.getAriaLabel())) :
179
+ ( localize(4610, "{0}, {1}", commandPick.label, keybinding.getAriaLabel())) :
180
180
  commandPick.label;
181
181
  return {
182
182
  ...commandPick,
@@ -196,7 +196,7 @@ let AbstractCommandsQuickAccessProvider = class AbstractCommandsQuickAccessProvi
196
196
  }
197
197
  catch (error) {
198
198
  if (!isCancellationError(error)) {
199
- this.dialogService.error(( localize(4584, "Command '{0}' resulted in an error", commandPick.label)), toErrorMessage(error));
199
+ this.dialogService.error(( localize(4611, "Command '{0}' resulted in an error", commandPick.label)), toErrorMessage(error));
200
200
  }
201
201
  }
202
202
  }
@@ -256,7 +256,7 @@ let CommandsHistory = class CommandsHistory extends Disposable {
256
256
  }
257
257
  }
258
258
  load() {
259
- const raw = this.storageService.get(CommandsHistory_1.PREF_KEY_CACHE, StorageScope.PROFILE);
259
+ const raw = this.storageService.get(CommandsHistory_1.PREF_KEY_CACHE, 0 );
260
260
  let serializedCache;
261
261
  if (raw) {
262
262
  try {
@@ -277,7 +277,7 @@ let CommandsHistory = class CommandsHistory extends Disposable {
277
277
  }
278
278
  entries.forEach(entry => cache.set(entry.key, entry.value));
279
279
  }
280
- CommandsHistory_1.counter = this.storageService.getNumber(CommandsHistory_1.PREF_KEY_COUNTER, StorageScope.PROFILE, CommandsHistory_1.counter);
280
+ CommandsHistory_1.counter = this.storageService.getNumber(CommandsHistory_1.PREF_KEY_COUNTER, 0 , CommandsHistory_1.counter);
281
281
  }
282
282
  push(commandId) {
283
283
  if (!CommandsHistory_1.cache) {
@@ -298,8 +298,8 @@ let CommandsHistory = class CommandsHistory extends Disposable {
298
298
  }
299
299
  const serializedCache = { usesLRU: true, entries: [] };
300
300
  CommandsHistory_1.cache.forEach((value, key) => serializedCache.entries.push({ key, value }));
301
- this.storageService.store(CommandsHistory_1.PREF_KEY_CACHE, JSON.stringify(serializedCache), StorageScope.PROFILE, StorageTarget.USER);
302
- this.storageService.store(CommandsHistory_1.PREF_KEY_COUNTER, CommandsHistory_1.counter, StorageScope.PROFILE, StorageTarget.USER);
301
+ this.storageService.store(CommandsHistory_1.PREF_KEY_CACHE, JSON.stringify(serializedCache), 0 , 0 );
302
+ this.storageService.store(CommandsHistory_1.PREF_KEY_COUNTER, CommandsHistory_1.counter, 0 , 0 );
303
303
  CommandsHistory_1.hasChanges = false;
304
304
  }
305
305
  static getConfiguredCommandHistoryLength(configurationService) {
@@ -48,7 +48,7 @@ let HelpQuickAccessProvider = class HelpQuickAccessProvider {
48
48
  prefix,
49
49
  label,
50
50
  keybinding: helpEntry.commandId ? this.keybindingService.lookupKeybinding(helpEntry.commandId) : undefined,
51
- ariaLabel: ( localize(4780, "{0}, {1}", label, helpEntry.description)),
51
+ ariaLabel: ( localize(4811, "{0}, {1}", label, helpEntry.description)),
52
52
  description: helpEntry.description
53
53
  };
54
54
  }))
@@ -1,7 +1,6 @@
1
1
  import { localize2, localize } from 'vscode/vscode/vs/nls';
2
2
  import { registerAction2, Action2, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
3
- import { KeyMod, KeyCode } from 'vscode/vscode/vs/base/common/keyCodes';
4
- import { KeybindingsRegistry, KeybindingWeight } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
3
+ import { KeybindingsRegistry } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
5
4
  import { ItemActivation } from 'vscode/vscode/vs/platform/quickinput/common/quickInput';
6
5
  import { IQuickInputService } from 'vscode/vscode/vs/platform/quickinput/common/quickInput.service';
7
6
  import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding.service';
@@ -10,15 +9,15 @@ import { inQuickPickContext, getQuickNavigateHandler, defaultQuickAccessContext
10
9
  import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
11
10
 
12
11
  const globalQuickAccessKeybinding = {
13
- primary: KeyMod.CtrlCmd | KeyCode.KeyP,
14
- secondary: [KeyMod.CtrlCmd | KeyCode.KeyE],
15
- mac: { primary: KeyMod.CtrlCmd | KeyCode.KeyP, secondary: undefined }
12
+ primary: 2048 | 46 ,
13
+ secondary: [2048 | 35 ],
14
+ mac: { primary: 2048 | 46 , secondary: undefined }
16
15
  };
17
16
  KeybindingsRegistry.registerCommandAndKeybindingRule({
18
17
  id: 'workbench.action.closeQuickOpen',
19
- weight: KeybindingWeight.WorkbenchContrib,
18
+ weight: 200 ,
20
19
  when: inQuickPickContext,
21
- primary: KeyCode.Escape, secondary: [KeyMod.Shift | KeyCode.Escape],
20
+ primary: 9 , secondary: [1024 | 9 ],
22
21
  handler: accessor => {
23
22
  const quickInputService = accessor.get(IQuickInputService);
24
23
  return quickInputService.cancel();
@@ -26,7 +25,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
26
25
  });
27
26
  KeybindingsRegistry.registerCommandAndKeybindingRule({
28
27
  id: 'workbench.action.acceptSelectedQuickOpenItem',
29
- weight: KeybindingWeight.WorkbenchContrib,
28
+ weight: 200 ,
30
29
  when: inQuickPickContext,
31
30
  primary: 0,
32
31
  handler: accessor => {
@@ -36,7 +35,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
36
35
  });
37
36
  KeybindingsRegistry.registerCommandAndKeybindingRule({
38
37
  id: 'workbench.action.alternativeAcceptSelectedQuickOpenItem',
39
- weight: KeybindingWeight.WorkbenchContrib,
38
+ weight: 200 ,
40
39
  when: inQuickPickContext,
41
40
  primary: 0,
42
41
  handler: accessor => {
@@ -46,7 +45,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
46
45
  });
47
46
  KeybindingsRegistry.registerCommandAndKeybindingRule({
48
47
  id: 'workbench.action.focusQuickOpen',
49
- weight: KeybindingWeight.WorkbenchContrib,
48
+ weight: 200 ,
50
49
  when: inQuickPickContext,
51
50
  primary: 0,
52
51
  handler: accessor => {
@@ -57,7 +56,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
57
56
  const quickAccessNavigateNextInFilePickerId = 'workbench.action.quickOpenNavigateNextInFilePicker';
58
57
  KeybindingsRegistry.registerCommandAndKeybindingRule({
59
58
  id: quickAccessNavigateNextInFilePickerId,
60
- weight: KeybindingWeight.WorkbenchContrib + 50,
59
+ weight: 200 + 50,
61
60
  handler: getQuickNavigateHandler(quickAccessNavigateNextInFilePickerId, true),
62
61
  when: defaultQuickAccessContext,
63
62
  primary: globalQuickAccessKeybinding.primary,
@@ -67,19 +66,19 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
67
66
  const quickAccessNavigatePreviousInFilePickerId = 'workbench.action.quickOpenNavigatePreviousInFilePicker';
68
67
  KeybindingsRegistry.registerCommandAndKeybindingRule({
69
68
  id: quickAccessNavigatePreviousInFilePickerId,
70
- weight: KeybindingWeight.WorkbenchContrib + 50,
69
+ weight: 200 + 50,
71
70
  handler: getQuickNavigateHandler(quickAccessNavigatePreviousInFilePickerId, false),
72
71
  when: defaultQuickAccessContext,
73
- primary: globalQuickAccessKeybinding.primary | KeyMod.Shift,
74
- secondary: [globalQuickAccessKeybinding.secondary[0] | KeyMod.Shift],
72
+ primary: globalQuickAccessKeybinding.primary | 1024 ,
73
+ secondary: [globalQuickAccessKeybinding.secondary[0] | 1024 ],
75
74
  mac: {
76
- primary: globalQuickAccessKeybinding.mac.primary | KeyMod.Shift,
75
+ primary: globalQuickAccessKeybinding.mac.primary | 1024 ,
77
76
  secondary: undefined
78
77
  }
79
78
  });
80
79
  KeybindingsRegistry.registerCommandAndKeybindingRule({
81
80
  id: 'workbench.action.quickPickManyToggle',
82
- weight: KeybindingWeight.WorkbenchContrib,
81
+ weight: 200 ,
83
82
  when: inQuickPickContext,
84
83
  primary: 0,
85
84
  handler: accessor => {
@@ -89,12 +88,12 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
89
88
  });
90
89
  KeybindingsRegistry.registerCommandAndKeybindingRule({
91
90
  id: 'workbench.action.quickInputBack',
92
- weight: KeybindingWeight.WorkbenchContrib + 50,
91
+ weight: 200 + 50,
93
92
  when: inQuickPickContext,
94
93
  primary: 0,
95
- win: { primary: KeyMod.Alt | KeyCode.LeftArrow },
96
- mac: { primary: KeyMod.WinCtrl | KeyCode.Minus },
97
- linux: { primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.Minus },
94
+ win: { primary: 512 | 15 },
95
+ mac: { primary: 256 | 88 },
96
+ linux: { primary: 2048 | 512 | 88 },
98
97
  handler: accessor => {
99
98
  const quickInputService = accessor.get(IQuickInputService);
100
99
  quickInputService.back();
@@ -104,7 +103,7 @@ registerAction2(class QuickAccessAction extends Action2 {
104
103
  constructor() {
105
104
  super({
106
105
  id: 'workbench.action.quickOpen',
107
- title: ( localize2(891, "Go to File...")),
106
+ title: ( localize2(903, "Go to File...")),
108
107
  metadata: {
109
108
  description: `Quick access`,
110
109
  args: [{
@@ -115,7 +114,7 @@ registerAction2(class QuickAccessAction extends Action2 {
115
114
  }]
116
115
  },
117
116
  keybinding: {
118
- weight: KeybindingWeight.WorkbenchContrib,
117
+ weight: 200 ,
119
118
  primary: globalQuickAccessKeybinding.primary,
120
119
  secondary: globalQuickAccessKeybinding.secondary,
121
120
  mac: globalQuickAccessKeybinding.mac
@@ -132,7 +131,7 @@ registerAction2(class QuickAccessAction extends Action2 {
132
131
  constructor() {
133
132
  super({
134
133
  id: 'workbench.action.quickOpenWithModes',
135
- title: ( localize(892, "Quick Open")),
134
+ title: ( localize(904, "Quick Open")),
136
135
  icon: Codicon.search,
137
136
  menu: {
138
137
  id: MenuId.CommandCenterCenter,
@@ -173,31 +172,31 @@ class BaseQuickAccessNavigateAction extends Action2 {
173
172
  }
174
173
  class QuickAccessNavigateNextAction extends BaseQuickAccessNavigateAction {
175
174
  constructor() {
176
- super('workbench.action.quickOpenNavigateNext', ( localize2(893, 'Navigate Next in Quick Open')), true, true);
175
+ super('workbench.action.quickOpenNavigateNext', ( localize2(905, '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', ( localize2(894, 'Navigate Previous in Quick Open')), false, true);
180
+ super('workbench.action.quickOpenNavigatePrevious', ( localize2(906, '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', ( localize2(895, 'Select Next in Quick Open')), true, false, {
187
- weight: KeybindingWeight.WorkbenchContrib + 50,
185
+ super('workbench.action.quickOpenSelectNext', ( localize2(907, 'Select Next in Quick Open')), true, false, {
186
+ weight: 200 + 50,
188
187
  when: inQuickPickContext,
189
188
  primary: 0,
190
- mac: { primary: KeyMod.WinCtrl | KeyCode.KeyN }
189
+ mac: { primary: 256 | 44 }
191
190
  });
192
191
  }
193
192
  }
194
193
  class QuickAccessSelectPreviousAction extends BaseQuickAccessNavigateAction {
195
194
  constructor() {
196
- super('workbench.action.quickOpenSelectPrevious', ( localize2(896, 'Select Previous in Quick Open')), false, false, {
197
- weight: KeybindingWeight.WorkbenchContrib + 50,
195
+ super('workbench.action.quickOpenSelectPrevious', ( localize2(908, 'Select Previous in Quick Open')), false, false, {
196
+ weight: 200 + 50,
198
197
  when: inQuickPickContext,
199
198
  primary: 0,
200
- mac: { primary: KeyMod.WinCtrl | KeyCode.KeyP }
199
+ mac: { primary: 256 | 46 }
201
200
  });
202
201
  }
203
202
  }
@@ -7,8 +7,6 @@ import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
7
7
  import { Extensions } from 'vscode/vscode/vs/platform/quickinput/common/quickAccess';
8
8
  import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
9
9
  import { Action2, registerAction2 } from 'vscode/vscode/vs/platform/actions/common/actions';
10
- import { KeyMod, KeyCode } from 'vscode/vscode/vs/base/common/keyCodes';
11
- import { KeybindingWeight } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
12
10
  import { IEditorGroupsService } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
13
11
 
14
12
  let GotoLineQuickAccessProvider = class GotoLineQuickAccessProvider extends AbstractGotoLineQuickAccessProvider {
@@ -53,13 +51,13 @@ class GotoLineAction extends Action2 {
53
51
  constructor() {
54
52
  super({
55
53
  id: GotoLineAction.ID,
56
- title: ( localize2(882, 'Go to Line/Column...')),
54
+ title: ( localize2(894, 'Go to Line/Column...')),
57
55
  f1: true,
58
56
  keybinding: {
59
- weight: KeybindingWeight.WorkbenchContrib,
57
+ weight: 200 ,
60
58
  when: null,
61
- primary: KeyMod.CtrlCmd | KeyCode.KeyG,
62
- mac: { primary: KeyMod.WinCtrl | KeyCode.KeyG }
59
+ primary: 2048 | 37 ,
60
+ mac: { primary: 256 | 37 }
63
61
  }
64
62
  });
65
63
  }
@@ -72,10 +70,10 @@ registerAction2(GotoLineAction);
72
70
  ctor: GotoLineQuickAccessProvider,
73
71
  prefix: AbstractGotoLineQuickAccessProvider.PREFIX,
74
72
  placeholder: ( localize(
75
- 883,
73
+ 895,
76
74
  "Type the line number and optional column to go to (e.g. 42:5 for line 42 and column 5)."
77
75
  )),
78
- helpEntries: [{ description: ( localize(884, "Go to Line/Column")), commandId: GotoLineAction.ID }]
76
+ helpEntries: [{ description: ( localize(896, "Go to Line/Column")), commandId: GotoLineAction.ID }]
79
77
  });
80
78
 
81
79
  export { GotoLineQuickAccessProvider };
@@ -3,7 +3,6 @@ import { isFirefox } from 'vscode/vscode/vs/base/browser/browser';
3
3
  import { raceTimeout, timeout } from 'vscode/vscode/vs/base/common/async';
4
4
  import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
5
5
  import { stripIcons } from 'vscode/vscode/vs/base/common/iconLabels';
6
- import { KeyMod, KeyCode } from 'vscode/vscode/vs/base/common/keyCodes';
7
6
  import { Language } from 'vscode/vscode/vs/base/common/platform';
8
7
  import { ThemeIcon } from 'vscode/vscode/vs/base/common/themables';
9
8
  import { AbstractEditorCommandsQuickAccessProvider } from '../../../../editor/contrib/quickAccess/browser/commandsQuickAccess.js';
@@ -16,7 +15,6 @@ import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/c
16
15
  import { IDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs.service';
17
16
  import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
18
17
  import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding.service';
19
- import { KeybindingWeight } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
20
18
  import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService.service';
21
19
  import { CommandsHistory } from '../../../../platform/quickinput/browser/commandsQuickAccess.js';
22
20
  import { TriggerAction } from 'vscode/vscode/vs/platform/quickinput/browser/pickerQuickAccess';
@@ -40,7 +38,6 @@ var CommandsQuickAccessProvider_1;
40
38
  let CommandsQuickAccessProvider = class CommandsQuickAccessProvider extends AbstractEditorCommandsQuickAccessProvider {
41
39
  static { CommandsQuickAccessProvider_1 = this; }
42
40
  static { this.AI_RELATED_INFORMATION_MAX_PICKS = 5; }
43
- static { this.AI_RELATED_INFORMATION_THRESHOLD = 0.8; }
44
41
  static { this.AI_RELATED_INFORMATION_DEBOUNCE = 200; }
45
42
  get activeTextEditorControl() { return this.editorService.activeTextEditorControl; }
46
43
  get defaultFilterValue() {
@@ -53,7 +50,7 @@ let CommandsQuickAccessProvider = class CommandsQuickAccessProvider extends Abst
53
50
  super({
54
51
  showAlias: !Language.isDefaultVariant(),
55
52
  noResultsPick: () => ({
56
- label: ( localize(873, "No matching commands")),
53
+ label: ( localize(885, "No matching commands")),
57
54
  commandId: ''
58
55
  }),
59
56
  }, instantiationService, keybindingService, commandService, telemetryService, dialogService);
@@ -102,7 +99,7 @@ let CommandsQuickAccessProvider = class CommandsQuickAccessProvider extends Abst
102
99
  ...picks,
103
100
  buttons: [{
104
101
  iconClass: ThemeIcon.asClassName(Codicon.gear),
105
- tooltip: ( localize(874, "Configure Keybinding")),
102
+ tooltip: ( localize(886, "Configure Keybinding")),
106
103
  }],
107
104
  trigger: () => {
108
105
  this.preferencesService.openGlobalKeybindingSettings(false, { query: createKeybindingCommandQuery(picks.commandId, picks.commandWhen) });
@@ -140,7 +137,7 @@ let CommandsQuickAccessProvider = class CommandsQuickAccessProvider extends Abst
140
137
  const defaultAgent = this.chatAgentService.getDefaultAgent(ChatAgentLocation.Panel);
141
138
  if (defaultAgent) {
142
139
  additionalPicks.push({
143
- label: ( localize(875, "Ask {0}: {1}", defaultAgent.fullName, filter)),
140
+ label: ( localize(887, "Ask {0}: {1}", defaultAgent.fullName, filter)),
144
141
  commandId: this.configuration.experimental.askChatLocation === 'quickChat' ? ASK_QUICK_QUESTION_ACTION_ID : CHAT_OPEN_ACTION_ID,
145
142
  args: [filter]
146
143
  });
@@ -153,7 +150,7 @@ let CommandsQuickAccessProvider = class CommandsQuickAccessProvider extends Abst
153
150
  const setOfPicksSoFar = ( (new Set( (picksSoFar.map(p => p.commandId)))));
154
151
  const additionalPicks = ( (new Array()));
155
152
  for (const info of relatedInformation) {
156
- if (info.weight < CommandsQuickAccessProvider_1.AI_RELATED_INFORMATION_THRESHOLD || additionalPicks.length === CommandsQuickAccessProvider_1.AI_RELATED_INFORMATION_MAX_PICKS) {
153
+ if (additionalPicks.length === CommandsQuickAccessProvider_1.AI_RELATED_INFORMATION_MAX_PICKS) {
157
154
  break;
158
155
  }
159
156
  const pick = allPicks.find(p => p.commandId === info.command && !( (setOfPicksSoFar.has(p.commandId))));
@@ -174,7 +171,7 @@ let CommandsQuickAccessProvider = class CommandsQuickAccessProvider extends Abst
174
171
  let label = (typeof action.item.title === 'string' ? action.item.title : action.item.title.value) || action.item.id;
175
172
  const category = typeof action.item.category === 'string' ? action.item.category : action.item.category?.value;
176
173
  if (category) {
177
- label = ( localize(876, "{0}: {1}", category, label));
174
+ label = ( localize(888, "{0}: {1}", category, label));
178
175
  }
179
176
  const aliasLabel = typeof action.item.title !== 'string' ? action.item.title.original : undefined;
180
177
  const aliasCategory = (category && action.item.category && typeof action.item.category !== 'string') ? action.item.category.original : undefined;
@@ -217,12 +214,12 @@ class ShowAllCommandsAction extends Action2 {
217
214
  constructor() {
218
215
  super({
219
216
  id: ShowAllCommandsAction.ID,
220
- title: ( localize2(877, 'Show All Commands')),
217
+ title: ( localize2(889, 'Show All Commands')),
221
218
  keybinding: {
222
- weight: KeybindingWeight.WorkbenchContrib,
219
+ weight: 200 ,
223
220
  when: undefined,
224
- primary: !isFirefox ? (KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyP) : undefined,
225
- secondary: [KeyCode.F1]
221
+ primary: !isFirefox ? ((2048 | 1024 | 46) ) : undefined,
222
+ secondary: [59 ]
226
223
  },
227
224
  f1: true
228
225
  });
@@ -235,7 +232,7 @@ class ClearCommandHistoryAction extends Action2 {
235
232
  constructor() {
236
233
  super({
237
234
  id: 'workbench.action.clearCommandHistory',
238
- title: ( localize2(878, 'Clear Command History')),
235
+ title: ( localize2(890, 'Clear Command History')),
239
236
  f1: true
240
237
  });
241
238
  }
@@ -247,9 +244,9 @@ class ClearCommandHistoryAction extends Action2 {
247
244
  if (commandHistoryLength > 0) {
248
245
  const { confirmed } = await dialogService.confirm({
249
246
  type: 'warning',
250
- message: ( localize(879, "Do you want to clear the history of recently used commands?")),
251
- detail: ( localize(880, "This action is irreversible!")),
252
- primaryButton: ( localize(881, "&&Clear"))
247
+ message: ( localize(891, "Do you want to clear the history of recently used commands?")),
248
+ detail: ( localize(892, "This action is irreversible!")),
249
+ primaryButton: ( localize(893, "&&Clear"))
253
250
  });
254
251
  if (!confirmed) {
255
252
  return;
@@ -5,10 +5,9 @@ import { HelpQuickAccessProvider } from '../../../../platform/quickinput/browser
5
5
  import { ViewQuickAccessProvider, OpenViewPickerAction, QuickAccessViewPickerAction } from './viewQuickAccess.js';
6
6
  import { CommandsQuickAccessProvider, ShowAllCommandsAction, ClearCommandHistoryAction } from './commandsQuickAccess.js';
7
7
  import { MenuRegistry, MenuId, registerAction2 } from 'vscode/vscode/vs/platform/actions/common/actions';
8
- import { KeyMod } from 'vscode/vscode/vs/base/common/keyCodes';
9
8
  import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
10
9
  import { inQuickPickContext, getQuickNavigateHandler } from 'vscode/vscode/vs/workbench/browser/quickaccess';
11
- import { KeybindingsRegistry, KeybindingWeight } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
10
+ import { KeybindingsRegistry } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
12
11
  import { EditorContextKeys } from 'vscode/vscode/vs/editor/common/editorContextKeys';
13
12
 
14
13
  const quickAccessRegistry = ( (Registry.as(Extensions.Quickaccess)));
@@ -16,35 +15,35 @@ quickAccessRegistry.registerQuickAccessProvider({
16
15
  ctor: HelpQuickAccessProvider,
17
16
  prefix: HelpQuickAccessProvider.PREFIX,
18
17
  placeholder: ( localize(
19
- 897,
18
+ 909,
20
19
  "Type '{0}' to get help on the actions you can take from here.",
21
20
  HelpQuickAccessProvider.PREFIX
22
21
  )),
23
22
  helpEntries: [{
24
- description: ( localize(898, "Show all Quick Access Providers")),
23
+ description: ( localize(910, "Show all Quick Access Providers")),
25
24
  commandCenterOrder: 70,
26
- commandCenterLabel: ( localize(899, 'More'))
25
+ commandCenterLabel: ( localize(911, 'More'))
27
26
  }]
28
27
  });
29
28
  quickAccessRegistry.registerQuickAccessProvider({
30
29
  ctor: ViewQuickAccessProvider,
31
30
  prefix: ViewQuickAccessProvider.PREFIX,
32
31
  contextKey: 'inViewsPicker',
33
- placeholder: ( localize(900, "Type the name of a view, output channel or terminal to open.")),
34
- helpEntries: [{ description: ( localize(901, "Open View")), commandId: OpenViewPickerAction.ID }]
32
+ placeholder: ( localize(912, "Type the name of a view, output channel or terminal to open.")),
33
+ helpEntries: [{ description: ( localize(913, "Open View")), commandId: OpenViewPickerAction.ID }]
35
34
  });
36
35
  quickAccessRegistry.registerQuickAccessProvider({
37
36
  ctor: CommandsQuickAccessProvider,
38
37
  prefix: CommandsQuickAccessProvider.PREFIX,
39
38
  contextKey: 'inCommandsPicker',
40
- placeholder: ( localize(902, "Type the name of a command to run.")),
41
- helpEntries: [{ description: ( localize(903, "Show and Run Commands")), commandId: ShowAllCommandsAction.ID, commandCenterOrder: 20 }]
39
+ placeholder: ( localize(914, "Type the name of a command to run.")),
40
+ helpEntries: [{ description: ( localize(915, "Show and Run Commands")), commandId: ShowAllCommandsAction.ID, commandCenterOrder: 20 }]
42
41
  });
43
42
  MenuRegistry.appendMenuItem(MenuId.MenubarViewMenu, {
44
43
  group: '1_open',
45
44
  command: {
46
45
  id: ShowAllCommandsAction.ID,
47
- title: ( localize(904, "&&Command Palette..."))
46
+ title: ( localize(916, "&&Command Palette..."))
48
47
  },
49
48
  order: 1
50
49
  });
@@ -52,7 +51,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarHelpMenu, {
52
51
  group: '1_welcome',
53
52
  command: {
54
53
  id: ShowAllCommandsAction.ID,
55
- title: ( localize(905, "Show All Commands"))
54
+ title: ( localize(917, "Show All Commands"))
56
55
  },
57
56
  order: 2
58
57
  });
@@ -60,7 +59,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarViewMenu, {
60
59
  group: '1_open',
61
60
  command: {
62
61
  id: OpenViewPickerAction.ID,
63
- title: ( localize(906, "&&Open View..."))
62
+ title: ( localize(918, "&&Open View..."))
64
63
  },
65
64
  order: 2
66
65
  });
@@ -68,7 +67,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
68
67
  group: '5_infile_nav',
69
68
  command: {
70
69
  id: 'workbench.action.gotoLine',
71
- title: ( localize(907, "Go to &&Line/Column..."))
70
+ title: ( localize(919, "Go to &&Line/Column..."))
72
71
  },
73
72
  order: 1
74
73
  });
@@ -76,7 +75,7 @@ MenuRegistry.appendMenuItem(MenuId.GlobalActivity, {
76
75
  group: '1_command',
77
76
  command: {
78
77
  id: ShowAllCommandsAction.ID,
79
- title: ( localize(908, "Command Palette..."))
78
+ title: ( localize(920, "Command Palette..."))
80
79
  },
81
80
  order: 1
82
81
  });
@@ -85,7 +84,7 @@ MenuRegistry.appendMenuItem(MenuId.EditorContext, {
85
84
  when: ( (EditorContextKeys.editorSimpleInput.toNegated())),
86
85
  command: {
87
86
  id: ShowAllCommandsAction.ID,
88
- title: ( localize(908, "Command Palette...")),
87
+ title: ( localize(920, "Command Palette...")),
89
88
  },
90
89
  order: 1
91
90
  });
@@ -102,7 +101,7 @@ const viewPickerKeybinding = QuickAccessViewPickerAction.KEYBINDING;
102
101
  const quickAccessNavigateNextInViewPickerId = 'workbench.action.quickOpenNavigateNextInViewPicker';
103
102
  KeybindingsRegistry.registerCommandAndKeybindingRule({
104
103
  id: quickAccessNavigateNextInViewPickerId,
105
- weight: KeybindingWeight.WorkbenchContrib + 50,
104
+ weight: 200 + 50,
106
105
  handler: getQuickNavigateHandler(quickAccessNavigateNextInViewPickerId, true),
107
106
  when: inViewsPickerContext,
108
107
  primary: viewPickerKeybinding.primary,
@@ -112,12 +111,12 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
112
111
  const quickAccessNavigatePreviousInViewPickerId = 'workbench.action.quickOpenNavigatePreviousInViewPicker';
113
112
  KeybindingsRegistry.registerCommandAndKeybindingRule({
114
113
  id: quickAccessNavigatePreviousInViewPickerId,
115
- weight: KeybindingWeight.WorkbenchContrib + 50,
114
+ weight: 200 + 50,
116
115
  handler: getQuickNavigateHandler(quickAccessNavigatePreviousInViewPickerId, false),
117
116
  when: inViewsPickerContext,
118
- primary: viewPickerKeybinding.primary | KeyMod.Shift,
117
+ primary: viewPickerKeybinding.primary | 1024 ,
119
118
  linux: viewPickerKeybinding.linux,
120
119
  mac: {
121
- primary: viewPickerKeybinding.mac.primary | KeyMod.Shift
120
+ primary: viewPickerKeybinding.mac.primary | 1024
122
121
  }
123
122
  });
@@ -3,7 +3,6 @@ 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';
6
- import { ViewContainerLocation } from 'vscode/vscode/vs/workbench/common/views';
7
6
  import { IViewDescriptorService } from 'vscode/vscode/vs/workbench/common/views.service';
8
7
  import { IViewsService } from 'vscode/vscode/vs/workbench/services/views/common/viewsService.service';
9
8
  import { IOutputService } from 'vscode/vscode/vs/workbench/services/output/common/output.service';
@@ -13,8 +12,6 @@ import { matchesFuzzy } from 'vscode/vscode/vs/base/common/filters';
13
12
  import { fuzzyContains } from 'vscode/vscode/vs/base/common/strings';
14
13
  import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding.service';
15
14
  import { Action2 } from 'vscode/vscode/vs/platform/actions/common/actions';
16
- import { KeyMod, KeyCode } from 'vscode/vscode/vs/base/common/keyCodes';
17
- import { KeybindingWeight } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
18
15
  import { Categories } from 'vscode/vscode/vs/platform/action/common/actionCommonCategories';
19
16
  import { IPaneCompositePartService } from 'vscode/vscode/vs/workbench/services/panecomposite/browser/panecomposite.service';
20
17
  import { REPL_VIEW_ID } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
@@ -27,7 +24,7 @@ let ViewQuickAccessProvider = class ViewQuickAccessProvider extends PickerQuickA
27
24
  constructor(viewDescriptorService, viewsService, outputService, terminalService, terminalGroupService, debugService, paneCompositeService, contextKeyService) {
28
25
  super(ViewQuickAccessProvider_1.PREFIX, {
29
26
  noResultsPick: {
30
- label: ( localize(4781, "No matching views")),
27
+ label: ( localize(4812, "No matching views")),
31
28
  containerLabel: ''
32
29
  }
33
30
  });
@@ -115,9 +112,9 @@ let ViewQuickAccessProvider = class ViewQuickAccessProvider extends PickerQuickA
115
112
  }
116
113
  }
117
114
  };
118
- addPaneComposites(ViewContainerLocation.Sidebar, ( localize(4782, "Side Bar")));
119
- addPaneComposites(ViewContainerLocation.Panel, ( localize(4783, "Panel")));
120
- addPaneComposites(ViewContainerLocation.AuxiliaryBar, ( localize(4784, "Secondary Side Bar")));
115
+ addPaneComposites(0 , ( localize(4813, "Side Bar")));
116
+ addPaneComposites(1 , ( localize(4814, "Panel")));
117
+ addPaneComposites(2 , ( localize(4815, "Secondary Side Bar")));
121
118
  const addPaneCompositeViews = (location) => {
122
119
  const paneComposites = this.paneCompositeService.getPaneComposites(location);
123
120
  for (const paneComposite of paneComposites) {
@@ -127,15 +124,15 @@ let ViewQuickAccessProvider = class ViewQuickAccessProvider extends PickerQuickA
127
124
  }
128
125
  }
129
126
  };
130
- addPaneCompositeViews(ViewContainerLocation.Sidebar);
131
- addPaneCompositeViews(ViewContainerLocation.Panel);
132
- addPaneCompositeViews(ViewContainerLocation.AuxiliaryBar);
127
+ addPaneCompositeViews(0 );
128
+ addPaneCompositeViews(1 );
129
+ addPaneCompositeViews(2 );
133
130
  this.terminalGroupService.groups.forEach((group, groupIndex) => {
134
131
  group.terminalInstances.forEach((terminal, terminalIndex) => {
135
- const label = ( localize(4785, "{0}: {1}", `${groupIndex + 1}.${terminalIndex + 1}`, terminal.title));
132
+ const label = ( localize(4816, "{0}: {1}", `${groupIndex + 1}.${terminalIndex + 1}`, terminal.title));
136
133
  viewEntries.push({
137
134
  label,
138
- containerLabel: ( localize(4786, "Terminal")),
135
+ containerLabel: ( localize(4817, "Terminal")),
139
136
  accept: async () => {
140
137
  await this.terminalGroupService.showPanel(true);
141
138
  this.terminalService.setActiveInstance(terminal);
@@ -147,7 +144,7 @@ let ViewQuickAccessProvider = class ViewQuickAccessProvider extends PickerQuickA
147
144
  const label = session.name;
148
145
  viewEntries.push({
149
146
  label,
150
- containerLabel: ( localize(4787, "Debug Console")),
147
+ containerLabel: ( localize(4818, "Debug Console")),
151
148
  accept: async () => {
152
149
  await this.debugService.focusStackFrame(undefined, undefined, session, { explicit: true });
153
150
  if (!this.viewsService.isViewVisible(REPL_VIEW_ID)) {
@@ -160,7 +157,7 @@ let ViewQuickAccessProvider = class ViewQuickAccessProvider extends PickerQuickA
160
157
  for (const channel of channels) {
161
158
  viewEntries.push({
162
159
  label: channel.label,
163
- containerLabel: ( localize(4788, "Output")),
160
+ containerLabel: ( localize(4819, "Output")),
164
161
  accept: () => this.outputService.showChannel(channel.id)
165
162
  });
166
163
  }
@@ -189,7 +186,7 @@ class OpenViewPickerAction extends Action2 {
189
186
  constructor() {
190
187
  super({
191
188
  id: OpenViewPickerAction.ID,
192
- title: ( localize2(4789, 'Open View')),
189
+ title: ( localize2(4820, 'Open View')),
193
190
  category: Categories.View,
194
191
  f1: true
195
192
  });
@@ -201,18 +198,18 @@ class OpenViewPickerAction extends Action2 {
201
198
  class QuickAccessViewPickerAction extends Action2 {
202
199
  static { this.ID = 'workbench.action.quickOpenView'; }
203
200
  static { this.KEYBINDING = {
204
- primary: KeyMod.CtrlCmd | KeyCode.KeyQ,
205
- mac: { primary: KeyMod.WinCtrl | KeyCode.KeyQ },
201
+ primary: 2048 | 47 ,
202
+ mac: { primary: 256 | 47 },
206
203
  linux: { primary: 0 }
207
204
  }; }
208
205
  constructor() {
209
206
  super({
210
207
  id: QuickAccessViewPickerAction.ID,
211
- title: ( localize2(4790, 'Quick Open View')),
208
+ title: ( localize2(4821, 'Quick Open View')),
212
209
  category: Categories.View,
213
210
  f1: false,
214
211
  keybinding: {
215
- weight: KeybindingWeight.WorkbenchContrib,
212
+ weight: 200 ,
216
213
  when: undefined,
217
214
  ...QuickAccessViewPickerAction.KEYBINDING
218
215
  }
@@ -1,9 +1,8 @@
1
1
  import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
2
2
  import { Event } from 'vscode/vscode/vs/base/common/event';
3
3
  import { parse } from 'vscode/vscode/vs/base/common/json';
4
- import { FileType, FileSystemProviderCapabilities } from 'vscode/vscode/vs/platform/files/common/files';
4
+ import { FileType } from 'vscode/vscode/vs/platform/files/common/files';
5
5
  import { IFileService } from 'vscode/vscode/vs/platform/files/common/files.service';
6
- import { StorageScope, StorageTarget } from 'vscode/vscode/vs/platform/storage/common/storage';
7
6
  import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
8
7
  import { VSBuffer } from 'vscode/vscode/vs/base/common/buffer';
9
8
  import { TRUSTED_DOMAINS_CONTENT_STORAGE_KEY, readTrustedDomains, TRUSTED_DOMAINS_STORAGE_KEY } from 'vscode/vscode/vs/workbench/contrib/url/browser/trustedDomains';
@@ -66,7 +65,7 @@ let TrustedDomainsFileSystemProvider = class TrustedDomainsFileSystemProvider {
66
65
  this.fileService = fileService;
67
66
  this.storageService = storageService;
68
67
  this.instantiationService = instantiationService;
69
- this.capabilities = FileSystemProviderCapabilities.FileReadWrite;
68
+ this.capabilities = 2 ;
70
69
  this.onDidChangeCapabilities = Event.None;
71
70
  this.onDidChangeFile = Event.None;
72
71
  this.fileService.registerProvider(TRUSTED_DOMAINS_SCHEMA, this);
@@ -75,7 +74,7 @@ let TrustedDomainsFileSystemProvider = class TrustedDomainsFileSystemProvider {
75
74
  return Promise.resolve(TRUSTED_DOMAINS_STAT);
76
75
  }
77
76
  async readFile(resource) {
78
- let trustedDomainsContent = this.storageService.get(TRUSTED_DOMAINS_CONTENT_STORAGE_KEY, StorageScope.APPLICATION);
77
+ let trustedDomainsContent = this.storageService.get(TRUSTED_DOMAINS_CONTENT_STORAGE_KEY, -1 );
79
78
  const configuring = resource.fragment;
80
79
  const { defaultTrustedDomains, trustedDomains } = await this.instantiationService.invokeFunction(readTrustedDomains);
81
80
  if (!trustedDomainsContent ||
@@ -92,8 +91,8 @@ let TrustedDomainsFileSystemProvider = class TrustedDomainsFileSystemProvider {
92
91
  try {
93
92
  const trustedDomainsContent = ( VSBuffer.wrap(content).toString());
94
93
  const trustedDomains = parse(trustedDomainsContent);
95
- this.storageService.store(TRUSTED_DOMAINS_CONTENT_STORAGE_KEY, trustedDomainsContent, StorageScope.APPLICATION, StorageTarget.USER);
96
- this.storageService.store(TRUSTED_DOMAINS_STORAGE_KEY, JSON.stringify(trustedDomains) || '', StorageScope.APPLICATION, StorageTarget.USER);
94
+ this.storageService.store(TRUSTED_DOMAINS_CONTENT_STORAGE_KEY, trustedDomainsContent, -1 , 0 );
95
+ this.storageService.store(TRUSTED_DOMAINS_STORAGE_KEY, JSON.stringify(trustedDomains) || '', -1 , 0 );
97
96
  }
98
97
  catch (err) { }
99
98
  return Promise.resolve();
@@ -67,25 +67,25 @@ let OpenerValidatorContributions = class OpenerValidatorContributions {
67
67
  const { result } = await this._dialogService.prompt({
68
68
  type: Severity$1.Info,
69
69
  message: ( localize(
70
- 4791,
70
+ 4822,
71
71
  'Do you want {0} to open the external website?',
72
72
  this._productService.nameShort
73
73
  )),
74
74
  detail: typeof originalResource === 'string' ? originalResource : formattedLink,
75
75
  buttons: [
76
76
  {
77
- label: ( localize(4792, '&&Open')),
77
+ label: ( localize(4823, '&&Open')),
78
78
  run: () => true
79
79
  },
80
80
  {
81
- label: ( localize(4793, '&&Copy')),
81
+ label: ( localize(4824, '&&Copy')),
82
82
  run: () => {
83
83
  this._clipboardService.writeText(typeof originalResource === 'string' ? originalResource : ( (resourceUri.toString(true))));
84
84
  return false;
85
85
  }
86
86
  },
87
87
  {
88
- label: ( localize(4794, 'Configure &&Trusted Domains')),
88
+ label: ( localize(4825, 'Configure &&Trusted Domains')),
89
89
  run: async () => {
90
90
  const { trustedDomains, } = this._instantiationService.invokeFunction(readStaticTrustedDomains);
91
91
  const domainToOpen = `${scheme}://${authority}`;
@@ -2,27 +2,25 @@ import { URI } from 'vscode/vscode/vs/base/common/uri';
2
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
- import { LifecyclePhase } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
6
5
  import { IQuickInputService } from 'vscode/vscode/vs/platform/quickinput/common/quickInput.service';
7
6
  import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
8
7
  import { IURLService } from 'vscode/vscode/vs/platform/url/common/url.service';
9
- import { Extensions, registerWorkbenchContribution2, WorkbenchPhase } from 'vscode/vscode/vs/workbench/common/contributions';
8
+ import { Extensions, registerWorkbenchContribution2 } from 'vscode/vscode/vs/workbench/common/contributions';
10
9
  import { ExternalUriResolverContribution } from './externalUriResolver.js';
11
10
  import { manageTrustedDomainSettingsCommand } from 'vscode/vscode/vs/workbench/contrib/url/browser/trustedDomains';
12
11
  import { TrustedDomainsFileSystemProvider } from './trustedDomainsFileSystemProvider.js';
13
12
  import { OpenerValidatorContributions } from './trustedDomainsValidator.js';
14
13
  import { Categories } from 'vscode/vscode/vs/platform/action/common/actionCommonCategories';
15
- import { Extensions as Extensions$1, ConfigurationScope } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
14
+ import { Extensions as Extensions$1 } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
16
15
  import { workbenchConfigurationNodeBase } from 'vscode/vscode/vs/workbench/common/configuration';
17
16
  import 'vscode/vscode/vs/workbench/contrib/url/browser/trustedDomainService';
18
17
  import 'vscode/vscode/vs/platform/instantiation/common/instantiation';
19
- import 'vscode/vscode/vs/platform/instantiation/common/extensions';
20
18
 
21
19
  class OpenUrlAction extends Action2 {
22
20
  constructor() {
23
21
  super({
24
22
  id: 'workbench.action.url.openUrl',
25
- title: ( localize2(909, 'Open URL')),
23
+ title: ( localize2(921, 'Open URL')),
26
24
  category: Categories.Developer,
27
25
  f1: true
28
26
  });
@@ -30,7 +28,7 @@ class OpenUrlAction extends Action2 {
30
28
  async run(accessor) {
31
29
  const quickInputService = accessor.get(IQuickInputService);
32
30
  const urlService = accessor.get(IURLService);
33
- return quickInputService.input({ prompt: ( localize(910, "URL to open")) }).then(input => {
31
+ return quickInputService.input({ prompt: ( localize(922, "URL to open")) }).then(input => {
34
32
  if (input) {
35
33
  const uri = ( (URI.parse(input)));
36
34
  urlService.open(uri, { originalUrl: input });
@@ -46,21 +44,19 @@ MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
46
44
  title: manageTrustedDomainSettingsCommand.description.description
47
45
  }
48
46
  });
49
- ( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(OpenerValidatorContributions, LifecyclePhase.Restored);
50
- registerWorkbenchContribution2(TrustedDomainsFileSystemProvider.ID, TrustedDomainsFileSystemProvider, WorkbenchPhase.BlockRestore
51
- );
52
- registerWorkbenchContribution2(ExternalUriResolverContribution.ID, ExternalUriResolverContribution, WorkbenchPhase.BlockRestore
53
- );
47
+ ( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(OpenerValidatorContributions, 3 );
48
+ registerWorkbenchContribution2(TrustedDomainsFileSystemProvider.ID, TrustedDomainsFileSystemProvider, 2 );
49
+ registerWorkbenchContribution2(ExternalUriResolverContribution.ID, ExternalUriResolverContribution, 2 );
54
50
  const configurationRegistry = ( (Registry.as(Extensions$1.Configuration)));
55
51
  configurationRegistry.registerConfiguration({
56
52
  ...workbenchConfigurationNodeBase,
57
53
  properties: {
58
54
  'workbench.trustedDomains.promptInTrustedWorkspace': {
59
- scope: ConfigurationScope.APPLICATION,
55
+ scope: 1 ,
60
56
  type: 'boolean',
61
57
  default: false,
62
58
  description: ( localize(
63
- 911,
59
+ 923,
64
60
  "When enabled, trusted domain prompts will appear when opening links in trusted workspaces."
65
61
  ))
66
62
  }
@@ -6,7 +6,6 @@ import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/c
6
6
  import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
7
7
  import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding.service';
8
8
  import { QuickInputService as QuickInputService$1 } from 'vscode/vscode/vs/platform/quickinput/browser/quickInputService';
9
- import 'vscode/vscode/vs/platform/instantiation/common/extensions';
10
9
  import { InQuickPickContextKey } from 'vscode/vscode/vs/workbench/browser/quickaccess';
11
10
 
12
11
  let QuickInputService = class QuickInputService extends QuickInputService$1 {