@codingame/monaco-vscode-quickaccess-service-override 25.0.1 → 25.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": "25.
|
|
3
|
+
"version": "25.1.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - quickaccess service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "25.
|
|
18
|
+
"@codingame/monaco-vscode-api": "25.1.1"
|
|
19
19
|
},
|
|
20
20
|
"main": "index.js",
|
|
21
21
|
"module": "index.js",
|
|
@@ -68,25 +68,25 @@ let OpenerValidatorContributions = class OpenerValidatorContributions {
|
|
|
68
68
|
const { result } = await this._dialogService.prompt({
|
|
69
69
|
type: Severity.Info,
|
|
70
70
|
message: ( localize(
|
|
71
|
-
|
|
71
|
+
12918,
|
|
72
72
|
'Do you want {0} to open the external website?',
|
|
73
73
|
this._productService.nameShort
|
|
74
74
|
)),
|
|
75
75
|
detail: typeof originalResource === 'string' ? originalResource : formattedLink,
|
|
76
76
|
buttons: [
|
|
77
77
|
{
|
|
78
|
-
label: ( localize(
|
|
78
|
+
label: ( localize(12919, '&&Open')),
|
|
79
79
|
run: () => true
|
|
80
80
|
},
|
|
81
81
|
{
|
|
82
|
-
label: ( localize(
|
|
82
|
+
label: ( localize(12920, '&&Copy')),
|
|
83
83
|
run: () => {
|
|
84
84
|
this._clipboardService.writeText(typeof originalResource === 'string' ? originalResource : ( resourceUri.toString(true)));
|
|
85
85
|
return false;
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
|
-
label: ( localize(
|
|
89
|
+
label: ( localize(12921, 'Configure &&Trusted Domains')),
|
|
90
90
|
run: async () => {
|
|
91
91
|
const { trustedDomains, } = this._instantiationService.invokeFunction(readStaticTrustedDomains);
|
|
92
92
|
const domainToOpen = `${scheme}://${authority}`;
|
|
@@ -26,7 +26,7 @@ class OpenUrlAction extends Action2 {
|
|
|
26
26
|
constructor() {
|
|
27
27
|
super({
|
|
28
28
|
id: 'workbench.action.url.openUrl',
|
|
29
|
-
title: ( localize2(
|
|
29
|
+
title: ( localize2(12922, 'Open URL')),
|
|
30
30
|
category: Categories.Developer,
|
|
31
31
|
f1: true
|
|
32
32
|
});
|
|
@@ -36,7 +36,7 @@ class OpenUrlAction extends Action2 {
|
|
|
36
36
|
const urlService = accessor.get(IURLService);
|
|
37
37
|
const storageService = accessor.get(IStorageService);
|
|
38
38
|
const value = storageService.get(OpenUrlAction.STORAGE_KEY, StorageScope.WORKSPACE, '');
|
|
39
|
-
return quickInputService.input({ prompt: ( localize(
|
|
39
|
+
return quickInputService.input({ prompt: ( localize(12923, "URL to open")), value }).then(input => {
|
|
40
40
|
if (input) {
|
|
41
41
|
const uri = ( URI.parse(input));
|
|
42
42
|
urlService.open(uri, { originalUrl: input });
|
|
@@ -67,7 +67,7 @@ configurationRegistry.registerConfiguration({
|
|
|
67
67
|
type: 'boolean',
|
|
68
68
|
default: false,
|
|
69
69
|
description: ( localize(
|
|
70
|
-
|
|
70
|
+
12924,
|
|
71
71
|
"When enabled, trusted domain prompts will appear when opening links in trusted workspaces."
|
|
72
72
|
))
|
|
73
73
|
}
|