@codingame/monaco-vscode-quickaccess-service-override 4.5.0 → 4.5.2

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.
@@ -14,11 +14,12 @@ import { Categories } from 'vscode/vscode/vs/platform/action/common/actionCommon
14
14
  import { Extensions as Extensions$1 } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
15
15
  import { workbenchConfigurationNodeBase } from 'vscode/vscode/vs/workbench/common/configuration';
16
16
 
17
+ const _moduleId = "vs/workbench/contrib/url/browser/url.contribution";
17
18
  class OpenUrlAction extends Action2 {
18
19
  constructor() {
19
20
  super({
20
21
  id: 'workbench.action.url.openUrl',
21
- title: ( localize2WithPath('vs/workbench/contrib/url/browser/url.contribution', 'openUrl', 'Open URL')),
22
+ title: ( localize2WithPath(_moduleId, 0, 'Open URL')),
22
23
  category: Categories.Developer,
23
24
  f1: true
24
25
  });
@@ -26,13 +27,9 @@ class OpenUrlAction extends Action2 {
26
27
  async run(accessor) {
27
28
  const quickInputService = accessor.get(IQuickInputService);
28
29
  const urlService = accessor.get(IURLService);
29
- return quickInputService.input({ prompt: ( localizeWithPath(
30
- 'vs/workbench/contrib/url/browser/url.contribution',
31
- 'urlToOpen',
32
- "URL to open"
33
- )) }).then(input => {
30
+ return quickInputService.input({ prompt: ( localizeWithPath(_moduleId, 1, "URL to open")) }).then(input => {
34
31
  if (input) {
35
- const uri = ( URI.parse(input));
32
+ const uri = ( (URI.parse(input)));
36
33
  urlService.open(uri, { originalUrl: input });
37
34
  }
38
35
  });
@@ -46,10 +43,10 @@ MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
46
43
  title: manageTrustedDomainSettingsCommand.description.description
47
44
  }
48
45
  });
49
- ( Registry.as(Extensions.Workbench)).registerWorkbenchContribution(OpenerValidatorContributions, 3 );
46
+ ( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(OpenerValidatorContributions, 3 );
50
47
  registerWorkbenchContribution2(TrustedDomainsFileSystemProvider.ID, TrustedDomainsFileSystemProvider, 2 );
51
48
  registerWorkbenchContribution2(ExternalUriResolverContribution.ID, ExternalUriResolverContribution, 2 );
52
- const configurationRegistry = ( Registry.as(Extensions$1.Configuration));
49
+ const configurationRegistry = ( (Registry.as(Extensions$1.Configuration)));
53
50
  configurationRegistry.registerConfiguration({
54
51
  ...workbenchConfigurationNodeBase,
55
52
  properties: {
@@ -58,8 +55,8 @@ configurationRegistry.registerConfiguration({
58
55
  type: 'boolean',
59
56
  default: false,
60
57
  description: ( localizeWithPath(
61
- 'vs/workbench/contrib/url/browser/url.contribution',
62
- 'workbench.trustedDomains.promptInTrustedWorkspace',
58
+ _moduleId,
59
+ 2,
63
60
  "When enabled, trusted domain prompts will appear when opening links in trusted workspaces."
64
61
  ))
65
62
  }
package/quickaccess.d.ts DELETED
@@ -1,10 +0,0 @@
1
- import { IEditorOverrideServices } from 'vscode/vscode/vs/editor/standalone/browser/standaloneServices';
2
- import { ICodeEditor } from 'vscode/vscode/vs/editor/browser/editorBrowser';
3
-
4
- interface QuickAccessProps {
5
- isKeybindingConfigurationVisible?: () => boolean;
6
- shouldUseGlobalPicker?: (activeCodeEditor: ICodeEditor | null, activeCodeEditorStandalone: boolean) => boolean;
7
- }
8
- declare function getServiceOverride({ isKeybindingConfigurationVisible: _isKeybindingConfigurationVisible, shouldUseGlobalPicker: _shouldUseGlobalPicker }?: QuickAccessProps): IEditorOverrideServices;
9
-
10
- export { getServiceOverride as default };