@codingame/monaco-vscode-quickaccess-service-override 4.5.1 → 5.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 +2 -2
- package/vscode/src/vs/editor/contrib/quickAccess/browser/commandsQuickAccess.js +11 -0
- package/vscode/src/vs/platform/quickinput/browser/commandsQuickAccess.js +29 -59
- package/vscode/src/vs/platform/quickinput/browser/helpQuickAccess.js +19 -22
- package/vscode/src/vs/workbench/browser/actions/quickAccessActions.js +7 -30
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoLineQuickAccess.js +11 -18
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/commandsQuickAccess.js +48 -79
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/quickAccess.contribution.js +22 -62
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/viewQuickAccess.js +25 -60
- package/vscode/src/vs/workbench/contrib/url/browser/trustedDomains.js +16 -42
- package/vscode/src/vs/workbench/contrib/url/browser/trustedDomainsValidator.js +43 -48
- package/vscode/src/vs/workbench/contrib/url/browser/url.contribution.js +8 -11
|
@@ -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(
|
|
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
|
-
|
|
62
|
-
|
|
58
|
+
_moduleId,
|
|
59
|
+
2,
|
|
63
60
|
"When enabled, trusted domain prompts will appear when opening links in trusted workspaces."
|
|
64
61
|
))
|
|
65
62
|
}
|