@codingame/monaco-vscode-quickaccess-service-override 10.0.0 → 10.0.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 +2 -2
- package/vscode/src/vs/platform/quickinput/browser/helpQuickAccess.js +1 -1
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/quickAccess.contribution.js +13 -13
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/viewQuickAccess.js +10 -10
- package/vscode/src/vs/workbench/contrib/url/browser/trustedDomainsValidator.js +4 -4
- package/vscode/src/vs/workbench/contrib/url/browser/url.contribution.js +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-quickaccess-service-override",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.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@10.0.
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@10.0.1"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -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(
|
|
51
|
+
ariaLabel: ( localize(4815, "{0}, {1}", label, helpEntry.description)),
|
|
52
52
|
description: helpEntry.description
|
|
53
53
|
};
|
|
54
54
|
}))
|
|
@@ -15,35 +15,35 @@ quickAccessRegistry.registerQuickAccessProvider({
|
|
|
15
15
|
ctor: HelpQuickAccessProvider,
|
|
16
16
|
prefix: HelpQuickAccessProvider.PREFIX,
|
|
17
17
|
placeholder: ( localize(
|
|
18
|
-
|
|
18
|
+
912,
|
|
19
19
|
"Type '{0}' to get help on the actions you can take from here.",
|
|
20
20
|
HelpQuickAccessProvider.PREFIX
|
|
21
21
|
)),
|
|
22
22
|
helpEntries: [{
|
|
23
|
-
description: ( localize(
|
|
23
|
+
description: ( localize(913, "Show all Quick Access Providers")),
|
|
24
24
|
commandCenterOrder: 70,
|
|
25
|
-
commandCenterLabel: ( localize(
|
|
25
|
+
commandCenterLabel: ( localize(914, 'More'))
|
|
26
26
|
}]
|
|
27
27
|
});
|
|
28
28
|
quickAccessRegistry.registerQuickAccessProvider({
|
|
29
29
|
ctor: ViewQuickAccessProvider,
|
|
30
30
|
prefix: ViewQuickAccessProvider.PREFIX,
|
|
31
31
|
contextKey: 'inViewsPicker',
|
|
32
|
-
placeholder: ( localize(
|
|
33
|
-
helpEntries: [{ description: ( localize(
|
|
32
|
+
placeholder: ( localize(915, "Type the name of a view, output channel or terminal to open.")),
|
|
33
|
+
helpEntries: [{ description: ( localize(916, "Open View")), commandId: OpenViewPickerAction.ID }]
|
|
34
34
|
});
|
|
35
35
|
quickAccessRegistry.registerQuickAccessProvider({
|
|
36
36
|
ctor: CommandsQuickAccessProvider,
|
|
37
37
|
prefix: CommandsQuickAccessProvider.PREFIX,
|
|
38
38
|
contextKey: 'inCommandsPicker',
|
|
39
|
-
placeholder: ( localize(
|
|
40
|
-
helpEntries: [{ description: ( localize(
|
|
39
|
+
placeholder: ( localize(917, "Type the name of a command to run.")),
|
|
40
|
+
helpEntries: [{ description: ( localize(918, "Show and Run Commands")), commandId: ShowAllCommandsAction.ID, commandCenterOrder: 20 }]
|
|
41
41
|
});
|
|
42
42
|
MenuRegistry.appendMenuItem(MenuId.MenubarViewMenu, {
|
|
43
43
|
group: '1_open',
|
|
44
44
|
command: {
|
|
45
45
|
id: ShowAllCommandsAction.ID,
|
|
46
|
-
title: ( localize(
|
|
46
|
+
title: ( localize(919, "&&Command Palette..."))
|
|
47
47
|
},
|
|
48
48
|
order: 1
|
|
49
49
|
});
|
|
@@ -51,7 +51,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarHelpMenu, {
|
|
|
51
51
|
group: '1_welcome',
|
|
52
52
|
command: {
|
|
53
53
|
id: ShowAllCommandsAction.ID,
|
|
54
|
-
title: ( localize(
|
|
54
|
+
title: ( localize(920, "Show All Commands"))
|
|
55
55
|
},
|
|
56
56
|
order: 2
|
|
57
57
|
});
|
|
@@ -59,7 +59,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarViewMenu, {
|
|
|
59
59
|
group: '1_open',
|
|
60
60
|
command: {
|
|
61
61
|
id: OpenViewPickerAction.ID,
|
|
62
|
-
title: ( localize(
|
|
62
|
+
title: ( localize(921, "&&Open View..."))
|
|
63
63
|
},
|
|
64
64
|
order: 2
|
|
65
65
|
});
|
|
@@ -67,7 +67,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
|
|
67
67
|
group: '5_infile_nav',
|
|
68
68
|
command: {
|
|
69
69
|
id: 'workbench.action.gotoLine',
|
|
70
|
-
title: ( localize(
|
|
70
|
+
title: ( localize(922, "Go to &&Line/Column..."))
|
|
71
71
|
},
|
|
72
72
|
order: 1
|
|
73
73
|
});
|
|
@@ -75,7 +75,7 @@ MenuRegistry.appendMenuItem(MenuId.GlobalActivity, {
|
|
|
75
75
|
group: '1_command',
|
|
76
76
|
command: {
|
|
77
77
|
id: ShowAllCommandsAction.ID,
|
|
78
|
-
title: ( localize(
|
|
78
|
+
title: ( localize(923, "Command Palette..."))
|
|
79
79
|
},
|
|
80
80
|
order: 1
|
|
81
81
|
});
|
|
@@ -84,7 +84,7 @@ MenuRegistry.appendMenuItem(MenuId.EditorContext, {
|
|
|
84
84
|
when: ( (EditorContextKeys.editorSimpleInput.toNegated())),
|
|
85
85
|
command: {
|
|
86
86
|
id: ShowAllCommandsAction.ID,
|
|
87
|
-
title: ( localize(
|
|
87
|
+
title: ( localize(923, "Command Palette...")),
|
|
88
88
|
},
|
|
89
89
|
order: 1
|
|
90
90
|
});
|
|
@@ -24,7 +24,7 @@ let ViewQuickAccessProvider = class ViewQuickAccessProvider extends PickerQuickA
|
|
|
24
24
|
constructor(viewDescriptorService, viewsService, outputService, terminalService, terminalGroupService, debugService, paneCompositeService, contextKeyService) {
|
|
25
25
|
super(ViewQuickAccessProvider_1.PREFIX, {
|
|
26
26
|
noResultsPick: {
|
|
27
|
-
label: ( localize(
|
|
27
|
+
label: ( localize(4816, "No matching views")),
|
|
28
28
|
containerLabel: ''
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -112,9 +112,9 @@ let ViewQuickAccessProvider = class ViewQuickAccessProvider extends PickerQuickA
|
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
};
|
|
115
|
-
addPaneComposites(0 , ( localize(
|
|
116
|
-
addPaneComposites(1 , ( localize(
|
|
117
|
-
addPaneComposites(2 , ( localize(
|
|
115
|
+
addPaneComposites(0 , ( localize(4817, "Side Bar")));
|
|
116
|
+
addPaneComposites(1 , ( localize(4818, "Panel")));
|
|
117
|
+
addPaneComposites(2 , ( localize(4819, "Secondary Side Bar")));
|
|
118
118
|
const addPaneCompositeViews = (location) => {
|
|
119
119
|
const paneComposites = this.paneCompositeService.getPaneComposites(location);
|
|
120
120
|
for (const paneComposite of paneComposites) {
|
|
@@ -129,10 +129,10 @@ let ViewQuickAccessProvider = class ViewQuickAccessProvider extends PickerQuickA
|
|
|
129
129
|
addPaneCompositeViews(2 );
|
|
130
130
|
this.terminalGroupService.groups.forEach((group, groupIndex) => {
|
|
131
131
|
group.terminalInstances.forEach((terminal, terminalIndex) => {
|
|
132
|
-
const label = ( localize(
|
|
132
|
+
const label = ( localize(4820, "{0}: {1}", `${groupIndex + 1}.${terminalIndex + 1}`, terminal.title));
|
|
133
133
|
viewEntries.push({
|
|
134
134
|
label,
|
|
135
|
-
containerLabel: ( localize(
|
|
135
|
+
containerLabel: ( localize(4821, "Terminal")),
|
|
136
136
|
accept: async () => {
|
|
137
137
|
await this.terminalGroupService.showPanel(true);
|
|
138
138
|
this.terminalService.setActiveInstance(terminal);
|
|
@@ -144,7 +144,7 @@ let ViewQuickAccessProvider = class ViewQuickAccessProvider extends PickerQuickA
|
|
|
144
144
|
const label = session.name;
|
|
145
145
|
viewEntries.push({
|
|
146
146
|
label,
|
|
147
|
-
containerLabel: ( localize(
|
|
147
|
+
containerLabel: ( localize(4822, "Debug Console")),
|
|
148
148
|
accept: async () => {
|
|
149
149
|
await this.debugService.focusStackFrame(undefined, undefined, session, { explicit: true });
|
|
150
150
|
if (!this.viewsService.isViewVisible(REPL_VIEW_ID)) {
|
|
@@ -157,7 +157,7 @@ let ViewQuickAccessProvider = class ViewQuickAccessProvider extends PickerQuickA
|
|
|
157
157
|
for (const channel of channels) {
|
|
158
158
|
viewEntries.push({
|
|
159
159
|
label: channel.label,
|
|
160
|
-
containerLabel: ( localize(
|
|
160
|
+
containerLabel: ( localize(4823, "Output")),
|
|
161
161
|
accept: () => this.outputService.showChannel(channel.id)
|
|
162
162
|
});
|
|
163
163
|
}
|
|
@@ -186,7 +186,7 @@ class OpenViewPickerAction extends Action2 {
|
|
|
186
186
|
constructor() {
|
|
187
187
|
super({
|
|
188
188
|
id: OpenViewPickerAction.ID,
|
|
189
|
-
title: ( localize2(
|
|
189
|
+
title: ( localize2(4824, 'Open View')),
|
|
190
190
|
category: Categories.View,
|
|
191
191
|
f1: true
|
|
192
192
|
});
|
|
@@ -205,7 +205,7 @@ class QuickAccessViewPickerAction extends Action2 {
|
|
|
205
205
|
constructor() {
|
|
206
206
|
super({
|
|
207
207
|
id: QuickAccessViewPickerAction.ID,
|
|
208
|
-
title: ( localize2(
|
|
208
|
+
title: ( localize2(4825, 'Quick Open View')),
|
|
209
209
|
category: Categories.View,
|
|
210
210
|
f1: false,
|
|
211
211
|
keybinding: {
|
|
@@ -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
|
-
|
|
70
|
+
4811,
|
|
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(
|
|
77
|
+
label: ( localize(4812, '&&Open')),
|
|
78
78
|
run: () => true
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
|
-
label: ( localize(
|
|
81
|
+
label: ( localize(4813, '&&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(
|
|
88
|
+
label: ( localize(4814, 'Configure &&Trusted Domains')),
|
|
89
89
|
run: async () => {
|
|
90
90
|
const { trustedDomains, } = this._instantiationService.invokeFunction(readStaticTrustedDomains);
|
|
91
91
|
const domainToOpen = `${scheme}://${authority}`;
|
|
@@ -20,7 +20,7 @@ class OpenUrlAction extends Action2 {
|
|
|
20
20
|
constructor() {
|
|
21
21
|
super({
|
|
22
22
|
id: 'workbench.action.url.openUrl',
|
|
23
|
-
title: ( localize2(
|
|
23
|
+
title: ( localize2(909, 'Open URL')),
|
|
24
24
|
category: Categories.Developer,
|
|
25
25
|
f1: true
|
|
26
26
|
});
|
|
@@ -28,7 +28,7 @@ class OpenUrlAction extends Action2 {
|
|
|
28
28
|
async run(accessor) {
|
|
29
29
|
const quickInputService = accessor.get(IQuickInputService);
|
|
30
30
|
const urlService = accessor.get(IURLService);
|
|
31
|
-
return quickInputService.input({ prompt: ( localize(
|
|
31
|
+
return quickInputService.input({ prompt: ( localize(910, "URL to open")) }).then(input => {
|
|
32
32
|
if (input) {
|
|
33
33
|
const uri = ( (URI.parse(input)));
|
|
34
34
|
urlService.open(uri, { originalUrl: input });
|
|
@@ -56,7 +56,7 @@ configurationRegistry.registerConfiguration({
|
|
|
56
56
|
type: 'boolean',
|
|
57
57
|
default: false,
|
|
58
58
|
description: ( localize(
|
|
59
|
-
|
|
59
|
+
911,
|
|
60
60
|
"When enabled, trusted domain prompts will appear when opening links in trusted workspaces."
|
|
61
61
|
))
|
|
62
62
|
}
|